MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                  ddiiorepput8(9F)



NAME
     ddiiorepput8,     ddiiorepput16,     ddiiorepput32,
     ddiiorepputb,  ddiiorepputl,  ddiiorepputw  - write
     multiple data to the mapped device register in I/O space

SYNOPSIS
     #include 
     #include 



     void ddiiorepput8(ddiacchandlet handle, uint8t *hostaddr,
          uin8t *devaddr, sizet repcount);


     void ddiiorepput16(ddiacchandlet handle, uint16t *hostaddr,
          uin16t *devaddr, sizet repcount);


     void ddiiorepput32(ddiacchandlet handle, uint32t *hostaddr,
          uin32t *devaddr, sizet repcount);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI).  The  ddiiorepput8(),
     ddiiorepput16(),  ddiiorepput32(),  ddiiorepputb(),
     ddiiorepputl(),  and  ddiiorepputw()   functions   are
     obsolete.    The    ddirepput8(9F)    function    replaces
     ddiiorepput8(). The ddirepput16(9F)  function  replaces
     ddiiorepput16().  The ddirepput32(9F) function replaces
     ddiiorepput32(). The ddirepput8(9F)  function  replaces
     ddiiorepputb().  The  ddirepput32(9F) function replaces
     ddiiorepputl(). The ddirepput16(9F)  function  replaces
     ddiiorepputw().

PARAMETERS
     handle       Data access handle returned from  setup  calls,
                  such as ddiregsmapsetup(9F).


     hostaddr    Base host address.


     devaddr     Base device address.


     repcount     Number of data accesses to perform.


DESCRIPTION
     These  routines  generate  multiple  writes  to  the  device
     address,  devaddress, in I/O space. repcount data is copied



SunOS 5.11           Last change: 1 Nov 2005                    1






Kernel Functions for Drivers                  ddiiorepput8(9F)



     from the host address, hostaddr,  to  the  device  address,
     devaddr.  For  each  input  datum,  the  ddiiorepput8(),
     ddiiorepput16(), and ddiiorepput32() functions write 8
     bits,  16  bits,  and  32 bits of data, respectively, to the
     device address. hostaddr must be aligned to the datum boun-
     dary described by the function.


     Each individual datum will automatically  be  translated  to
     maintain  a  consistent view between the host and the device
     based on the encoded information in the data access  handle.
     The  translation  may  involve byte-swapping if the host and
     the device have incompatible endian characteristics.

CONTEXT
     These functions can be called from user, kernel,  or  inter-
     rupt context.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Obsolete                    
    


SEE ALSO
     isa(4),          ddiioget8(9F),           ddiioput8(9F),
     ddiiorepget8(9F),                 ddiregsmapsetup(9F),
     ddirepput8(9F),   ddirepput16(9F),    ddirepput32(9F),
     ddideviceaccattr(9S)



















SunOS 5.11           Last change: 1 Nov 2005                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™