xref: /illumos-gate/usr/src/man/man9f/outb.9f (revision b93865c3d90e9b0d73e338c9abb3293c35c571a8)
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]
OUTB 9F "Oct 24, 2012"
NAME
outb, outw, outl - write to an I/O port
SYNOPSIS
#include <sys/ddi.h>
#include <sys/sunddi.h>

void outb(int port, unsigned char value);

void outw(int port, unsigned short value);

void outl(int port, unsigned long value);
INTERFACE LEVEL
The functions described here are obsolete. For the outb(), outw(), and outl() functions use, respectively, ddi_put8(9F), ddi_put16(9F), and ddi_put32(9F) instead.
PARAMETERS
port

A valid I/O port address.

value

The data to be written to the I/O port.

addr

The address of a buffer from which the values will be fetched.

count

The number of values to be written to the I/O port.

DESCRIPTION
These routines write data of various sizes to the I/O port with the address specified by port.

The outb(), outw(), and outl() functions write 8 bits, 16 bits, and 32 bits of data respectively, writing the data specified by value.

CONTEXT
These functions may be called from user, interrupt, or kernel context.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE ATTRIBUTE VALUE
Architecture x86
Interface Stability Obsolete
SEE ALSO
isa (5), attributes (7), ddi_put16 (9F), ddi_put32 (9F), ddi_put8 (9F), inb (9F)

Writing Device Drivers