pnp2110.h
来自「优龙2410linux2.6.8内核源代码」· C头文件 代码 · 共 47 行
H
47 行
/* * linux/include/asm-arm/arch-pxa/pnp2110.h * * (c) 2004 Robert Schwebel <r.schwebel@pengutronix.de>, Pengutronix * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */#ifndef _INCLUDE_ASMARM_ARCHPXA_PNP2110_H_#define _INCLUDE_ASMARM_ARCHPXA_PHP2110_H_/* * ethernet chip (SMSC91C111) */#define GPIO_PNP2110_ETH 0#define PNP2110_ETH_PHYS (0x2C000000)#define PNP2110_ETH_VIRT (0xf0000000)#define PNP2110_ETH_SIZE (0x1000)#define PNP2110_ETH_IRQ IRQ_GPIO(GPIO_PNP2110_ETH)#define PNP2110_ETH_IRQ_EDGE IRQT_RISING/* * virtual to physical conversion macros */#define PNP2110_P2V(x) ((x) - PNP2110_FPGA_PHYS + PNP2110_FPGA_VIRT)#define PNP2110_V2P(x) ((x) - PNP2110_FPGA_VIRT + PNP2110_FPGA_PHYS)#ifndef __ASSEMBLY__# define __PNP2110_REG(x) (*((volatile unsigned long *)PNP2110_P2V(x)))#else# define __PNP2110_REG(x) PNP2110_P2V(x)#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?