Home |
RTTarget-32 Programming Manual Function RTPCSetConfigRegister System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTPCSetConfigRegisterFunction RTPCSetConfigRegister sets a register in a card's CIS to a specific value: int RTPCSetConfigRegister(int Socket, int Register, BYTE Value); ParametersSocketThe socket number to configure. RegisterThe register to configure. At least the Option Config Register (register 0) must be set before a card can be used. Standard CIS configuration registers (defined in Rtpcmcia.h) are: #define RTPC_CFGREG_OPTION 0 #define RTPC_CFGREG_STATUS 1 #define RTPC_CFGREG_PIN_REPLACE 2 #define RTPC_CFGREG_SOCKET_COPY 3 Complex cards may define additional registers. ValueThe value to write to the register. return valueThis function must parse the CIS to find the register. If it succeeds, RTPC_SUCCESS is returned. If parsing the CIS fails, it returns an error code, please see section PC Cards (PCMCIA) for details.
|