man pages section 9: DDI and DKI Kernel Functions
  Search only this book
View this book in:
Download this book in PDF (3391 KB)

outw(9F)

Name | Synopsis | Interface Level | Parameters | Description | Context | Attributes | See Also

Name

    outb, outw, outl, repoutsb, repoutsw, repoutsd– 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);
    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);

Interface Level

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.

    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.

Context

    These functions may be called from user, interrupt, or kernel context.

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE 

    ATTRIBUTE VALUE 

    Architecture 

    x86 

    Stability Level 

    Obsolete 

See Also

SunOS 5.10  Last Revised 16 Jan 2006

Name | Synopsis | Interface Level | Parameters | Description | Context | Attributes | See Also