Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ repoutsw(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       repoutsw(D3)                                            repoutsw(D3)


       NAME
             repoutsw - write 16 bit words from buffer to an I/O port

       SYNOPSIS
             #include <sys/types.h>
             #include <sys/ddi.h>
             void repoutsw(int port, ushort_t *addr, int cnt);

          Arguments
             port      A valid 16 bit I/O port.

             addr      The address of the buffer from which cnt 16 bit
                       words are written to the I/O port.

             cnt       The number of 16 bit words to be written to the I/O
                       port.

       DESCRIPTION
             The repoutsw function provides a C language interface to the
             machine instructions that write a string of 16 bit short words
             to a 16 bit I/O port using the I/O address space, instead of
             the memory address space.  cnt 16 bit words starting at the
             address pointed to by addr are written to the I/O port in cnt
             write operations.

          Return Values
             None

       USAGE
             The buffer should be at least cnt 16 bit words in length.

             This function may not be meaningful on all implementations
             because some implementations may not support I/O-mapped I/O
             (direct I/O instructions).  On Intel860 systems, I/O is mapped
             to memory (memory-mapped I/O).  Therefore, on Intel860
             systems, a port is not really an I/O port, but rather a memory
             pointer that points to the memory-mapped I/O location.  The
             port argument is similar to a token that can represent a 16-
             bit address for the I/O port for Intel386 systems or a 32-bit
             memory address for Intel860 systems.

          Level
             Initialization, Base or Interrupt.





                           Copyright 1994 Novell, Inc.               Page 1













      repoutsw(D3)                                            repoutsw(D3)


         Synchronization Constraints
            Does not sleep.

            Driver-defined basic locks, read/write locks, and sleep locks
            may be held across calls to this function.

      REFERENCES
            inb(D3), inl(D3), inw(D3), outb(D3), outl(D3), outw(D3),
            repinsb(D3), repinsd(D3), repinsw(D3), repoutsb(D3),
            repoutsd(D3)

      NOTICES
         Portability
            AT-compatible architectures

         Applicability
            ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp































                          Copyright 1994 Novell, Inc.               Page 2








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