mbgtools-lx  4.2.8
pcidefs.h File Reference
#include <words.h>

Go to the source code of this file.

Data Structures

struct  PCI_IRQ_ROUTE_ENTRY
 
struct  PCI_CLASS
 
struct  PCI_CFG_SPACE
 

Macros

#define _ext   extern
 
#define PCI_BIOS_INT   0x1A
 
#define PCI_BIOS_FNC   0xB1
 
#define PCI_BIOS_PRESENT   0x01
 
#define PCI_FIND_DEVICE   0x02
 
#define PCI_FIND_CLASS_CODE   0x03
 
#define PCI_GEN_SPECIAL_CYCLE   0x06
 
#define PCI_READ_CFG_BYTE   0x08
 
#define PCI_READ_CFG_WORD   0x09
 
#define PCI_READ_CFG_DWORD   0x0A
 
#define PCI_WRITE_CFG_BYTE   0x0B
 
#define PCI_WRITE_CFG_WORD   0x0C
 
#define PCI_WRITE_CFG_DWORD   0x0D
 
#define PCI_GET_IRQ_ROUTING   0x0E
 
#define PCI_SUCCESS   0x00
 
#define PCI_NO_SUCCESS   0x01
 
#define PCI_FUNC_NOT_SUPP   0x81
 
#define PCI_BAD_VENDOR_ID   0x83
 
#define PCI_DEVICE_NOT_FOUND   0x86
 
#define PCI_BAD_REGISTER_NUMB   0x87
 
#define PCI_BUFFER_TOO_SMALL   0x89
 
#define CARRY_FLAG   0x01
 
#define PCI_BIOS_SIGNATURE   0x20494350UL
 
#define PCI_INV_VENDOR_ID   0xFFFFU
 
#define PCI_DEVICES_PER_BUS   32
 
#define PCI_SUCCESS   0x00
 
#define PCI_NO_SUCCESS   0x01
 
#define PCI_FUNC_NOT_SUPP   0x81
 
#define PCI_BAD_VENDOR_ID   0x83
 
#define PCI_DEVICE_NOT_FOUND   0x86
 
#define PCI_BAD_REGISTER_NUMB   0x87
 
#define PCI_BUFFER_TOO_SMALL   0x89
 
#define PCI_BIOS_SIGNATURE   0x20494350UL
 
#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
 
#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
 
#define PCI_CS_N_BASE_ADDRESS   6 /* num of badr regs for header type 0x00 */
 
#define PCI_CS_N_BASE_ADDRESS_01   2 /* num of badr regs for header type 0x01 */
 
#define PCI_CMD_ENB_IO_ACC   0x01
 
#define PCI_CMD_ENB_MEM_ACC   0x02
 
#define PCI_N_BASE_ADDR_FIELD   6
 
#define PCI_VENDOR_ASUS   0x1000
 
#define PCI_VENDOR_ATI   0x1002
 
#define PCI_VENDOR_CIRRUS_LOGIC   0x1013
 
#define PCI_VENDOR_IBM   0x1014
 
#define PCI_VENDOR_AMD   0x1022
 
#define PCI_VENDOR_MATROX   0x102B
 
#define PCI_VENDOR_NEC   0x1033
 
#define PCI_VENDOR_TEXAS_INSTR   0x104C
 
#define PCI_VENDOR_PLX   0x10B5
 
#define PCI_VENDOR_3COM   0x10B7
 
#define PCI_VENDOR_AMCC   0x10E8
 
#define PCI_VENDOR_REALTEK   0x10EC
 
#define PCI_VENDOR_MEINBERG   0x1360
 
#define PCI_VENDOR_JMICRON   0x197B
 
#define PCI_VENDOR_ELSA   0x5333
 
#define PCI_VENDOR_INTEL   0x8086
 
#define PCI_VENDOR_ADAPTEC_1   0x9004
 
#define PCI_VENDOR_ADAPTEC_2   0x9005
 

Macro Definition Documentation

◆ _ext

#define _ext   extern

Definition at line 46 of file pcidefs.h.

◆ CARRY_FLAG

#define CARRY_FLAG   0x01

Definition at line 96 of file pcidefs.h.

