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

📄 pcibios.h

📁 开放源码的嵌入式开发环境
💻 H
字号:
/* * This software is Copyright (C) 1998 by T.sqware - all rights limited * It is provided in to the public domain "as is", can be freely modified * as far as this copyight notice is kept unchanged, but does not imply * an endorsement by T.sqware of the product in which it is included. */#ifndef _PCIB_H#define _PCIB_H#include <rtems/pci.h>/* * Make device signature from bus number, device numebr and function * number */#define PCIB_DEVSIG_MAKE(b,d,f) ((b<<8)|(d<<3)|(f))/* * Extract valrous part from device signature */#define PCIB_DEVSIG_BUS(x) (((x)>>8) &0xff)#define PCIB_DEVSIG_DEV(x) (((x)>>3) & 0x1f)#define PCIB_DEVSIG_FUNC(x) ((x) & 0x7)#ifdef __cplusplusextern "C" {#endifint pcib_find_by_class(int classCode, int idx, int *sig);int pcib_special_cycle(int busNo, int data);int pcib_conf_read8(int sig, int off, unsigned char *data);int pcib_conf_read16(int sig, int off, unsigned short *data);int pcib_conf_read32(int sig, int off, unsigned int *data);int pcib_conf_write8(int sig, int off, unsigned int data);int pcib_conf_write16(int sig, int off, unsigned int data);int pcib_conf_write32(int sig, int off, unsigned int data);intpci_find_device( unsigned short vendorid, unsigned short deviceid,                   int instance, int *pbus, int *pdev, int *pfun );#ifdef __cplusplus}#endif#endif /* _PCIB_H */

⌨️ 快捷键说明

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