5. Installation and Configuration

Installation

For information on how to install PCMCIA for x86, as well as other Wind River Systems products, refer to Tornado Getting Started.

For a general discussion of setting up the entire VxWorks cross-development environment, see the Tornado User's Guide: Setup and Startup.

Configuration Constant in config.h

If the configuration constant INCLUDE_PCMCIA is defined in config.h (located in the BSP directory), the PCMCIA libraries are included and all three supported PC card device drivers are linked into VxWorks. Also, src/drv/pcmcia/pccardLib.c and src/drv/pcmcia/pccardShow.c are included in sysLib.c.

Definition of Configuration Constants

The following list shows all PCMCIA-related configuration constants defined in config/pcx86/pc.h and explains what they represent:

PCMCIA_SOCKS
Number of sockets.
PCMCIA_MEMBASE
Memory mapping base address.
PCIC_BASE_ADR
I/O address for the Intel 82365SL.
PCIC_INT_LVL
IRQ level for the Intel 82365SL.
TCIC_BASE_ADR
I/O address for the Databook DB86082.
TCIC_INT_LVL
IRQ level for the Databook DB86082.
CIS_MEM_START
Starting memory map address for CIS tuple.
CIS_MEM_STOP
Ending memory map address for CIS tuple.
CIS_REG_START
Starting memory map address for Config registers.
CIS_REG_STOP
Ending memory map address for Config registers.
SRAM0_MEM_START
Starting memory map address for SRAM PC card in slot0.
SRAM0_MEM_STOP
Ending memory map address for SRAM PC card in slot0.
SRAM0_MEM_LENGTH
Memory length for SRAM PC card in slot0.
SRAM1_MEM_START
Starting memory map address for SRAM PC card in slot1.
SRAM1_MEM_STOP
Ending memory map address for SRAM PC card in slot1.
SRAM1_MEM_LENGTH
Memory length for SRAM PC card in slot1.
SRAM2_MEM_START
Starting memory map address for SRAM PC card in slot2.
SRAM2_MEM_STOP
Ending memory map address for SRAM PC card in slot2.
SRAM2_MEM_LENGTH
Memory length for SRAM PC card in slot2.
SRAM3_MEM_START
Starting memory map address for SRAM PC card in slot3.
SRAM3_MEM_STOP
Ending memory map address for SRAM PC card in slot3.
SRAM3_MEM_LENGTH
Memory length for SRAM PC card in slot3.
ELT0_IO_START
Starting I/O address for the Etherlink III PC card 0.
ELT0_IO_STOP
Ending I/O address for the Etherlink III PC card 0.
ELT0_INT_LVL
IRQ level for the Etherlink III PC card 0.
ELT0_NRF
Number of buffers for the Etherlink III PC card 0.
ELT0_CONFIG
Type of connector for Etherlink III PC card 0.
ELT1_IO_START
Starting I/O address for the Etherlink III PC card 1.
ELT1_IO_STOP
Ending I/O address for the Etherlink III PC card 1.
ELT1_INT_LVL
IRQ level for the Etherlink III PC card 1.
ELT1_NRF
Number of buffers for the Etherlink III PC card 1.
ELT1_CONFIG
Type of connectors for Etherlink III PC card 1.
ATA0_IO_START0
Starting I/O address0 for the IDE disk drive.
ATA0_IO_STOP0
Ending I/O address0 for the IDE disk drive.
ATA0_IO_START1
Starting I/O address1 for the IDE disk drive.
ATA0_IO_STOP1
Ending I/O address1 for the IDE disk drive.
ATA0_INT_LVL
IRQ level for the IDE disk drive.
ATA0_CONFIG
Configuration type for the IDE disk drive.
ATA1_IO_START0
Starting I/O address0 for the ATA PC card.
ATA1_IO_STOP0
Ending I/O address0 for the ATA PC card.
ATA1_IO_START1
Starting I/O address1 for the ATA PC card.
ATA1_IO_STOP1
Ending I/O address1 for the ATA PC card.
ATA1_INT_LVL
IRQ level for the ATA PC card.
ATA1_CONFIG
Configuration type for the ATA PC card.