◆ PCI_BAD_REGISTER_NUMB [1/2]

#define PCI_BAD_REGISTER_NUMB   0x87

Definition at line 139 of file pcidefs.h.

Referenced by mbg_plx_read_pecs_reg().

◆ PCI_BAD_REGISTER_NUMB [2/2]

#define PCI_BAD_REGISTER_NUMB   0x87

Definition at line 139 of file pcidefs.h.

◆ PCI_BAD_VENDOR_ID [1/2]

#define PCI_BAD_VENDOR_ID   0x83

Definition at line 137 of file pcidefs.h.

◆ PCI_BAD_VENDOR_ID [2/2]

#define PCI_BAD_VENDOR_ID   0x83

Definition at line 137 of file pcidefs.h.

◆ PCI_BIOS_FNC

#define PCI_BIOS_FNC   0xB1

Definition at line 65 of file pcidefs.h.

◆ PCI_BIOS_INT

#define PCI_BIOS_INT   0x1A

Definition at line 60 of file pcidefs.h.

◆ PCI_BIOS_PRESENT

#define PCI_BIOS_PRESENT   0x01

Definition at line 71 of file pcidefs.h.

◆ PCI_BIOS_SIGNATURE [1/2]

#define PCI_BIOS_SIGNATURE   0x20494350UL

Definition at line 155 of file pcidefs.h.

◆ PCI_BIOS_SIGNATURE [2/2]

#define PCI_BIOS_SIGNATURE   0x20494350UL

Definition at line 155 of file pcidefs.h.

◆ PCI_BUFFER_TOO_SMALL [1/2]

#define PCI_BUFFER_TOO_SMALL   0x89

Definition at line 140 of file pcidefs.h.

◆ PCI_BUFFER_TOO_SMALL [2/2]

#define PCI_BUFFER_TOO_SMALL   0x89

Definition at line 140 of file pcidefs.h.

◆ PCI_CMD_ENB_IO_ACC

#define PCI_CMD_ENB_IO_ACC   0x01

Definition at line 186 of file pcidefs.h.

Referenced by pcps_cleanup_device().

◆ PCI_CMD_ENB_MEM_ACC

#define PCI_CMD_ENB_MEM_ACC   0x02

Definition at line 187 of file pcidefs.h.

Referenced by pcps_cleanup_device().

◆ PCI_CS_BASE_ADDRESS_0

#define PCI_CS_BASE_ADDRESS_0   0x10

Definition at line 170 of file pcidefs.h.

Referenced by pcps_cleanup_device().

◆ PCI_CS_BASE_ADDRESS_1

#define PCI_CS_BASE_ADDRESS_1   0x14

Definition at line 171 of file pcidefs.h.

◆ PCI_CS_BASE_ADDRESS_2

#define PCI_CS_BASE_ADDRESS_2   0x18

Definition at line 172 of file pcidefs.h.

◆ PCI_CS_BASE_ADDRESS_3

#define PCI_CS_BASE_ADDRESS_3   0x1C

Definition at line 173 of file pcidefs.h.

◆ PCI_CS_BASE_ADDRESS_4

#define PCI_CS_BASE_ADDRESS_4   0x20

Definition at line 174 of file pcidefs.h.

◆ PCI_CS_BASE_ADDRESS_5

#define PCI_CS_BASE_ADDRESS_5   0x24

Definition at line 175 of file pcidefs.h.

◆ PCI_CS_BIST

#define PCI_CS_BIST   0x0F

Definition at line 169 of file pcidefs.h.

◆ PCI_CS_CACHE_LINE_SIZE

#define PCI_CS_CACHE_LINE_SIZE   0x0C

Definition at line 166 of file pcidefs.h.

◆ PCI_CS_CLASS_CODE

#define PCI_CS_CLASS_CODE   0x09

Definition at line 165 of file pcidefs.h.

◆ PCI_CS_COMMAND

#define PCI_CS_COMMAND   0x04

Definition at line 162 of file pcidefs.h.

Referenced by pcps_cleanup_device().

◆ PCI_CS_DEVICE_ID

#define PCI_CS_DEVICE_ID   0x02

Definition at line 161 of file pcidefs.h.

