[Previous] [Contents] [Next]

pccard_raw_read()

Read the raw CIS data from the PC Card

Synopsis:

#include <sys/pccard.h>

ssize_t pccard_raw_read( pccard_t handle, 
                         int socket, 
                         int type, 
                         unsigned addr, 
                         ssize_t len, 
                         void* buf );

Library:

libpccard

Description:

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:
addr
Specifies what memory address is to be read from CIS for size len into the buffer pointed to by buf.

Returns:

A positive integer
Success. The length read is returned.
-1
An error occurred (errno is set).

Errors:

EBADF
Invalid handle parameter.
ENODEV
Invalid socket parameter.

Examples:

See pccard_arm().

Classification:

QNX 6

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pccard_arm(), pccard_attach()


[Previous] [Contents] [Next]