gsc.h

来自「Linux Kernel 2.6.9 for OMAP1710」· C头文件 代码 · 共 47 行

H
47
字号
/* * drivers/parisc/gsc.h * Declarations for functions in gsc.c * Copyright (c) 2000-2002 Helge Deller, Matthew Wilcox * * Distributed under the terms of the GPL, version 2 */#include <linux/interrupt.h>#include <asm/hardware.h>#include <asm/parisc-device.h>#define OFFSET_IRR 0x0000   /* Interrupt request register */#define OFFSET_IMR 0x0004   /* Interrupt mask register */#define OFFSET_IPR 0x0008   /* Interrupt pending register */#define OFFSET_ICR 0x000C   /* Interrupt control register */#define OFFSET_IAR 0x0010   /* Interrupt address register *//* PA I/O Architected devices support at least 5 bits in the EIM register. */#define GSC_EIM_WIDTH 5struct gsc_irq {	unsigned long txn_addr;	/* IRQ "target" */	int txn_data;		/* HW "IRQ" */	int irq;		/* virtual IRQ */};struct busdevice {	struct parisc_device *gsc;	unsigned long hpa;	char *name;	int version;	int type;	int parent_irq;	int eim;	struct irq_region *busdev_region;};/* short cut to keep the compiler happy */#define BUSDEV_DEV(x)	((struct busdevice *) (x))int gsc_common_irqsetup(struct parisc_device *parent, struct busdevice *busdev);extern int gsc_alloc_irq(struct gsc_irq *dev);	/* dev needs an irq */extern int gsc_claim_irq(struct gsc_irq *dev, int irq);	/* dev needs this irq */irqreturn_t busdev_barked(int busdev_irq, void *dev, struct pt_regs *regs);

⌨️ 快捷键说明

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