-
7.5.
PCMCIA/CF slot related functions
In HT660, it only support CF slot and PA96x/PA982 can support both CF and
PCMCIA slot. So, please note that PCMCIA function is not work on following API
in this section.
7.5.1. Get physical slot ID
Function Description:
PA96x/PA982 has two PC card slots, slot 0 and slot 1, for PCMCIA and CF.
this function return which slot for PCMCIA or CF
Function call:
UINT
GetPCMCIASlotID(UINT)
Parameters(Input)
0 = PCMCIA.
(For PA962/PA966/PA982 only)
1 = CF.
Return code:
Physical slot ID.
7.5.2. Enable/Disable PCMCIA or CF slot
Function Description:
This function enables/disables PCMCIA or CF slot. PA96x/PA982 assigns
physical slot 0 to CF and slot1 to PCMCIA, which is reversed compared
with previous products. The following function is kept for compatible
reason. It takes the same uSocket value as previous products, but
reversed internally.
Function call:
void
EnablePCMCIASlot(UINT uSocket, BOOL bEnable)
Parameters(Input)
uSocket:
UINT:
0 = PCMCIA slot.
(PA962/PA966/PA982 only)
1 = Compact flash slot.
bEnable :
BOOL:
TRUE = enable specified slot.
FALSE = disable specified slot.
7.5.3. Enable/Disable IO slots
Function Description:
This function enables/disables IO slots. It is recommended to use with
function GetPCMCIASlotID() for platform independent reason.
Function call:
void EnablePCMCIASlot1(UINT uSocket, BOOL bEnable)
Parameters(Input)
uSocket:
UINT:
slot to be applied.
bEnable :
BOOL:
TRUE = enable specified slot.
FALSE = disable specified slot.
Example
To disable PCMCIA slot and enable CF slot,
#define PCMCIA_SOCKET 0
(PA966/PA962/PA982 only)
#define
CF_SOCKET
1
EnablePCMCIASlot1(GetPCMCIASlotID(PCMCIA_SLOT),FALSE);
EnablePCMCIASlot1(GetPCMCIASlotID(CF_SLOT),TRUE);