CARD_REGISTER_PARMS

The CARD_REGISTER_PARMS structure contains driver characteristics passed to CardRegisterClient. All members are input only.

Syntax

typedef struct {
UINT16
fAttributes;
UINT16
fEventMask;
UINT32
uClientData;
} CARD_REGISTER_PARMS, *PCARD_REGISTER_PARMS;

Members

fAttributes
A bitmask of the following flags:
CLIENT_ATTR_MEM_DRIVER
RAM or SRAM Memory driver
CLIENT_ATTR_MTD_DRIVER
Flash RAM Memory driver, sometimes known as a Memory Technology driver.
CLIENT_ATTR_IO_DRIVER
I/O driver
CLIENT_ATTR_NOTIFY_SHARED
Sharable PC Card
CLIENT_ATTR_NOTIFY_EXCLUSIVE
Exclusively used PC Card
fEventMask
Specifies a global socket events bitmask. See PC Card Event Masks.
uClientData
Specifies 32 bits of context data sent to the client's callback function. This data is usually a pointer to a data structure.

Remarks

The client data (uClientData) is passed as is to the installable device driver's callback function. The client can interpret this context data in any manner it chooses.

See Also

CardRegisterClient, CLIENT_CALLBACK

CARD_SOCKET_HANDLE

The CARD_SOCKET_HANDLE structure identifies a socket and function pair composed of a socket number and function number.

Syntax

typedef struct {
UINT8
uSocket;
UINT8
uFunction;
} CARD_SOCKET_HANDLE, *PCARD_SOCKET_HANDLE;

Members

uSocket
Specifies the socket number. The first socket is 0 (zero).
uFunction
Specifies the function number on the socket. The first function is 0 (zero).

Remarks

The installable device driver generates these values and uses them in various Card Services functions.

For single function cards, the function number is zero. For multiple function cards, the function number ranges from zero through one less than the number of functions on the card.