2 .\" Copyright (c) 2000, Sun Microsystems, Inc.
3 .\" All Rights Reserved
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH CSX_MODIFYWINDOW 9F "Jul 19, 1996"
9 csx_ModifyWindow \- modify window attributes
13 #include <sys/pccard.h>
17 \fBint32_t\fR \fBcsx_ModifyWindow\fR(\fBwindow_handle_t\fR \fIwh\fR, \fBmodify_win_t *\fR\fImw\fR);
23 Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR
31 Window handle returned from \fBcsx_RequestWindow\fR(9F).
40 Pointer to a \fBmodify_win_t\fR structure.
46 This function modifies the attributes of a window allocated by the
47 \fBcsx_RequestWindow\fR(9F) function.
50 Only some of the window attributes or the access speed field may be modified by
51 this request. The \fBcsx_MapMemPage\fR(9F) function is also used to set the
52 offset into \fBPC \fRCard memory to be mapped into system memory for paged
53 windows. The \fBcsx_RequestWindow\fR(9F) and \fBcsx_ReleaseWindow\fR(9F)
54 functions must be used to change the window base or size.
58 The structure members of \fBmodify_win_t\fR are:
62 uint32_t Attributes; /* window flags */
63 uint32_t AccessSpeed; /* window access speed */
69 The fields are defined as follows:
73 \fB\fBAttributes\fR \fR
76 This field is bit-mapped and defined as follows:
80 \fBWIN_MEMORY_TYPE_CM\fR
83 Window points to Common Memory area. Set this to map the window to Common
90 \fBWIN_MEMORY_TYPE_AM\fR
93 Window points to Attribute Memory area. Set this to map the window to Attribute
103 Enable Window. The client must set this to enable the window.
109 \fBWIN_ACCESS_SPEED_VALID\fR
112 \fBAccessSpeed\fR valid. The client must set this when the \fBAccessSpeed\fR
113 field has a value that the client wants set for the window.
121 \fB\fBAccessSpeed\fR\fR
124 The bit definitions for this field use the format of the extended speed byte of
125 the Device \fBID \fRtuple. If the mantissa is \fB0\fR (noted as reserved in the
126 \fIPC Card 95 Standard\fR), the lower bits are a binary code representing a
127 speed from the list below. Numbers in the first column are codes; items in the
128 second column are speeds.
183 It is recommended that clients use the \fBcsx_ConvertSpeed\fR(9F) function to
184 generate the appropriate \fBAccessSpeed\fR values rather than manually
185 perturbing the \fBAccessSpeed\fR field.
192 \fB\fBCS_SUCCESS\fR \fR
195 Successful operation.
201 \fB\fBCS_BAD_HANDLE\fR \fR
204 Window handle is invalid.
210 \fB\fBCS_NO_CARD\fR \fR
213 No \fBPC \fRCard in socket.
219 \fB\fBCS_BAD_OFFSET\fR \fR
222 Error getting/setting window hardware parameters.
228 \fB\fBCS_BAD_WINDOW\fR \fR
231 Error getting/setting window hardware parameters.
237 \fB\fBCS_BAD_SPEED\fR \fR
240 \fBAccessSpeed\fR is invalid.
246 \fB\fBCS_UNSUPPORTED_FUNCTION\fR \fR
249 No \fBPCMCIA \fRhardware installed.
255 This function may be called from user or kernel context.
259 \fBcsx_ConvertSpeed\fR(9F), \fBcsx_MapMemPage\fR(9F),
260 \fBcsx_ReleaseWindow\fR(9F), \fBcsx_RequestWindow\fR(9F)
263 \fIPC Card 95 Standard, PCMCIA/JEIDA\fR