MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                      csxRepPut8(9F)



NAME
     csxRepPut8,  csxRepPut16,  csxRepPut32,  csxRepPut64   -
     write repetitively to the device register

SYNOPSIS
     #include 



     void csxRepPut8(acchandlet handle, uint8t *hostaddr, uint32t offset,
          uint32t repcount, uint32t flags);


     void csxRepPut16(acchandlet handle, uint16t *hostaddr, uint32t offset,
          uint32t repcount, uint32t flags);


     void csxRepPut32(acchandlet handle, uint32t *hostaddr, uint32t offset,
          uint32t repcount, uint32t flags);


     void csxRepPut64(acchandlet handle, uint64t *hostaddr, uint32t offset,
          uint32t repcount, uint32t flags);


INTERFACE LEVEL
     Solaris DI Specific (Solaris DI)

PARAMETERS
     handle       The     access     handle     returned     from
                  csxRequestIO(9F),   csxRequestWindow(9F),  or
                  csxDupHandle(9F).


     hostaddr     Source host address.


     offset       The offset in bytes from the base of the mapped
                  resource.


     repcount     Number of data accesses to perform.


     flags        Device address flags.


DESCRIPTION
     These functions generate multiple writes of various sizes to
     the mapped memory or device register.





SunOS 5.11          Last change: 19 Jul 1996                    1






Kernel Functions for Drivers                      csxRepPut8(9F)



     The  csxRepPut8(),  csxRepPut16(),   csxRepPut32(),   and
     csxRepPut64() functions generate repcount writes of 8 bits,
     16 bits, 32 bits, and 64 bits of data, respectively, to  the
     device  address  represented  by  the  handle, handle, at an
     offset in bytes represented by the offset, offset. The  data
     written  is read consecutively from the buffer pointed to by
     the host address pointer, hostaddr.


     Data that consists of more than one byte 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  charac-
     teristics.


     When the flags argument is  set  to  CSDEVAUTOINCR,  these
     functions  increment  the  device offset, offset, after each
     datum write operation. However, when the flags  argument  is
     set  to  CSDEVNOAUTOINCR,  the same device offset will be
     used for every datum access. For example, this flag  may  be
     useful when writing to a data register.

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

SEE ALSO
     csxDupHandle(9F),   csxGet8(9F),    csxGetMappedAddr(9F),
     csxPut8(9F),       csxRepGet8(9F),      csxRequestIO(9F),
     csxRequestWindow(9F)


     PC Card 95 Standard, PCMCIA/JEIDA




















SunOS 5.11          Last change: 19 Jul 1996                    2



OpenSolaris man pages main menu

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