The following list shows all TFFS-related configuration constants defined in src/drv/pcmcia/pccardLib.c and explains what they represent:

TFFS0_MEM_START
Starting memory map address for Flash PC card in slot 0
TFFS0_MEM_STOP
Ending memory map address for Flash PC card in slot 0
TFFS1_MEM_START
Starting memory map address for Flash PC card in slot 1
TFFS1_MEM_STOP
Ending memory map address for Flash PC card in slot 1

Default Configuration

The following components are defined in the default configuration of the pc386, pc486, pcPentium, and pcPentiumpro BSPs:

  • Two ATA controllers (one for the local IDE disk and one for the PCMCIA ATA PC card).

  • Four SRAM PC cards.

  • Two 3Com Etherlink III PC cards.

The PCMCIA libraries come with default settings for the configuration constants as shown in Table 5. PCMCIA for x86 does not check to see if other devices are using the default resources. Other devices should not be assigned to these resources.   

Table 5  Default Settings for Configuration Constants 


Constant
Memory
Location
Explanation

PCMCIA_SOCKS
PCMCIA_MEMBASE
0x0
0x0
Number of sockets. 0 = auto detection
Memory mapping base address (offset to CIS or SRAM memory)
PCIC_BASE_ADR
PCIC_INT_LVL
0x3e0
0x0a
Intel 82365SL
TCIC_BASE_ADR
TCIC_INT_LVL
0x240
0x0a
Databook DB86082
CIS_MEM_START
CIS_MEM_STOP
0xd0000
0xd3fff
Mapping address for CIS tuple
CIS_REG_START
CIS_REG_STOP
0xd4000
0xd4fff
Mapping address for configuration registers
SRAM0_MEM_START
SRAM0_MEM_STOP
SRAM0_MEM_LENGTH
0xd8000
0xd8fff
0x100000
Memory for SRAM PC card 0
SRAM1_MEM_START
SRAM1_MEM_STOP
SRAM1_MEM_LENGTH
0xd9000
0xd9fff
0x100000
Memory for SRAM PC card 1
SRAM2_MEM_START
SRAM2_MEM_STOP
SRAM2_MEM_LENGTH
0xda000
0xdafff
0x100000
Memory for SRAM PC card 2
SRAM3_MEM_START
SRAM3_MEM_STOP
SRAM3_MEM_LENGTH
0xdb000
0xdbfff
0x100000
Memory for SRAM PC card 3
ELT0_IO_START
ELT0_IO_STOP
ELT0_INT_LVL
ELT0_NRF
ELT0_CONFIG
0x260
0x26f
0x05
0x00
0
I/O for ELT PC card 0
0=EEPROM 1=AUI 2=BNC 3=RJ45
ELT1_IO_START
ELT1_IO_STOP
ELT1_INT_LVL
ELT1_NRF
ELT1_CONFIG
0x280
0x28f
0x09
0x00
0
I/O for ELT PC card 1
0=EEPROM 1=AUI 2=BNC 3=RJ45
ATA0_IO_START0
ATA0_IO_STOP0
ATA0_IO_START1
ATA0_IO_STOP1
ATA0_INT_LVL
ATA0_CONFIG
0x1f0
0x1f7
0x3f6
0x3f7
0x0e
0x0
I/O for IDE disk
1: uses ataTypes table
ATA1_IO_START0
ATA1_IO_STOP0
ATA1_IO_START1
ATA1_IO_STOP1
ATA1_INT_LVL
ATA1_CONFIG
0x170
0x177
0x376
0x377
0x09
0x0
I/O for ATA PC card
9 for PCIC, 5 for TCIC
1: uses ataTypes table
ATA_SEM_TIMEOUT
ATA_WDG_TIMEOUT
5
5
Timeout - ATA synchronizing
       semaphore
Timeout - ATA watch dog timer
TFFS0_MEM_START
TFFS0_MEM_STOP
TFFS1_MEM_START
TFFS1_MEM_STOP
0xd8000
0xd9fff
0xda000
0xdbfff
Memory for Flash PC card in socket 0

Memory for Flash PC card in socket 1