00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00035 #ifndef PCI_REGS_H_
00036 #define PCI_REGS_H_
00037
00038
00039 #define PCI_HEADER_TYPE_DEV 0
00040 #define PCI_HEADER_TYPE_BRIDGE 1
00041 #define PCI_HEADER_TYPE_CARDBUS 2
00042
00043
00044 #define PCI_VENDOR_ID 0x00
00045 #define PCI_DEVICE_ID 0x02
00046 #define PCI_COMMAND 0x04
00047 #define PCI_STATUS 0x06
00048 #define PCI_REVISION_ID 0x08
00049 #define PCI_PROG_IF 0x09
00050 #define PCI_SUB_CLASS 0x0A
00051 #define PCI_BASE_CLASS 0x0B
00052 #define PCI_CACHE_LINE_SIZE 0x0C
00053 #define PCI_LATENCY_TIMER 0x0D
00054 #define PCI_HEADER_TYPE 0x0E
00055 #define PCI_BIST 0x0F
00056
00057 #define PCI_BASE_ADDR_0 0x10
00058 #define PCI_BASE_ADDR_1 0x14
00059
00060
00061 #define PCI_BASE_ADDR_2 0x18
00062 #define PCI_BASE_ADDR_3 0x1B
00063 #define PCI_BASE_ADDR_4 0x20
00064 #define PCI_BASE_ADDR_5 0x24
00065
00066 #define PCI_CARDBUS_CIS_PTR 0x28
00067 #define PCI_SUBSYSTEM_VENDOR_ID 0x2C
00068 #define PCI_SUBSYSTEM_ID 0x2E
00069 #define PCI_EXP_ROM_BASE 0x30
00070 #define PCI_CAP_PTR 0x34
00071 #define PCI_INT_LINE 0x3C
00072 #define PCI_INT_PIN 0x3D
00073 #define PCI_MIN_GNT 0x3E
00074 #define PCI_MAX_LAT 0x3F
00075
00076
00077 #define PCI_BRIDGE_PRIM_BUS_NUM 0x18
00078 #define PCI_BRIDGE_SEC_BUS_NUM 0x19
00079 #define PCI_BRIDGE_SUBORD_BUS_NUM 0x1A
00080 #define PCI_BRIDGE_SEC_LATENCY_TIMER 0x1B
00081 #define PCI_BRIDGE_IO_BASE 0x1C
00082 #define PCI_BRIDGE_IO_LIMIT 0x1D
00083 #define PCI_BRIDGE_SEC_STATUS 0x1E
00084 #define PCI_BRIDGE_MEMORY_BASE 0x20
00085 #define PCI_BRIDGE_MEMORY_LIMIT 0x22
00086 #define PCI_BRIDGE_PREF_MEMORY_BASE 0x24
00087 #define PCI_BRIDGE_PREF_MEMORY_LIMIT 0x26
00088 #define PCI_BRIDGE_PREF_MEMORY_BASE_UP 0x28
00089 #define PCI_BRIDGE_PREF_MEMORY_LIMIT_UP 0x2C
00090 #define PCI_BRIDGE_IO_BASE_UP 0x30
00091 #define PCI_BRIDGE_IO_LIMIT_UP 0x32
00092 #define PCI_BRIDGE_EXP_ROM_BASE 0x38
00093 #define PCI_BRIDGE_INT_LINE 0x3C
00094 #define PCI_BRIDGE_INT_PIN 0x3D
00095 #define PCI_BRIDGE_CTL 0x3E
00096
00097 #endif
00098