 |
Index for Section 9 |
|
 |
Alphabetical listing for I |
|
 |
Bottom of page |
|
init_colormap_handle(9r)
NAME
init_colormap_handle - Graphics: Initializes the handle to the colormap
functions
SYNOPSIS
caddr_t init_colormap_handle(
caddr_t colormap_handle,
caddr_t address,
int unit,
int type );
ARGUMENTS
colormap_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 colormap_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_colormap_handle function initializes the colormap_handle argument
for each graphics device driver.
RETURN VALUES
On success, the init_colormap_handle function returns a pointer to a
colormap handle. This pointer is NULL if an error occurs.
EXAMPLES
The following code is from the Compaq implementation of
init_colormap_handle in the myvga example driver:
caddr_t
myvga_init_color_map_handle (caddr_t colormap_handle,
caddr_t address,
int unit,
int type)
{
struct myvga_type *scp =
((struct myvga_type **)colormap_handle)[unit];
if (myvga_developer_debug)
printf("myvga_color_map_init_colormap_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_color_map_functions(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for I |
|
 |
Top of page |
|