CSX_MODIFYWINDOW(9F) | Kernel Functions for Drivers | CSX_MODIFYWINDOW(9F) |
csx_ModifyWindow - modify window attributes
#include <sys/pccard.h> int32_t csx_ModifyWindow(window_handle_t wh, modify_win_t *mw);
illumos DDI Specific (illumos DDI)
wh
mw
This function modifies the attributes of a window allocated by the csx_RequestWindow(9F) function.
Only some of the window attributes or the access speed field may be modified by this request. The csx_MapMemPage(9F) function is also used to set the offset into PC Card memory to be mapped into system memory for paged windows. The csx_RequestWindow(9F) and csx_ReleaseWindow(9F) functions must be used to change the window base or size.
The structure members of modify_win_t are:
uint32_t Attributes; /* window flags */ uint32_t AccessSpeed; /* window access speed */
The fields are defined as follows:
Attributes
WIN_MEMORY_TYPE_CM
WIN_MEMORY_TYPE_AM
WIN_ENABLE
WIN_ACCESS_SPEED_VALID
AccessSpeed
0
1
2
3
4
5 - 7
It is recommended that clients use the csx_ConvertSpeed(9F) function to generate the appropriate AccessSpeed values rather than manually perturbing the AccessSpeed field.
CS_SUCCESS
CS_BAD_HANDLE
CS_NO_CARD
CS_BAD_OFFSET
CS_BAD_WINDOW
CS_BAD_SPEED
CS_UNSUPPORTED_FUNCTION
This function may be called from user or kernel context.
csx_ConvertSpeed(9F), csx_MapMemPage(9F), csx_ReleaseWindow(9F), csx_RequestWindow(9F)
PC Card 95 Standard, PCMCIA/JEIDA
July 19, 1996 | OmniOS |