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

📄 pciheaderdefs.h

📁 IXP425的BSP代码
💻 H
字号:
/* pciHeaderDefs.h - PCI bus config space header definitions *//* Copyright 1984-1998 Wind River Systems, Inc. *//*modification history--------------------01a,04mar98,tm   adapted from pciIomapLib.h v01j*/#ifndef __INCpciHeaderDefsh#define __INCpciHeaderDefsh#ifdef __cplusplusextern "C" {#endif#ifndef _ASMLANGUAGE/* structure for the device & bridge header */typedef struct pciHeaderDevice    {    short	vendorId;	/* vendor ID */    short	deviceId;	/* device ID */    short	command;	/* command register */    short	status;		/* status register */    char	revisionId;	/* revision ID */    char	classCode;	/* class code */    char	subClass;	/* sub class code */    char	progIf;		/* programming interface */    char	cacheLine;	/* cache line */    char	latency;	/* latency time */    char	headerType;	/* header type */    char	bist;		/* BIST */    int		base0;		/* base address 0 */    int		base1;		/* base address 1 */    int		base2;		/* base address 2 */    int		base3;		/* base address 3 */    int		base4;		/* base address 4 */    int		base5;		/* base address 5 */    int		cis;		/* cardBus CIS pointer */    short	subVendorId;	/* sub system vendor ID */    short	subSystemId;	/* sub system ID */    int		romBase;	/* expansion ROM base address */    int		reserved0;	/* reserved */    int		reserved1;	/* reserved */    char	intLine;	/* interrupt line */    char	intPin;		/* interrupt pin */    char	minGrant;	/* min Grant */    char	maxLatency;	/* max Latency */    } PCI_HEADER_DEVICE;typedef struct pciHeaderBridge    {    short	vendorId;	/* vendor ID */    short	deviceId;	/* device ID */    short	command;	/* command register */    short	status;		/* status register */    char	revisionId;	/* revision ID */    char	classCode;	/* class code */    char	subClass;	/* sub class code */    char	progIf;		/* programming interface */    char	cacheLine;	/* cache line */    char	latency;	/* latency time */    char	headerType;	/* header type */    char	bist;		/* BIST */    int		base0;		/* base address 0 */    int		base1;		/* base address 1 */    char	priBus;		/* primary bus number */    char	secBus;		/* secondary bus number */    char	subBus;		/* subordinate bus number */    char	secLatency;	/* secondary latency timer */    char	ioBase;		/* IO base */    char	ioLimit;	/* IO limit */    short	secStatus;	/* secondary status */    short	memBase;	/* memory base */    short	memLimit;	/* memory limit */    short	preBase;	/* prefetchable memory base */    short	preLimit;	/* prefetchable memory limit */    int		preBaseUpper;	/* prefetchable memory base upper 32 bits */    int		preLimitUpper;	/* prefetchable memory base upper 32 bits */    short	ioBaseUpper;	/* IO base upper 16 bits */    short	ioLimitUpper;	/* IO limit upper 16 bits */    int		reserved;	/* reserved */    int		romBase;	/* expansion ROM base address */    char	intLine;	/* interrupt line */    char	intPin;		/* interrupt pin */    short	control;	/* bridge control */    } PCI_HEADER_BRIDGE;#endif	/* _ASMLANGUAGE */#ifdef __cplusplus}#endif#endif /* __INCpciHeaderDefsh */

⌨️ 快捷键说明

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