CARD_CONFIG_INFO

The CARD_CONFIG_INFO structure contains PC Card configuration information. This structure is passed to CardRequestConfiguration. All members are input only.

Syntax

typedef struct {
CARD_SOCKET_HANDLE
hSocket;
UINT16
fAttributes;
UINT8
fInterfaceType;
UINT8
uVcc; UINT8 uVpp1;
UINT8
uVpp2;
UINT8
fRegisters;
UINT8
uConfigReg;
UINT8
uStatusReg;
UINT8
uPinReg;
UINT8
uCopyReg;
UINT8
uExtendedStatus;
} CARD_CONFIG_INFO, *PCARD_CONFIG_INFO;

Members

hSocket
Specifies a handle to a socket and function pair.
fAttributes
Contains a bitmask for specifying IRQ, DMA, and voltage options.
CFG_ATTR_IRQ_STEERING
Enables the IRQ steering in socket controller.
CFG_ATTR_ENABLE_DMA
Enables DMA.
fInterfaceType
Contains a bitmask specifying memory or I/O interface
CFG_IFACE_MEMORY
Puts socket controller in memory only interface mode.
CFG_IFACE_MEMORY_IO
Put socket controller in memory and I/O interface mode.
uVcc
Specifies the Vcc voltage to use in 0.1 volt increments.
uVpp1
Specifies the Vpp1 voltage to use in 0.1 volt increments.
uVpp2
Specifies the Vpp2 voltage to use in 0.1 volt increments.
fRegisters
Specifies a bitmask indicating which registers are present. Each of these bits indicates the presence one of the standard function and configuration registers in the attribute space of the PC Card. By calling CardRequestConfiguration, a driver can set these registers to desired initial values.
CFG_REGISTER_CONFIG
Indicates the configuration option register (uConfigReg) contains data.
CFG_REGISTER_STATUS
Indicates the function configuration and status register (uStatusReg) contains data.
CFG_REGISTER_PIN
Indicates the pin replacement register (uPinReg) contains data.
CFG_REGISTER_COPY
Indicates the socket and copy register (uCopyReg) contains data.
CFG_REGISTER_EXSTATUS
Indicates the extended status register (uExtendedStatus) contains data.
uConfigReg
Specifies the initial bitmask value to write to a configuration option register.

The lower six bits of the configuration option register specify which configuration number to use for single function cards.

FCR_COR_LEVEL_IREQ
1 = level mode interrupts, 0 = pulse mode.
FCR_COR_SRESET
1 = soft reset.
uStatusReg
Specifies the initial value to write to a function status register. The following bitmask values are defined:
FCR_FCSR_INTR_ACK
Acknowledge interrupt.
FCR_FCSR_INTR
Interrupt pending.
FCR_FCSR_PWR_DOWN
Place PC Card in power down mode.
FCR_FCSR_AUDIO
Enable audio signal on BUD2 (pin 62).
FCR_FCSR_IO_IS_8
Used by host to indicated 8-bit-only I/O.
FCR_FCSR_STSCHG
Enable status change (STSCHG, pin 63) from PC Card.
FCR_FCSR_CHANGED
Specify whether one of the status changed bits is set in the pin replacement register.
uPinReg
Specifies the initial value to write to a pin replacement register.
uCopyReg
Specifies the initial value to write to a socket and copy register.
uExtendedStatus
Specifies the initial value to write to an extended status register.

Remarks

Card Services remembers the base address of the configuration registers, so there is no need for a uConfigBase member.

See Also

CardRequestConfiguration