1 '\" te
   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_PUT8 9F "Jul 19, 1996"
   7 .SH NAME
   8 csx_Put8, csx_Put16, csx_Put32, csx_Put64 \- write to device register
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 #include <sys/pccard.h>
  13 
  14 
  15 
  16 \fBvoid\fR \fBcsx_Put8\fR(\fBacc_handle_t\fR \fIhandle\fR, \fBuint32_t\fR \fIoffset\fR, \fBuint8_t\fR \fIvalue\fR);
  17 .fi
  18 
  19 .LP
  20 .nf
  21 \fBvoid\fR \fBcsx_Put16\fR(\fBacc_handle_t\fR \fIhandle\fR, \fBuint32_t\fR \fIoffset\fR, \fBuint16_t\fR \fIvalue\fR);
  22 .fi
  23 
  24 .LP
  25 .nf
  26 \fBvoid\fR \fBcsx_Put32\fR(\fBacc_handle_t\fR \fIhandle\fR, \fBuint32_t\fR \fIoffset\fR, \fBuint32_t\fR \fIvalue\fR);
  27 .fi
  28 
  29 .LP
  30 .nf
  31 \fBvoid\fR \fBcsx_Put64\fR(\fBacc_handle_t\fR \fIhandle\fR, \fBuint32_t\fR \fIoffset\fR, \fBuint64_t\fR \fIvalue\fR);
  32 .fi
  33 
  34 .SH INTERFACE LEVEL
  35 .sp
  36 .LP
  37 Solaris \fBDDI \fRSpecific (Solaris \fBDDI\fR)
  38 .SH PARAMETERS
  39 .sp
  40 .ne 2
  41 .na
  42 \fB\fIhandle\fR \fR
  43 .ad
  44 .RS 11n
  45 The access handle returned from \fBcsx_RequestIO\fR(9F),
  46 \fBcsx_RequestWindow\fR(9F), or \fBcsx_DupHandle\fR(9F).
  47 .RE
  48 
  49 .sp
  50 .ne 2
  51 .na
  52 \fB\fIoffset\fR \fR
  53 .ad
  54 .RS 11n
  55 The offset in bytes from the base of the mapped resource.
  56 .RE
  57 
  58 .sp
  59 .ne 2
  60 .na
  61 \fB\fIvalue\fR \fR
  62 .ad
  63 .RS 11n
  64 The data to be written to the device.
  65 .RE
  66 
  67 .SH DESCRIPTION
  68 .sp
  69 .LP
  70 These functions generate a write of various sizes to the mapped memory or
  71 device register.
  72 .sp
  73 .LP
  74 The \fBcsx_Put8()\fR, \fBcsx_Put16()\fR, \fBcsx_Put32()\fR, and
  75 \fBcsx_Put64()\fR functions write 8 bits, 16 bits, 32 bits, and 64 bits of
  76 data, respectively, to the device address represented by the handle,
  77 \fIhandle\fR, at an offset in bytes represented by the offset, \fIoffset\fR.
  78 .sp
  79 .LP
  80 Data that consists of more than one byte will automatically be translated to
  81 maintain a consistent view between the host and the device based on the encoded
  82 information in the data access handle. The translation may involve byte
  83 swapping if the host and the device have incompatible endian characteristics.
  84 .SH CONTEXT
  85 .sp
  86 .LP
  87 These functions may be called from user, kernel, or interrupt context.
  88 .SH SEE ALSO
  89 .sp
  90 .LP
  91 \fBcsx_DupHandle\fR(9F), \fBcsx_Get8\fR(9F), \fBcsx_GetMappedAddr\fR(9F),
  92 \fBcsx_RepGet8\fR(9F), \fBcsx_RepPut8\fR(9F), \fBcsx_RequestIO\fR(9F),
  93 \fBcsx_RequestWindow\fR(9F)
  94 .sp
  95 .LP
  96 \fIPC Card 95 Standard\fR, PCMCIA/JEIDA