Read the raw CIS data from the PC Card
#include <sys/pccard.h>
ssize_t pccard_raw_read( pccard_t handle,
int socket,
int type,
unsigned addr,
ssize_t len,
void* buf );
libpccard
The pccard_raw_read() function returns the raw
CIS (Card Information Structure) data from the PC Card.
The parameters are:
- handle
- Obtained from a previous call to
pccard_attach().
- socket
- Contains both the socket number as well as the function within the socket.
This is achieved by shifting the function number left 8 bits and ORing it with the socket number.
The socket number is zero based.
- type
- Specifies what memory is to be read. Valid values are:
- _PCCARD_MEMTYPE_COMMON -- Common
- _PCCARD_MEMTYPE_ATTRIBUTE -- Attribute
- addr
- Specifies what memory address is to be read from CIS for size len into
the buffer pointed to by buf.
- A positive integer
- Success. The length read is returned.
- -1
- An error occurred (errno is set).
- EBADF
- Invalid handle parameter.
- ENODEV
- Invalid socket parameter.
See pccard_arm().
QNX 6
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
pccard_arm(),
pccard_attach()