DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

MSOP_IO(D2psm)


MSOP_IO: MSOP_IO_READ8, MSOP_IO_READ16, MSOP_IO_READ32, MSOP_IO_WRITE8, MSOP_IO_WRITE16, MSOP_IO_WRITE32, MSOP_IO_REP_READ8, MSOP_IO_REP_READ16, MSOP_IO_REP_READ32, MSOP_IO_REP_WRITE8, MSOP_IO_REP_WRITE16, MSOP_IO_REP_WRITE32 -- access non-memory-mapped I/O namespace

Synopsis

   unsigned char pfxio_read8(ms_port_t port)
   unsigned short pfxio_read16(ms_port_t port)
   unsigned int pfxio_read32(ms_port_t port)
   void pfxio_write8(ms_port_t port,
                      unsigned char val)
   void pfxio_write16(ms_port_t port,
                       unsigned short val)
   void pfxio_write32(ms_port_t port,
                       unsigned int val)
   void pfxio_rep_read8(ms_port_t port,
                         unsigned char *datap, int count)
   void pfxio_rep_read16(ms_port_t port,
                          unsigned short *datap, int count)
   void pfxio_rep_read32(ms_port_t port,
                          unsigned int *datap, int count)
   void pfxio_rep_write8(ms_port_t port,
                         unsigned char *datap, int count)
   void pfxio_rep_write16(ms_port_t port,
                          unsigned short *datap, int count)
   void pfxio_rep_write32(ms_port_t port,
                          unsigned int *datap, int count)

Description

MSOP_IO operations access I/O space on architectures that have non-memory-mapped I/O register namespace. The definition of ms_port_t will be constant across all platforms that use the same processor. See Intro(D4psm) for details. On IA-32 architectures, these operations correspond to the various flavors of the IA-32 in and out instructions.

Arguments


port
the port address

val
the data to write to the port

datap
pointer to the data buffer

count
number of data items in the buffer

Return values

The MSOP_IO_READ* MSOPs return the data read from the I/O port.

The remaining MSOPs do not return anything.

Usage

Hardware applicability

Platforms that do not support IA-32 in and out instructions.

Version applicability

psm: 2
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - 19 June 2005