MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                      ddiioget8(9F)



NAME
     ddiioget8,   ddiioget16,   ddiioget32,    ddiiogetb,
     ddiiogetl,  ddiiogetw - read data from the mapped device
     register in I/O space

SYNOPSIS
     #include 
     #include 



     uint8t ddiioget8(ddiacchandlet handle, uint8t *devaddr);


     uint16t ddiioget16(ddiacchandlet handle, uint16t  *devaddr);


     uint32t ddiioget32(ddiacchandlet handle, uint32t  *devaddr);


INTERFACE LEVEL
     Solaris  DI  specific  (Solaris  DI).  The  ddiioget8(),
     ddiioget16(),        ddiioget32(),        ddiiogetb(),
     ddiiogetl(), and ddiiogetw() functions are obsolete. The
     ddiget8(9F)    function    replaces    ddiioget8().   The
     ddiget16(9F)   function   replaces   ddiioget16().    The
     ddiget32(9F)    function   replaces   ddiioget32().   The
     ddiget8(9F)   function    replaces    ddiiogetb().    The
     ddiget32(9F)    function    replaces   ddiiogetl().   The
     ddiget16(9F) function replaces ddiiogetw().

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


     devaddr    Device address.


DESCRIPTION
     These routines generate a read of  various  sizes  from  the
     device  address,  devaddr, in I/O space. The ddiioget8(),
     ddiioget16(), and ddiioget32() functions read 8 bits, 16
     bits,  and  32  bits  of data, respectively, from the device
     address, devaddr.


     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.



SunOS 5.11           Last change: 1 Nov 2005                    1






Kernel Functions for Drivers                      ddiioget8(9F)



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),    ddiget8(9F),    ddiget16(9F),    ddiget32(9F),
     ddiioput8(9F),  ddiiorepget8(9F),  ddiiorepput8(9F),
     ddiregsmapfree(9F),               ddiregsmapsetup(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 ™