Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ outb(9F) — SunOS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

inb(9F)

outb(9F)

NAME

outb, outw, outl, repoutsb, repoutsw, repoutsd − write to an I/O port

SYNOPSIS

void outb(int port, unsigned char value);
void outw(int port, unsigned short value);
void outl(int port, unsigned long value);
void repoutsb(int port, unsigned char ∗addr, int count);
void repoutsw(int port, unsigned short ∗addr, int count);
void repoutsd(int port, unsigned long ∗addr, int count);

ARGUMENTS

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. 

INTERFACE LEVEL

Solaris for x86 architecture specific (SunDDI). 

DESCRIPTION

These routines write data of various sizes to the x86 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.

The repoutsb(), repoutsw(), and repoutsd() functions write multiple 8-bit, 16-bit, and 32-bit values, respectively.  count specifies the number of values to be written.  addr is a pointer to a buffer from which the output values are fetched. 

RETURN VALUES

None. 

CONTEXT

These functions may be called from user or interrupt context. 

SEE ALSO

inb(9F)
 
 
 
 

SunOS 5.1  —  Last change: 22 January 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026