◆ PCI_CS_EXPANSION_ROM

#define PCI_CS_EXPANSION_ROM   0x30

Definition at line 176 of file pcidefs.h.

◆ PCI_CS_HEADER_TYPE

#define PCI_CS_HEADER_TYPE   0x0E

Definition at line 168 of file pcidefs.h.

◆ PCI_CS_INTERRUPT_LINE

#define PCI_CS_INTERRUPT_LINE   0x3C

Definition at line 177 of file pcidefs.h.

Referenced by pcps_cleanup_device().

◆ PCI_CS_INTERRUPT_PIN

#define PCI_CS_INTERRUPT_PIN   0x3D

Definition at line 178 of file pcidefs.h.

◆ PCI_CS_MASTER_LATENCY

#define PCI_CS_MASTER_LATENCY   0x0D

Definition at line 167 of file pcidefs.h.

◆ PCI_CS_MAX_LAT

#define PCI_CS_MAX_LAT   0x3F

Definition at line 180 of file pcidefs.h.

◆ PCI_CS_MIN_GNT

#define PCI_CS_MIN_GNT   0x3E

Definition at line 179 of file pcidefs.h.

◆ PCI_CS_N_BASE_ADDRESS

#define PCI_CS_N_BASE_ADDRESS   6 /* num of badr regs for header type 0x00 */

Definition at line 182 of file pcidefs.h.

◆ PCI_CS_N_BASE_ADDRESS_01

#define PCI_CS_N_BASE_ADDRESS_01   2 /* num of badr regs for header type 0x01 */

Definition at line 183 of file pcidefs.h.

◆ PCI_CS_REVISION_ID

#define PCI_CS_REVISION_ID   0x08

Definition at line 164 of file pcidefs.h.

◆ PCI_CS_STATUS

#define PCI_CS_STATUS   0x06

Definition at line 163 of file pcidefs.h.

◆ PCI_CS_VENDOR_ID

#define PCI_CS_VENDOR_ID   0x00

Definition at line 160 of file pcidefs.h.

◆ PCI_DEVICE_NOT_FOUND [1/2]

#define PCI_DEVICE_NOT_FOUND   0x86

Definition at line 138 of file pcidefs.h.

◆ PCI_DEVICE_NOT_FOUND [2/2]

#define PCI_DEVICE_NOT_FOUND   0x86

Definition at line 138 of file pcidefs.h.

◆ PCI_DEVICES_PER_BUS

#define PCI_DEVICES_PER_BUS   32

Definition at line 110 of file pcidefs.h.

◆ PCI_FIND_CLASS_CODE

#define PCI_FIND_CLASS_CODE   0x03

Definition at line 73 of file pcidefs.h.

◆ PCI_FIND_DEVICE

#define PCI_FIND_DEVICE   0x02

Definition at line 72 of file pcidefs.h.

◆ PCI_FUNC_NOT_SUPP [1/2]

#define PCI_FUNC_NOT_SUPP   0x81

Definition at line 136 of file pcidefs.h.

◆ PCI_FUNC_NOT_SUPP [2/2]

#define PCI_FUNC_NOT_SUPP   0x81

Definition at line 136 of file pcidefs.h.

◆ PCI_GEN_SPECIAL_CYCLE

#define PCI_GEN_SPECIAL_CYCLE   0x06

Definition at line 74 of file pcidefs.h.

◆ PCI_GET_IRQ_ROUTING

#define PCI_GET_IRQ_ROUTING   0x0E

Definition at line 81 of file pcidefs.h.

◆ PCI_INV_VENDOR_ID

#define PCI_INV_VENDOR_ID   0xFFFFU

Definition at line 106 of file pcidefs.h.

◆ PCI_N_BASE_ADDR_FIELD

#define PCI_N_BASE_ADDR_FIELD   6

Definition at line 197 of file pcidefs.h.

◆ PCI_NO_SUCCESS [1/2]

#define PCI_NO_SUCCESS   0x01

Definition at line 135 of file pcidefs.h.

◆ PCI_NO_SUCCESS [2/2]

#define PCI_NO_SUCCESS   0x01

Definition at line 135 of file pcidefs.h.

