Copyright (c) 2000, Sun Microsystems, Inc.
All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
#include <sys/pccard.h> int32_t csx_ModifyWindow(window_handle_t wh, modify_win_t *mw);
Solaris DDI Specific (Solaris DDI)
Window handle returned from csx_RequestWindow(9F).
Pointer to a modify_win_t structure.
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
This field is bit-mapped and defined as follows: WIN_MEMORY_TYPE_CM
Window points to Common Memory area. Set this to map the window to Common Memory.
Window points to Attribute Memory area. Set this to map the window to Attribute Memory.
Enable Window. The client must set this to enable the window.
AccessSpeed valid. The client must set this when the AccessSpeed field has a value that the client wants set for the window.
The bit definitions for this field use the format of the extended speed byte of the Device ID tuple. If the mantissa is 0 (noted as reserved in the PC Card 95 Standard), the lower bits are a binary code representing a speed from the list below. Numbers in the first column are codes; items in the second column are speeds. 0
Reserved: do not use
250 nsec
200 nsec
150 nsec
100 nsec
Reserved: do not use
Successful operation.
Window handle is invalid.
No PC Card in socket.
AccessSpeed is invalid.
No PCMCIA hardware installed.
This function may be called from user or kernel context.
csx_ConvertSpeed(9F), csx_MapMemPage(9F), csx_ReleaseWindow(9F), csx_RequestWindow(9F)