2 .\" Copyright (c) 2006, 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 OUTB 9F "Oct 24, 2012"
8 outb, outw, outl, repoutsb, repoutsw, repoutsd \- write to an I/O port
13 #include <sys/sunddi.h>
15 \fBvoid\fR \fBoutb\fR(\fBint\fR \fIport\fR, \fBunsigned char\fR \fIvalue\fR);
20 \fBvoid\fR \fBoutw\fR(\fBint\fR \fIport\fR, \fBunsigned short\fR \fIvalue\fR);
25 \fBvoid\fR \fBoutl\fR(\fBint\fR \fIport\fR, \fBunsigned long\fR \fIvalue\fR);
30 \fBvoid\fR \fBrepoutsb\fR(\fBint\fR \fIport\fR, \fBunsigned char *\fR\fIaddr\fR, \fBint\fR \fIcount\fR);
35 \fBvoid\fR \fBrepoutsw\fR(\fBint\fR \fIport\fR, \fBunsigned short *\fR\fIaddr\fR, \fBint\fR \fIcount\fR);
40 \fBvoid\fR \fBrepoutsd\fR(\fBint\fR \fIport\fR, \fBunsigned long *\fR\fIaddr\fR, \fBint\fR \fIcount\fR);
46 The functions described here are obsolete. For the \fBoutb()\fR, \fBoutw()\fR,
47 and \fBoutl()\fR functions use, respectively, \fBddi_put8\fR(9F),
48 \fBddi_put16\fR(9F), and \fBddi_put32\fR(9F) instead. For \fBrepoutsb()\fR,
49 \fBrepoutsw()\fR, and\fBrepoutsl()\fR, use, respectively,
50 \fBddi_rep_put8\fR(9F), \fBddi_rep_put16\fR(9F), and \fBddi_rep_put32\fR(9F)
59 A valid \fBI/O\fR port address.
68 The data to be written to the \fBI/O\fR port.
77 The address of a buffer from which the values will be fetched.
86 The number of values to be written to the \fBI/O\fR port.
92 These routines write data of various sizes to the \fBI/O\fR port with the
93 address specified by \fIport\fR.
96 The \fBoutb()\fR, \fBoutw()\fR, and \fBoutl()\fR functions write 8 bits, 16
97 bits, and 32 bits of data respectively, writing the data specified by
101 The \fBrepoutsb()\fR, \fBrepoutsw()\fR, and \fBrepoutsd()\fR functions write
102 multiple 8-bit, 16-bit, and 32-bit values, respectively. \fIcount\fR specifies
103 the number of values to be written. \fIaddr\fR is a pointer to a buffer from
104 which the output values are fetched.
108 These functions may be called from user, interrupt, or kernel context.
112 See \fBattributes\fR(5) for descriptions of the following attributes:
120 ATTRIBUTE TYPE ATTRIBUTE VALUE
124 Interface Stability Obsolete
130 \fBisa\fR(4), \fBattributes\fR(5), \fBddi_put8\fR(9F), \fBddi_put16\fR(9F),
131 \fBddi_put32\fR(9F), \fBddi_rep_put8\fR(9F), \fBddi_rep_put16\fR(9F),
132 \fBddi_rep_put32\fR(9F), \fBinb\fR(9F)
135 \fIWriting Device Drivers\fR