⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pci.h

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 H
📖 第 1 页 / 共 3 页
字号:
#define PCI_VENDOR_ID_IMAGINGTECH	0x112f#define PCI_DEVICE_ID_IMAGINGTECH_ICPCI	0x0000#define PCI_VENDOR_ID_PHILIPS		0x1131#define PCI_DEVICE_ID_PHILIPS_SAA7145	0x7145#define PCI_DEVICE_ID_PHILIPS_SAA7146	0x7146#define PCI_VENDOR_ID_CYCLONE		0x113c#define PCI_DEVICE_ID_CYCLONE_SDK	0x0001#define PCI_VENDOR_ID_ALLIANCE		0x1142#define PCI_DEVICE_ID_ALLIANCE_PROMOTIO	0x3210#define PCI_DEVICE_ID_ALLIANCE_PROVIDEO	0x6422#define PCI_DEVICE_ID_ALLIANCE_AT24	0x6424#define PCI_DEVICE_ID_ALLIANCE_AT3D	0x643d#define PCI_VENDOR_ID_SK		0x1148#define PCI_DEVICE_ID_SK_FP		0x4000#define PCI_DEVICE_ID_SK_TR		0x4200#define PCI_DEVICE_ID_SK_GE		0x4300#define PCI_VENDOR_ID_VMIC		0x114a#define PCI_DEVICE_ID_VMIC_VME		0x7587#define PCI_VENDOR_ID_DIGI		0x114f#define PCI_DEVICE_ID_DIGI_EPC		0x0002#define PCI_DEVICE_ID_DIGI_RIGHTSWITCH	0x0003#define PCI_DEVICE_ID_DIGI_XEM		0x0004#define PCI_DEVICE_ID_DIGI_XR		0x0005#define PCI_DEVICE_ID_DIGI_CX		0x0006#define PCI_DEVICE_ID_DIGI_XRJ		0x0009#define PCI_DEVICE_ID_DIGI_EPCJ		0x000a#define PCI_DEVICE_ID_DIGI_XR_920	0x0027#define PCI_VENDOR_ID_MUTECH		0x1159#define PCI_DEVICE_ID_MUTECH_MV1000	0x0001#define PCI_VENDOR_ID_RENDITION		0x1163#define PCI_DEVICE_ID_RENDITION_VERITE	0x0001#define PCI_DEVICE_ID_RENDITION_VERITE2100 0x2000#define PCI_VENDOR_ID_TOSHIBA		0x1179#define PCI_DEVICE_ID_TOSHIBA_601	0x0601#define PCI_DEVICE_ID_TOSHIBA_TOPIC95	0x060a#define PCI_DEVICE_ID_TOSHIBA_TOPIC97	0x060f#define PCI_VENDOR_ID_RICOH		0x1180#define PCI_DEVICE_ID_RICOH_RL5C465	0x0465#define PCI_DEVICE_ID_RICOH_RL5C466	0x0466#define PCI_DEVICE_ID_RICOH_RL5C475	0x0475#define PCI_DEVICE_ID_RICOH_RL5C478	0x0478#define PCI_VENDOR_ID_ARTOP		0x1191#define PCI_DEVICE_ID_ARTOP_ATP8400	0x0004#define PCI_DEVICE_ID_ARTOP_ATP850UF	0x0005#define PCI_VENDOR_ID_ZEITNET		0x1193#define PCI_DEVICE_ID_ZEITNET_1221	0x0001#define PCI_DEVICE_ID_ZEITNET_1225	0x0002#define PCI_VENDOR_ID_OMEGA		0x119b#define PCI_DEVICE_ID_OMEGA_82C092G	0x1221#define PCI_VENDOR_ID_LITEON		0x11ad#define PCI_DEVICE_ID_LITEON_LNE100TX	0x0002#define PCI_VENDOR_ID_NP		0x11bc#define PCI_DEVICE_ID_NP_PCI_FDDI	0x0001#define PCI_VENDOR_ID_ATT		0x11c1#define PCI_DEVICE_ID_ATT_L56XMF	0x0440#define PCI_VENDOR_ID_SPECIALIX		0x11cb#define PCI_DEVICE_ID_SPECIALIX_IO8	0x2000#define PCI_DEVICE_ID_SPECIALIX_XIO	0x4000#define PCI_DEVICE_ID_SPECIALIX_RIO	0x8000#define PCI_VENDOR_ID_AURAVISION	0x11d1#define PCI_DEVICE_ID_AURAVISION_VXP524	0x01f7#define PCI_VENDOR_ID_IKON		0x11d5#define PCI_DEVICE_ID_IKON_10115	0x0115#define PCI_DEVICE_ID_IKON_10117	0x0117#define PCI_VENDOR_ID_ZORAN		0x11de#define PCI_DEVICE_ID_ZORAN_36057	0x6057#define PCI_DEVICE_ID_ZORAN_36120	0x6120#define PCI_VENDOR_ID_KINETIC		0x11f4#define PCI_DEVICE_ID_KINETIC_2915	0x2915#define PCI_VENDOR_ID_COMPEX		0x11f6#define PCI_DEVICE_ID_COMPEX_ENET100VG4	0x0112#define PCI_DEVICE_ID_COMPEX_RL2000	0x1401#define PCI_VENDOR_ID_RP               0x11fe#define PCI_DEVICE_ID_RP32INTF         0x0001#define PCI_DEVICE_ID_RP8INTF          0x0002#define PCI_DEVICE_ID_RP16INTF         0x0003#define PCI_DEVICE_ID_RP4QUAD	       0x0004#define PCI_DEVICE_ID_RP8OCTA          0x0005#define PCI_DEVICE_ID_RP8J	       0x0006#define PCI_DEVICE_ID_RPP4	       0x000A#define PCI_DEVICE_ID_RPP8	       0x000B#define PCI_DEVICE_ID_RP8M	       0x000C#define PCI_VENDOR_ID_CYCLADES		0x120e#define PCI_DEVICE_ID_CYCLOM_Y_Lo	0x0100#define PCI_DEVICE_ID_CYCLOM_Y_Hi	0x0101#define PCI_DEVICE_ID_CYCLOM_Z_Lo	0x0200#define PCI_DEVICE_ID_CYCLOM_Z_Hi	0x0201#define PCI_VENDOR_ID_ESSENTIAL		0x120f#define PCI_DEVICE_ID_ESSENTIAL_ROADRUNNER	0x0001#define PCI_VENDOR_ID_O2		0x1217#define PCI_DEVICE_ID_O2_6729		0x6729#define PCI_DEVICE_ID_O2_6730		0x673a#define PCI_DEVICE_ID_O2_6832		0x6832#define PCI_DEVICE_ID_O2_6836		0x6836#define PCI_VENDOR_ID_3DFX		0x121a#define PCI_DEVICE_ID_3DFX_VOODOO	0x0001#define PCI_DEVICE_ID_3DFX_VOODOO2	0x0002#define PCI_VENDOR_ID_SIGMADES		0x1236#define PCI_DEVICE_ID_SIGMADES_6425	0x6401#define PCI_VENDOR_ID_CCUBE		0x123f#define PCI_VENDOR_ID_DIPIX		0x1246#define PCI_VENDOR_ID_STALLION		0x124d#define PCI_DEVICE_ID_STALLION_ECHPCI832 0x0000#define PCI_DEVICE_ID_STALLION_ECHPCI864 0x0002#define PCI_DEVICE_ID_STALLION_EIOPCI	0x0003#define PCI_VENDOR_ID_OPTIBASE		0x1255#define PCI_DEVICE_ID_OPTIBASE_FORGE	0x1110#define PCI_DEVICE_ID_OPTIBASE_FUSION	0x1210#define PCI_DEVICE_ID_OPTIBASE_VPLEX	0x2110#define PCI_DEVICE_ID_OPTIBASE_VPLEXCC	0x2120#define PCI_DEVICE_ID_OPTIBASE_VQUEST	0x2130#define PCI_VENDOR_ID_SATSAGEM		0x1267#define PCI_DEVICE_ID_SATSAGEM_PCR2101	0x5352#define PCI_DEVICE_ID_SATSAGEM_TELSATTURBO 0x5a4b#define PCI_VENDOR_ID_HUGHES		0x1273#define PCI_DEVICE_ID_HUGHES_DIRECPC	0x0002#define PCI_VENDOR_ID_ENSONIQ		0x1274#define PCI_DEVICE_ID_ENSONIQ_AUDIOPCI	0x5000#define PCI_VENDOR_ID_ALTEON		0x12ae#define PCI_DEVICE_ID_ALTEON_ACENIC	0x0001#define PCI_VENDOR_ID_PICTUREL		0x12c5#define PCI_DEVICE_ID_PICTUREL_PCIVST	0x0081#define PCI_VENDOR_ID_NVIDIA_SGS	0x12d2#define PCI_DEVICE_ID_NVIDIA_SGS_RIVA128 0x0018#define PCI_VENDOR_ID_CBOARDS		0x1307#define PCI_DEVICE_ID_CBOARDS_DAS1602_16 0x0001#define PCI_VENDOR_ID_SYMPHONY		0x1c1c#define PCI_DEVICE_ID_SYMPHONY_101	0x0001#define PCI_VENDOR_ID_TEKRAM		0x1de1#define PCI_DEVICE_ID_TEKRAM_DC290	0xdc29#define PCI_VENDOR_ID_3DLABS		0x3d3d#define PCI_DEVICE_ID_3DLABS_300SX	0x0001#define PCI_DEVICE_ID_3DLABS_500TX	0x0002#define PCI_DEVICE_ID_3DLABS_DELTA	0x0003#define PCI_DEVICE_ID_3DLABS_PERMEDIA	0x0004#define PCI_DEVICE_ID_3DLABS_MX		0x0006#define PCI_VENDOR_ID_AVANCE		0x4005#define PCI_DEVICE_ID_AVANCE_ALG2064	0x2064#define PCI_DEVICE_ID_AVANCE_2302	0x2302#define PCI_VENDOR_ID_NETVIN		0x4a14#define PCI_DEVICE_ID_NETVIN_NV5000SC	0x5000#define PCI_VENDOR_ID_S3		0x5333#define PCI_DEVICE_ID_S3_PLATO_PXS	0x0551#define PCI_DEVICE_ID_S3_ViRGE		0x5631#define PCI_DEVICE_ID_S3_TRIO		0x8811#define PCI_DEVICE_ID_S3_AURORA64VP	0x8812#define PCI_DEVICE_ID_S3_TRIO64UVP	0x8814#define PCI_DEVICE_ID_S3_ViRGE_VX	0x883d#define PCI_DEVICE_ID_S3_868		0x8880#define PCI_DEVICE_ID_S3_928		0x88b0#define PCI_DEVICE_ID_S3_864_1		0x88c0#define PCI_DEVICE_ID_S3_864_2		0x88c1#define PCI_DEVICE_ID_S3_964_1		0x88d0#define PCI_DEVICE_ID_S3_964_2		0x88d1#define PCI_DEVICE_ID_S3_968		0x88f0#define PCI_DEVICE_ID_S3_TRIO64V2	0x8901#define PCI_DEVICE_ID_S3_PLATO_PXG	0x8902#define PCI_DEVICE_ID_S3_ViRGE_DXGX	0x8a01#define PCI_DEVICE_ID_S3_ViRGE_GX2	0x8a10#define PCI_DEVICE_ID_S3_ViRGE_MX	0x8c01#define PCI_DEVICE_ID_S3_ViRGE_MXP	0x8c02#define PCI_DEVICE_ID_S3_ViRGE_MXPMV	0x8c03#define PCI_DEVICE_ID_S3_SONICVIBES	0xca00#define PCI_VENDOR_ID_INTEL		0x8086#define PCI_DEVICE_ID_INTEL_82375	0x0482#define PCI_DEVICE_ID_INTEL_82424	0x0483#define PCI_DEVICE_ID_INTEL_82378	0x0484#define PCI_DEVICE_ID_INTEL_82430	0x0486#define PCI_DEVICE_ID_INTEL_82434	0x04a3#define PCI_DEVICE_ID_INTEL_82092AA_0	0x1221#define PCI_DEVICE_ID_INTEL_82092AA_1	0x1222#define PCI_DEVICE_ID_INTEL_7116	0x1223#define PCI_DEVICE_ID_INTEL_82596	0x1226#define PCI_DEVICE_ID_INTEL_82865	0x1227#define PCI_DEVICE_ID_INTEL_82557	0x1229#define PCI_DEVICE_ID_INTEL_82437	0x122d#define PCI_DEVICE_ID_INTEL_82371FB_0	0x122e#define PCI_DEVICE_ID_INTEL_82371FB_1	0x1230#define PCI_DEVICE_ID_INTEL_82371MX	0x1234#define PCI_DEVICE_ID_INTEL_82437MX	0x1235#define PCI_DEVICE_ID_INTEL_82441	0x1237#define PCI_DEVICE_ID_INTEL_82380FB	0x124b#define PCI_DEVICE_ID_INTEL_82439	0x1250#define PCI_DEVICE_ID_INTEL_82371SB_0	0x7000#define PCI_DEVICE_ID_INTEL_82371SB_1	0x7010#define PCI_DEVICE_ID_INTEL_82371SB_2	0x7020#define PCI_DEVICE_ID_INTEL_82437VX	0x7030#define PCI_DEVICE_ID_INTEL_82439TX	0x7100#define PCI_DEVICE_ID_INTEL_82371AB_0	0x7110#define PCI_DEVICE_ID_INTEL_82371AB	0x7111#define PCI_DEVICE_ID_INTEL_82371AB_2	0x7112#define PCI_DEVICE_ID_INTEL_82371AB_3	0x7113#define PCI_DEVICE_ID_INTEL_82443LX_0	0x7180#define PCI_DEVICE_ID_INTEL_82443LX_1	0x7181#define PCI_DEVICE_ID_INTEL_82443BX_0	0x7190#define PCI_DEVICE_ID_INTEL_82443BX_1	0x7191#define PCI_DEVICE_ID_INTEL_82443BX_2	0x7192#define PCI_DEVICE_ID_INTEL_P6		0x84c4#define PCI_DEVICE_ID_INTEL_82450GX	0x84c5#define PCI_VENDOR_ID_KTI		0x8e2e#define PCI_DEVICE_ID_KTI_ET32P2	0x3000#define PCI_VENDOR_ID_ADAPTEC		0x9004#define PCI_DEVICE_ID_ADAPTEC_7810	0x1078#define PCI_DEVICE_ID_ADAPTEC_7850	0x5078#define PCI_DEVICE_ID_ADAPTEC_7855	0x5578#define PCI_DEVICE_ID_ADAPTEC_5800	0x5800#define PCI_DEVICE_ID_ADAPTEC_1480A	0x6075#define PCI_DEVICE_ID_ADAPTEC_7860	0x6078#define PCI_DEVICE_ID_ADAPTEC_7861	0x6178#define PCI_DEVICE_ID_ADAPTEC_7870	0x7078#define PCI_DEVICE_ID_ADAPTEC_7871	0x7178#define PCI_DEVICE_ID_ADAPTEC_7872	0x7278#define PCI_DEVICE_ID_ADAPTEC_7873	0x7378#define PCI_DEVICE_ID_ADAPTEC_7874	0x7478#define PCI_DEVICE_ID_ADAPTEC_7895	0x7895#define PCI_DEVICE_ID_ADAPTEC_7880	0x8078#define PCI_DEVICE_ID_ADAPTEC_7881	0x8178#define PCI_DEVICE_ID_ADAPTEC_7882	0x8278#define PCI_DEVICE_ID_ADAPTEC_7883	0x8378#define PCI_DEVICE_ID_ADAPTEC_7884	0x8478#define PCI_DEVICE_ID_ADAPTEC_1030	0x8b78#define PCI_VENDOR_ID_ADAPTEC2		0x9005#define PCI_DEVICE_ID_ADAPTEC2_2940U2	0x0010#define PCI_DEVICE_ID_ADAPTEC2_7890	0x001f#define PCI_DEVICE_ID_ADAPTEC2_3940U2	0x0050#define PCI_DEVICE_ID_ADAPTEC2_7896	0x005f#define PCI_VENDOR_ID_ATRONICS		0x907f#define PCI_DEVICE_ID_ATRONICS_2015	0x2015#define PCI_VENDOR_ID_HOLTEK		0x9412#define PCI_DEVICE_ID_HOLTEK_6565	0x6565#define PCI_VENDOR_ID_TIGERJET		0xe159#define PCI_DEVICE_ID_TIGERJET_300	0x0001#define PCI_VENDOR_ID_ARK		0xedd8#define PCI_DEVICE_ID_ARK_STING		0xa091#define PCI_DEVICE_ID_ARK_STINGARK	0xa099#define PCI_DEVICE_ID_ARK_2000MT	0xa0a1/* * The PCI interface treats multi-function devices as independent * devices.  The slot/function address of each device is encoded * in a single byte as follows: * *	7:3 = slot *	2:0 = function */#define PCI_DEVFN(slot,func)	((((slot) & 0x1f) << 3) | ((func) & 0x07))#define PCI_SLOT(devfn)		(((devfn) >> 3) & 0x1f)#define PCI_FUNC(devfn)		((devfn) & 0x07)/* * Error values that may be returned by the PCI bios. */#define PCIBIOS_SUCCESSFUL		0x00#define PCIBIOS_FUNC_NOT_SUPPORTED	0x81#define PCIBIOS_BAD_VENDOR_ID		0x83#define PCIBIOS_DEVICE_NOT_FOUND	0x86#define PCIBIOS_BAD_REGISTER_NUMBER	0x87#define PCIBIOS_SET_FAILED		0x88#define PCIBIOS_BUFFER_TOO_SMALL	0x89#define PCI_MAX_DEVICES			16#define PCI_MAX_FUNCTIONS		8typedef struct  {	int (*read_config_byte)(unsigned char, unsigned char,  unsigned char,			       unsigned char, unsigned char *);	int (*read_config_word)(unsigned char, unsigned char,  unsigned char,			       unsigned char, unsigned short *);	int (*read_config_dword)(unsigned char, unsigned char,  unsigned char,			       unsigned char, unsigned int *);	int (*write_config_byte)(unsigned char, unsigned char,  unsigned char,			       unsigned char, unsigned char);	int (*write_config_word)(unsigned char, unsigned char,  unsigned char,			       unsigned char, unsigned short);	int (*write_config_dword)(unsigned char, unsigned char,  unsigned char,			       unsigned char, unsigned int);}pci_config_access_functions;typedef struct {  volatile unsigned char*	pci_config_addr;  volatile unsigned char*	pci_config_data;  pci_config_access_functions*	pci_functions;} pci_config;extern pci_config pci;extern inline intpci_read_config_byte(unsigned char bus, unsigned char slot, unsigned char function, 			 unsigned char where, unsigned char * val) {	return pci.pci_functions->read_config_byte(bus, slot, function, where, val);}extern inline intpci_read_config_word(unsigned char bus, unsigned char slot, unsigned char function, 			 unsigned char where, unsigned short * val) {	return pci.pci_functions->read_config_word(bus, slot, function, where, val);}extern inline intpci_read_config_dword(unsigned char bus, unsigned char slot, unsigned char function, 			 unsigned char where, unsigned int * val) {	return pci.pci_functions->read_config_dword(bus, slot, function, where, val);}extern inline intpci_write_config_byte(unsigned char bus, unsigned char slot, unsigned char function, 			 unsigned char where, unsigned char val) {	return pci.pci_functions->write_config_byte(bus, slot, function, where, val);}extern inline intpci_write_config_word(unsigned char bus, unsigned char slot, unsigned char function, 			 unsigned char where, unsigned short val) {	return pci.pci_functions->write_config_word(bus, slot, function, where, val);}extern inline intpci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char function, 			 unsigned char where, unsigned int val) {	return pci.pci_functions->write_config_dword(bus, slot, function, where, val);}/* * Return the number of PCI busses in the system */extern unsigned char BusCountPCI();extern void InitializePCI();#endif /* RTEMS_PCI_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -