MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                  pciconfigget8(9F)



NAME
     pciconfigget8,     pciconfigget16,     pciconfigget32,
     pciconfigget64,     pciconfigput8,     pciconfigput16,
     pciconfigput32,     pciconfigput64,     pciconfiggetb,
     pciconfiggetl,      pciconfiggetll,     pciconfiggetw,
     pciconfigputb,     pciconfigputl,      pciconfigputll,
     pciconfigputw  -  read  or  write  single datum of various
     sizes to the PCI Local Bus Configuration space

SYNOPSIS
     #include 
     #include 



     uint8t pciconfigget8(ddiacchandlet handle, offt offset);


     uint16t pciconfigget16(ddiacchandlet handle, offt offset);


     uint32t pciconfigget32(ddiacchandlet handle, offt offset);


     uint64t pciconfigget64(ddiacchandlet handle, offt offset);


     void pciconfigput8(ddiacchandlet handle, offt offset,
          uint8t value);


     void pciconfigput16(ddiacchandlet handle, offt offset,
          uint16t value);


     void pciconfigput32(ddiacchandlet handle, offt offset,
          uint32t value);


     void pciconfigput64(ddiacchandlet handle, offt offset,
          uint64t value);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI).  The  pciconfiggetb(),
     pciconfiggetl(),   pciconfiggetll(),  pciconfiggetw(),
     pciconfigputb(),  pciconfigputl(),   pciconfigputll(),
     and    pciconfigputw()   functions   are   obsolete.   The
     pciconfigget8() function replaces  pciconfiggetb().  The
     pciconfigget32()  function replaces pciconfiggetl(). The
     pciconfigget64() function replaces pciconfiggetll(). The
     pciconfigget16()  function replaces pciconfiggetw(). The



SunOS 5.11           Last change: 1 Nov 2005                    1






Kernel Functions for Drivers                  pciconfigget8(9F)



     pciconfigput8() function replaces  pciconfigputb().  The
     pciconfigput32()  function replaces pciconfigputl(). The
     pciconfigput64() function replaces pciconfigputll(). The
     pciconfigput16() function replaces pciconfigputw().

PARAMETERS
     handle    The   data    access    handle    returned    from
               pciconfigsetup(9F).


     offset    Byte offset from the beginning of the  PCI  Confi-
               guration space.


     value     Output data.


DESCRIPTION
     These routines read or write a single datum of various sizes
     from  or  to  the  PCI  Local  Bus  Configuration space. The
     pciconfigget8(),  pciconfigget16(),  pciconfigget32(),
     and  pciconfigget64()  functions  read 8 bits, 16 bits, 32
     bits,   and   64   bits   of   data,    respectively.    The
     pciconfigput8(),  pciconfigput16(),  pciconfigput32(),
     and pciconfigput64() functions write 8 bits, 16  bits,  32
     bits, and 64 bits of data, respectively. The offset argument
     must be a multiple of the datum size.


     Since th  PCI Local Bus Configuration space  is  represented
     in  little endian data format, these functions translate the
     data from or to native host format to or from little  endian
     format.


     pciconfigsetup(9F) must be called  before  invoking  these
     functions.

RETURN VALUES
     pciconfigget8(),  pciconfigget16(),  pciconfigget32(),
     and  pciconfigget64()  return the value read from the  PCI
     Local Bus Configuration space.

CONTEXT
     These routines can be called from user, kernel, or interrupt
     context.

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





SunOS 5.11           Last change: 1 Nov 2005                    2






Kernel Functions for Drivers                  pciconfigget8(9F)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE      
    
     Interface Stability          pciconfiggetb(),         
                                  pciconfiggetl(),         
                                  pciconfiggetll(),        
                                  pciconfiggetw(),         
                                  pciconfigputb(),         
                                  pciconfigputl(),         
                                  pciconfigputll(),        
                                  pciconfigputw()       are
                                  Obsolete pciconfigget8(),
                                  pciconfigget16(),        
                                  pciconfigget32(),        
                                  pciconfigget64(),        
                                  pciconfigput8(),         
                                  pciconfigput16(),        
                                  pciconfigput32(),        
                                  pciconfigput64() are Com-
                                  mitted                     
   


SEE ALSO
     attributes(5), pciconfigsetup(9F), pciconfigteardown(9F)






























SunOS 5.11           Last change: 1 Nov 2005                    3



OpenSolaris man pages main menu

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