CARD_CONFIG_INFO

This structure contains PC Card configuration information. It is passed to the CardRequestConfiguration function. 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
Handle to a socket and function pair.
fAttributes
Contains a bitmask for specifying interrupt request (IRQ), Direct Memory Access (DMA), and voltage options.
CFG_ATTR_IRQ_STEERING
Enables IRQ steering in the 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
Puts the socket controller in memory mode 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 of 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 whatever initial values the PC Card needs.
CFG_REGISTER_CONFIG
Indicates that the configuration option register (uConfigReg) contains data.
CFG_REGISTER_STATUS
Indicates that the function configuration and status register (uStatusReg) contains data.
CFG_REGISTER_PIN
Indicates that the pin replacement register (uPinReg) contains data.
CFG_REGISTER_COPY
Indicates that the socket and copy register (uCopyReg) contains data.
CFG_REGISTER_EXSTATUS
Indicates that the extended status register (uExtendedStatus) contains data.
uConfigReg
Specifies the initial bitmask value to write to a configuration option register.

The lower 6 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 off mode.
FCR_FCSR_AUDIO
Enable audio signal on BVD2 (pin 62).
FCR_FCSR_IO_IS_8
Used by the host to indicate 8-bit-only I/O.
FCR_FCSR_STSCHG
Enable status change (STSCHG, pin 63) from PC Card.
FCR_FCSR_CHANGED
Specifies 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