
Applied Micro Circuits Corporation
6195 Lusk Blvd., San Diego, CA 92121 (619) 450-9333
15-66
S5933
PCI CONTROLLER
#define PCI_CS_CACHE_LINE_SIZE
0x0c
#define PCI_CS_MASTER_LATENCY
0x0d
#define PCI_CS_HEADER_TYPE
0x0e
#define PCI_CS_BIST
0x0f
#define PCI_CS_BASE_ADDRESS_0
0x10
#define PCI_CS_BASE_ADDRESS_1
0x14
#define PCI_CS_BASE_ADDRESS_2
0x18
#define PCI_CS_BASE_ADDRESS_3
0x1c
#define PCI_CS_BASE_ADDRESS_4
0x20
#define PCI_CS_BASE_ADDRESS_5
0x24
#define PCI_CS_EXPANSION_ROM
0x30
#define PCI_CS_INTERRUPT_LINE
0x3c
#define PCI_CS_INTERRUPT_PIN
0x3d
#define PCI_CS_MIN_GNT
0x3e
#define PCI_CS_MAX_LAT
0x3f
/****************************************************************************/
/*
AMCC Operation Register Offsets
*/
/****************************************************************************/
#define AMCC_OP_REG_OMB1
0x00
#define AMCC_OP_REG_OMB2
0x04
#define AMCC_OP_REG_OMB3
0x08
#define AMCC_OP_REG_OMB4
0x0c
#define AMCC_OP_REG_IMB1
0x10
#define AMCC_OP_REG_IMB2
0x14
#define AMCC_OP_REG_IMB3
0x18
#define AMCC_OP_REG_IMB4
0x1c
#define AMCC_OP_REG_FIFO
0x20
#define AMCC_OP_REG_MWAR
0x24
#define AMCC_OP_REG_MWTC
0x28
#define AMCC_OP_REG_MRAR
0x2c
#define AMCC_OP_REG_MRTC
0x30
#define AMCC_OP_REG_MBEF
0x34
#define AMCC_OP_REG_INTCSR
0x38
#define AMCC_OP_REG_MCSR
0x3c
#define AMCC_OP_REG_MCSR_NVDATA
(AMCC_OP_REG_MCSR + 2) /* Data in byte 2 */
#define AMCC_OP_REG_MCSR_NVCMD
(AMCC_OP_REG_MCSR + 3) /* Command in byte 3 */
/****************************************************************************/
/*
AMCCLIB Prototypes
*/
/****************************************************************************/
int pci_bios_present(byte *hardware_mechanism,
word *interface_level_version,
byte *last_pci_bus_number);
int find_pci_device(word device_id,
word vendor_id,
word index,
byte *bus_number,
byte *device_and_function);
int find_pci_class_code(dword class_code,
word index,
byte *bus_number,
byte *device_and_function);