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

📄 pci-sh7751.h

📁 嵌入式系统设计与实例开发实验教材二源码 多线程应用程序设计 串行端口程序设计 AD接口实验 CAN总线通信实验 GPS通信实验 Linux内核移植与编译实验 IC卡读写实验 SD驱动使
💻 H
📖 第 1 页 / 共 2 页
字号:
/* *	Low-Level PCI Support for SH7751 targets * *  Dustin McIntire (dustin@sensoria.com) (c) 2001 *	 *  May be copied or modified under the terms of the GNU General Public *  License.  See linux/COPYING for more information. * */#ifndef _PCI_SH7751_H_#define _PCI_SH7751_H_#include <linux/pci.h>/* set debug level 4=verbose...1=terse *///#define DEBUG_PCI 3#undef DEBUG_PCI#ifdef DEBUG_PCI#define PCIDBG(n, x...) { if(DEBUG_PCI>=n) printk(x); }#else#define PCIDBG(n, x...)#endif/* startup values */#define PCI_PROBE_BIOS 1#define PCI_PROBE_CONF1 2#define PCI_PROBE_CONF2 4#define PCI_NO_SORT 0x100#define PCI_BIOS_SORT 0x200#define PCI_NO_CHECKS 0x400#define PCI_ASSIGN_ROMS 0x1000#define PCI_BIOS_IRQ_SCAN 0x2000/* Platform Specific Values */#define SH7751_VENDOR_ID             0x1054#define SH7751_DEVICE_ID             0x3505/* SH7751 Specific Values */#define SH7751_PCI_CONFIG_BASE	     0xFD000000  /* Config space base addr */#define SH7751_PCI_CONFIG_SIZE       0x1000000   /* Config space size */#define SH7751_PCI_MEMORY_BASE	     0xFD000000  /* Memory space base addr */#define SH7751_PCI_MEM_SIZE          0x01000000  /* Size of Memory window */#define SH7751_PCI_IO_BASE           0xFE240000  /* IO space base address */#define SH7751_PCI_IO_SIZE           0x40000     /* Size of IO window */#define SH7751_PCIREG_BASE           0xFE200000  /* PCI regs base address */#define PCI_REG(n)                  (SH7751_PCIREG_BASE+ n)#define SH7751_PCICONF0            0x0           /* PCI Config Reg 0 */  #define SH7751_PCICONF0_DEVID      0xFFFF0000  /* Device ID */  #define SH7751_PCICONF0_VNDID      0x0000FFFF  /* Vendor ID */#define SH7751_PCICONF1            0x4           /* PCI Config Reg 1 */  #define SH7751_PCICONF1_DPE        0x80000000  /* Data Parity Error */  #define SH7751_PCICONF1_SSE        0x40000000  /* System Error Status */  #define SH7751_PCICONF1_RMA        0x20000000  /* Master Abort */  #define SH7751_PCICONF1_RTA        0x10000000  /* Target Abort Rx Status */  #define SH7751_PCICONF1_STA        0x08000000  /* Target Abort Exec Status */  #define SH7751_PCICONF1_DEV        0x06000000  /* Timing Status */  #define SH7751_PCICONF1_DPD        0x01000000  /* Data Parity Status */  #define SH7751_PCICONF1_FBBC       0x00800000  /* Back 2 Back Status */  #define SH7751_PCICONF1_UDF        0x00400000  /* User Defined Status */  #define SH7751_PCICONF1_66M        0x00200000  /* 66Mhz Operation Status */  #define SH7751_PCICONF1_PM         0x00100000  /* Power Management Status */  #define SH7751_PCICONF1_PBBE       0x00000200  /* Back 2 Back Control */  #define SH7751_PCICONF1_SER        0x00000100  /* SERR Output Control */  #define SH7751_PCICONF1_WCC        0x00000080  /* Wait Cycle Control */  #define SH7751_PCICONF1_PER        0x00000040  /* Parity Error Response */  #define SH7751_PCICONF1_VPS        0x00000020  /* VGA Pallet Snoop */  #define SH7751_PCICONF1_MWIE       0x00000010  /* Memory Write+Invalidate */  #define SH7751_PCICONF1_SPC        0x00000008  /* Special Cycle Control */  #define SH7751_PCICONF1_BUM        0x00000004  /* Bus Master Control */  #define SH7751_PCICONF1_MES        0x00000002  /* Memory Space Control */  #define SH7751_PCICONF1_IOS        0x00000001  /* I/O Space Control */#define SH7751_PCICONF2            0x8           /* PCI Config Reg 2 */  #define SH7751_PCICONF2_BCC        0xFF000000  /* Base Class Code */  #define SH7751_PCICONF2_SCC        0x00FF0000  /* Sub-Class Code */  #define SH7751_PCICONF2_RLPI       0x0000FF00  /* Programming Interface */  #define SH7751_PCICONF2_REV        0x000000FF  /* Revision ID */#define SH7751_PCICONF3            0xC           /* PCI Config Reg 3 */   #define SH7751_PCICONF3_BIST7      0x80000000  /* Bist Supported */  #define SH7751_PCICONF3_BIST6      0x40000000  /* Bist Executing */  #define SH7751_PCICONF3_BIST3_0    0x0F000000  /* Bist Passed */  #define SH7751_PCICONF3_HD7        0x00800000  /* Single Funtion device */  #define SH7751_PCICONF3_HD6_0      0x007F0000  /* Configuration Layout */  #define SH7751_PCICONF3_LAT        0x0000FF00  /* Latency Timer */  #define SH7751_PCICONF3_CLS        0x000000FF  /* Cache Line Size */#define SH7751_PCICONF4            0x10          /* PCI Config Reg 4 */  #define SH7751_PCICONF4_BASE       0xFFFFFFFC  /* I/O Space Base Addr */  #define SH7751_PCICONF4_ASI        0x00000001  /* Address Space Type */#define SH7751_PCICONF5            0x14          /* PCI Config Reg 5 */  #define SH7751_PCICONF5_BASE       0xFFFFFFF0  /* Mem Space Base Addr */  #define SH7751_PCICONF5_LAP        0x00000008  /* Prefetch Enabled */  #define SH7751_PCICONF5_LAT        0x00000006  /* Local Memory type */  #define SH7751_PCICONF5_ASI        0x00000001  /* Address Space Type */  #define SH7751_PCICONF6            0x18          /* PCI Config Reg 6 */  #define SH7751_PCICONF6_BASE       0xFFFFFFF0  /* Mem Space Base Addr */  #define SH7751_PCICONF6_LAP        0x00000008  /* Prefetch Enabled */  #define SH7751_PCICONF6_LAT        0x00000006  /* Local Memory type */  #define SH7751_PCICONF6_ASI        0x00000001  /* Address Space Type */  /* PCICONF7 - PCICONF10 are undefined */#define SH7751_PCICONF11           0x2C          /* PCI Config Reg 11 */  #define SH7751_PCICONF11_SSID      0xFFFF0000  /* Subsystem ID */  #define SH7751_PCICONF11_SVID      0x0000FFFF  /* Subsystem Vendor ID *//* PCICONF12 is undefined */#define SH7751_PCICONF13           0x34          /* PCI Config Reg 13 */  #define SH7751_PCICONF13_CPTR      0x000000FF  /* PM function pointer *//* PCICONF14 is undefined */#define SH7751_PCICONF15           0x3C          /* PCI Config Reg 15 */  #define SH7751_PCICONF15_IPIN      0x000000FF  /* Interrupt Pin */#define SH7751_PCICONF16           0x40          /* PCI Config Reg 16 */  #define SH7751_PCICONF16_PMES      0xF8000000  /* PME Support */  #define SH7751_PCICONF16_D2S       0x04000000  /* D2 Support */  #define SH7751_PCICONF16_D1S       0x02000000  /* D1 Support */  #define SH7751_PCICONF16_DSI       0x00200000  /* Bit Device Init. */  #define SH7751_PCICONF16_PMCK      0x00080000  /* Clock for PME req. */  #define SH7751_PCICONF16_VER       0x00070000  /* PM Version */  #define SH7751_PCICONF16_NIP       0x0000FF00  /* Next Item Pointer */  #define SH7751_PCICONF16_CID       0x000000FF  /* Capability Identifier */#define SH7751_PCICONF17           0x44          /* PCI Config Reg 17 */  #define SH7751_PCICONF17_DATA      0xFF000000  /* Data field for PM */  #define SH7751_PCICONF17_PMES      0x00800000  /* PME Status */  #define SH7751_PCICONF17_DSCL      0x00600000  /* Data Scaling Value */  #define SH7751_PCICONF17_DSEL      0x001E0000  /* Data Select */  #define SH7751_PCICONF17_PMEN      0x00010000  /* PME Enable */  #define SH7751_PCICONF17_PWST      0x00000003  /* Power State *//* SH7715 Internal PCI Registers */#define SH7751_PCICR               0x100         /* PCI Control Register */  #define SH7751_PCICR_PREFIX        0xA5000000  /* CR prefix for write */  #define SH7751_PCICR_TRSB          0x00000200  /* Target Read Single */  #define SH7751_PCICR_BSWP          0x00000100  /* Target Byte Swap */  #define SH7751_PCICR_PLUP          0x00000080  /* Enable PCI Pullup */  #define SH7751_PCICR_ARBM          0x00000040  /* PCI Arbitration Mode */  #define SH7751_PCICR_MD            0x00000030  /* MD9 and MD10 status */  #define SH7751_PCICR_SERR          0x00000008  /* SERR output assert */  #define SH7751_PCICR_INTA          0x00000004  /* INTA output assert */  #define SH7751_PCICR_PRST          0x00000002  /* PCI Reset Assert */  #define SH7751_PCICR_CFIN          0x00000001  /* Central Fun. Init Done */#define SH7751_PCILSR0             0x104         /* PCI Local Space Register0 */#define SH7751_PCILSR1             0x108         /* PCI Local Space Register1 */

⌨️ 快捷键说明

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