 |
Index for Section 9 |
|
 |
Alphabetical listing for I |
|
 |
Bottom of page |
|
init_cursor_handle(9r)
NAME
init_cursor_handle - Graphics: Initializes the cursor handle for the
specified graphics card
SYNOPSIS
caddr_t init_cursor_handle(
caddr_t cursor_handle,
caddr_t address,
int unit,
int type );
ARGUMENTS
cursor_handle
Specifies the virtual address (handle) of device-specific information.
Typically this is a pointer to a private data structure that may
contain information such as the address of the hardware, state
information, and other information that may be shared between drivers.
The Workstation Subsystem allows separate handles for the cursor,
colormap, and the screen functions.
address
Specifies the virtual address of the cursor_handle argument.
unit
Specifies the unit number of the controller that the graphics card is
attached to.
type
Specifies the type of graphics card.
DESCRIPTION
The init_cursor_handle function initializes the cursor_handle argument for
the cursor for each graphics device driver.
RETURN VALUES
On success, the init_cursor_handle function returns a pointer to a cursor
handle. This pointer is NULL if an error occurs.
EXAMPLES
The following code is from the Compaq implementation of init_cursor_handle
in the myvga example driver:
caddr_t
myvga_init_cursor_handle(caddr_t cursor_handle,
caddr_t address,
int unit,
int type)
{
struct myvga_type *scp =
((struct myvga_type **)cursor_handle)[unit];
if (myvga_developer_debug)
printf("myvga_cursor_init_cursor_handle: entry\n");
return (caddr_t)scp ;
}
FILES
/usr/sys/include/sys/workstation.h
/usr/sys/include/sys/wsdevice.h
SEE ALSO
Data Structures: ws_cursor_functions(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for I |
|
 |
Top of page |
|