'\" te .\" Copyright (c) 2006, 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] .TH OUTB 9F "Oct 24, 2012" .SH NAME outb, outw, outl, repoutsb, repoutsw, repoutsd \- write to an I/O port .SH SYNOPSIS .LP .nf #include #include \fBvoid\fR \fBoutb\fR(\fBint\fR \fIport\fR, \fBunsigned char\fR \fIvalue\fR); .fi .LP .nf \fBvoid\fR \fBoutw\fR(\fBint\fR \fIport\fR, \fBunsigned short\fR \fIvalue\fR); .fi .LP .nf \fBvoid\fR \fBoutl\fR(\fBint\fR \fIport\fR, \fBunsigned long\fR \fIvalue\fR); .fi .LP .nf \fBvoid\fR \fBrepoutsb\fR(\fBint\fR \fIport\fR, \fBunsigned char *\fR\fIaddr\fR, \fBint\fR \fIcount\fR); .fi .LP .nf \fBvoid\fR \fBrepoutsw\fR(\fBint\fR \fIport\fR, \fBunsigned short *\fR\fIaddr\fR, \fBint\fR \fIcount\fR); .fi .LP .nf \fBvoid\fR \fBrepoutsd\fR(\fBint\fR \fIport\fR, \fBunsigned long *\fR\fIaddr\fR, \fBint\fR \fIcount\fR); .fi .SH INTERFACE LEVEL .sp .LP The functions described here are obsolete. For the \fBoutb()\fR, \fBoutw()\fR, and \fBoutl()\fR functions use, respectively, \fBddi_put8\fR(9F), \fBddi_put16\fR(9F), and \fBddi_put32\fR(9F) instead. For \fBrepoutsb()\fR, \fBrepoutsw()\fR, and\fBrepoutsl()\fR, use, respectively, \fBddi_rep_put8\fR(9F), \fBddi_rep_put16\fR(9F), and \fBddi_rep_put32\fR(9F) instead. .SH PARAMETERS .sp .ne 2 .na \fB\fIport\fR\fR .ad .RS 9n A valid \fBI/O\fR port address. .RE .sp .ne 2 .na \fB\fIvalue\fR\fR .ad .RS 9n The data to be written to the \fBI/O\fR port. .RE .sp .ne 2 .na \fB\fIaddr\fR\fR .ad .RS 9n The address of a buffer from which the values will be fetched. .RE .sp .ne 2 .na \fB\fIcount\fR\fR .ad .RS 9n The number of values to be written to the \fBI/O\fR port. .RE .SH DESCRIPTION .sp .LP These routines write data of various sizes to the \fBI/O\fR port with the address specified by \fIport\fR. .sp .LP The \fBoutb()\fR, \fBoutw()\fR, and \fBoutl()\fR functions write 8 bits, 16 bits, and 32 bits of data respectively, writing the data specified by \fIvalue\fR. .sp .LP The \fBrepoutsb()\fR, \fBrepoutsw()\fR, and \fBrepoutsd()\fR functions write multiple 8-bit, 16-bit, and 32-bit values, respectively. \fIcount\fR specifies the number of values to be written. \fIaddr\fR is a pointer to a buffer from which the output values are fetched. .SH CONTEXT .sp .LP These functions may be called from user, interrupt, or kernel context. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS box; c | c l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Architecture x86 _ Interface Stability Obsolete .TE .SH SEE ALSO .sp .LP \fBisa\fR(4), \fBattributes\fR(5), \fBddi_put8\fR(9F), \fBddi_put16\fR(9F), \fBddi_put32\fR(9F), \fBddi_rep_put8\fR(9F), \fBddi_rep_put16\fR(9F), \fBddi_rep_put32\fR(9F), \fBinb\fR(9F) .sp .LP \fIWriting Device Drivers\fR