2 .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH CSX_REPGET8 9F "Jul 19, 1996"
8 csx_RepGet8, csx_RepGet16, csx_RepGet32, csx_RepGet64 \- read repetitively from
13 #include <sys/pccard.h>
17 \fBvoid\fR \fBcsx_RepGet8\fR(\fBacc_handle_t\fR \fIhandle\fR, \fBuint8_t *\fR\fIhostaddr\fR, \fBuint32_t\fR \fIoffset\fR,
18 \fBuint32_t\fR \fIrepcount\fR, \fBuint32_t\fR \fIflags\fR);
23 \fBvoid\fR \fBcsx_RepGet16\fR(\fBacc_handle_t\fR \fIhandle\fR, \fBuint16_t *\fR\fIhostaddr\fR, \fBuint32_t\fR \fIoffset\fR,
24 \fBuint32_t\fR \fIrepcount\fR, \fBuint32_t\fR \fIflags\fR);
29 \fBvoid\fR \fBcsx_RepGet32\fR(\fBacc_handle_t\fR \fIhandle\fR, \fBuint32_t *\fR\fIhostaddr\fR, \fBuint32_t\fR \fIoffset\fR,
30 \fBuint32_t\fR \fIrepcount\fR, \fBuint32_t\fR \fIflags\fR);
35 \fBvoid\fR \fBcsx_RepGet64\fR(\fBacc_handle_t\fR \fIhandle\fR, \fBuint64_t *\fR\fIhostaddr\fR, \fBuint32_t\fR \fIoffset\fR,
36 \fBuint32_t\fR \fIrepcount\fR, \fBuint32_t\fR \fIflags\fR);
42 Solaris \fBDDI\fR Specific (Solaris \fBDDI\fR)
50 The access handle returned from \fBcsx_RequestIO\fR(9F),
51 \fBcsx_RequestWindow\fR(9F), or \fBcsx_DupHandle\fR(9F).
69 The offset in bytes from the base of the mapped resource.
78 Number of data accesses to perform.
93 These functions generate multiple reads of various sizes from the mapped memory
97 The \fBcsx_RepGet8()\fR, \fBcsx_RepGet16()\fR, \fBcsx_RepGet32()\fR, and
98 \fBcsx_RepGet64()\fR functions generate \fIrepcount\fR reads of 8 bits, 16
99 bits, 32 bits, and 64 bits of data, respectively, from the device address
100 represented by the handle, \fIhandle\fR, at an offset in bytes represented by
101 the offset, \fIoffset\fR. The data read is stored consecutively into the buffer
102 pointed to by the host address pointer, \fIhostaddr\fR.
105 Data that consists of more than one byte will automatically be translated to
106 maintain a consistent view between the host and the device based on the encoded
107 information in the data access handle. The translation may involve byte
108 swapping if the host and the device have incompatible endian characteristics.
111 When the \fIflags\fR argument is set to \fBCS_DEV_AUTOINCR\fR, these functions
112 increment the device offset, \fIoffset\fR, after each datum read operation.
113 However, when the \fIflags\fR argument is set to \fBCS_DEV_NO_AUTOINCR\fR, the
114 same device offset will be used for every datum access. For example, this flag
115 may be useful when reading from a data register.
119 These functions may be called from user, kernel, or interrupt context.
123 \fBcsx_DupHandle\fR(9F), \fBcsx_Get8\fR(9F), \fBcsx_GetMappedAddr\fR(9F),
124 \fBcsx_Put8\fR(9F), \fBcsx_RepPut8\fR(9F), \fBcsx_RequestIO\fR(9F),
125 \fBcsx_RequestWindow\fR(9F)
128 \fIPC Card 95 Standard\fR, PCMCIA/JEIDA