man pages section 9: DDI and DKI Kernel Functions
  Search only this book
View this book in:
Download this book in PDF (3391 KB)

csx_Get32(9F)

Name | Synopsis | Interface Level | Parameters | Description | Return Values | Context | See Also

Name

    csx_Get8, csx_Get16, csx_Get32, csx_Get64– read data from device address

Synopsis

    #include <sys/pccard.h>
    
    
    
    uint8_t csx_Get8(acc_handle_t handle, uint32_t offset);
    uint16_t csx_Get16(acc_handle_t handle, uint32_t offset);
    uint32_t csx_Get32(acc_handle_t handle, uint32_t offset);
    uint64_t csx_Get64(acc_handle_t handle, uint64_t offset);

Interface Level

    Solaris DDI Specific (Solaris DDI)

Parameters

Description

    These functions generate a read of various sizes from the mapped memory or device register.

    The csx_Get8(), csx_Get16(), csx_Get32(), and csx_Get64() functions read 8 bits, 16 bits, 32 bits, and 64 bits of data, respectively, from the device address represented by the handle, handle, at an offset in bytes represented by the offset, offset.

    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 characteristics.

Return Values

    These functions return the value read from the mapped address.

Context

    These functions may be called from user, kernel, or interrupt context.

See Also

SunOS 5.10  Last Revised 19 Jul 1996

Name | Synopsis | Interface Level | Parameters | Description | Return Values | Context | See Also