◆ PCI_READ_CFG_BYTE

#define PCI_READ_CFG_BYTE   0x08

Definition at line 75 of file pcidefs.h.

◆ PCI_READ_CFG_DWORD

#define PCI_READ_CFG_DWORD   0x0A

Definition at line 77 of file pcidefs.h.

◆ PCI_READ_CFG_WORD

#define PCI_READ_CFG_WORD   0x09

Definition at line 76 of file pcidefs.h.

◆ PCI_SUCCESS [1/2]

#define PCI_SUCCESS   0x00

Definition at line 134 of file pcidefs.h.

Referenced by mbg_plx_read_pecs_reg(), pcps_cleanup_device(), and ptp270pex_can_flag_ready().

◆ PCI_SUCCESS [2/2]

#define PCI_SUCCESS   0x00

Definition at line 134 of file pcidefs.h.

◆ PCI_VENDOR_3COM

#define PCI_VENDOR_3COM   0x10B7

Definition at line 237 of file pcidefs.h.

◆ PCI_VENDOR_ADAPTEC_1

#define PCI_VENDOR_ADAPTEC_1   0x9004

Definition at line 244 of file pcidefs.h.

◆ PCI_VENDOR_ADAPTEC_2

#define PCI_VENDOR_ADAPTEC_2   0x9005

Definition at line 245 of file pcidefs.h.

◆ PCI_VENDOR_AMCC

#define PCI_VENDOR_AMCC   0x10E8

Definition at line 238 of file pcidefs.h.

◆ PCI_VENDOR_AMD

#define PCI_VENDOR_AMD   0x1022

Definition at line 232 of file pcidefs.h.

◆ PCI_VENDOR_ASUS

#define PCI_VENDOR_ASUS   0x1000

Definition at line 228 of file pcidefs.h.

◆ PCI_VENDOR_ATI

#define PCI_VENDOR_ATI   0x1002

Definition at line 229 of file pcidefs.h.

◆ PCI_VENDOR_CIRRUS_LOGIC

#define PCI_VENDOR_CIRRUS_LOGIC   0x1013

Definition at line 230 of file pcidefs.h.

◆ PCI_VENDOR_ELSA

#define PCI_VENDOR_ELSA   0x5333

Definition at line 242 of file pcidefs.h.

◆ PCI_VENDOR_IBM

#define PCI_VENDOR_IBM   0x1014

Definition at line 231 of file pcidefs.h.

◆ PCI_VENDOR_INTEL

#define PCI_VENDOR_INTEL   0x8086

Definition at line 243 of file pcidefs.h.

◆ PCI_VENDOR_JMICRON

#define PCI_VENDOR_JMICRON   0x197B

Definition at line 241 of file pcidefs.h.

◆ PCI_VENDOR_MATROX

#define PCI_VENDOR_MATROX   0x102B

Definition at line 233 of file pcidefs.h.

◆ PCI_VENDOR_MEINBERG

#define PCI_VENDOR_MEINBERG   0x1360

Definition at line 240 of file pcidefs.h.

Referenced by pcps_detect_devices_init().

◆ PCI_VENDOR_NEC

#define PCI_VENDOR_NEC   0x1033

Definition at line 234 of file pcidefs.h.

◆ PCI_VENDOR_PLX

#define PCI_VENDOR_PLX   0x10B5

Definition at line 236 of file pcidefs.h.

◆ PCI_VENDOR_REALTEK

#define PCI_VENDOR_REALTEK   0x10EC

Definition at line 239 of file pcidefs.h.

◆ PCI_VENDOR_TEXAS_INSTR

#define PCI_VENDOR_TEXAS_INSTR   0x104C

Definition at line 235 of file pcidefs.h.

◆ PCI_WRITE_CFG_BYTE

#define PCI_WRITE_CFG_BYTE   0x0B

Definition at line 78 of file pcidefs.h.

◆ PCI_WRITE_CFG_DWORD

#define PCI_WRITE_CFG_DWORD   0x0D

Definition at line 80 of file pcidefs.h.

◆ PCI_WRITE_CFG_WORD

#define PCI_WRITE_CFG_WORD   0x0C

Definition at line 79 of file pcidefs.h.