Annotation of funnyos/arch/testarm/dev/tairqc.c, Revision 1.2
1.1 init 1: /*
1.2 ! init 2: * $Id: tairqc.c,v 1.1 2007/10/29 20:12:18 init Exp $
1.1 init 3: */
4: #include <sys/types.h>
5: #include <sys/device.h>
6: #include <sys/bus.h>
7:
8: #include <arch/testarm/dev/tairqcvar.h>
9: #include <arch/testarm/dev/tairqcreg.h>
10:
11: /*
12: * testarm Interrupt Controller Unit support.
13: */
14: int tairqc_attach(struct device *self, uint32_t loc, uint8_t flags);
15: void tairqc_irq(void);
16:
17:
18: struct driver tairqc_dr = {
19: sizeof(struct tairqc_dd),
20: tairqc_attach,
1.2 ! init 21: NULL,
1.1 init 22: NULL
23: };
24:
25:
26: int
27: tairqc_attach(struct device *self, uint32_t loc, uint8_t flags)
28: {
29: struct tairqc_dd *ddp = self->dv_devdata;
30:
31: /* leap to parent's bus_handle */
32: ddp->td_bushandlep = self->dv_parent->dv_aux;
33:
34:
35:
36: }
37:
38:
39: void
40: tairqc_irq(void)
41: {
42: /*
43: * Process an IRQ
44: */
45:
46: }
47:
CVSweb