
Applied Micro Circuits Corporation
6195 Lusk Blvd., San Diego, CA 92121 (619) 450-9333
15-65
PCI CONTROLLER
S5933
/****************************************************************************/
/*
*/
/* Module: AMCC.H
*/
/*
*/
/* Purpose: Definitions for AMCC PCI Library
*/
/*
*/
/****************************************************************************/
/*
General Constants
*/
/****************************************************************************/
#define TRUE
1
#define FALSE
0
typedef unsigned char byte;
/* 8-bit
*/
typedef unsigned short word;
/* 16-bit */
typedef unsigned long dword;
/* 32-bit */
#define CARRY_FLAG 0x01
/* 80x86 Flags Register Carry Flag bit */
/****************************************************************************/
/*
PCI Functions
*/
/****************************************************************************/
#define PCI_FUNCTION_ID
0xb1
#define PCI_BIOS_PRESENT
0x01
#define FIND_PCI_DEVICE
0x02
#define FIND_PCI_CLASS_CODE
0x03
#define READ_CONFIG_BYTE
0x08
#define READ_CONFIG_WORD
0x09
#define READ_CONFIG_DWORD
0x0a
#define WRITE_CONFIG_BYTE
0x0b
#define WRITE_CONFIG_WORD
0x0c
#define WRITE_CONFIG_DWORD
0x0d
/****************************************************************************/
/*
PCI Return Code List
*/
/****************************************************************************/
#define SUCCESSFUL
0x00
#define NOT_SUCCESSFUL
0x01
#define FUNC_NOT_SUPPORTED
0x81
#define BAD_VENDOR_ID
0x83
#define DEVICE_NOT_FOUND
0x86
#define BAD_REGISTER_NUMBER
0x87
/****************************************************************************/
/*
PCI Configuration Space Registers
*/
/****************************************************************************/
#define PCI_CS_VENDOR_ID
0x00
#define PCI_CS_DEVICE_ID
0x02
#define PCI_CS_COMMAND
0x04
#define PCI_CS_STATUS
0x06
#define PCI_CS_REVISION_ID
0x08
#define PCI_CS_CLASS_CODE
0x09