[BACK]Return to tairqc.c CVS log [TXT][DIR] Up to [local] / funnyos / arch / testarm / dev

Annotation of funnyos/arch/testarm/dev/tairqc.c, Revision 1.1

1.1     ! init        1: /*
        !             2:  * $Id$
        !             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,
        !            21:        NULL
        !            22: };
        !            23:
        !            24:
        !            25: int
        !            26: tairqc_attach(struct device *self, uint32_t loc, uint8_t flags)
        !            27: {
        !            28:        struct tairqc_dd *ddp = self->dv_devdata;
        !            29:
        !            30:        /* leap to parent's bus_handle */
        !            31:        ddp->td_bushandlep = self->dv_parent->dv_aux;
        !            32:
        !            33:
        !            34:
        !            35: }
        !            36:
        !            37:
        !            38: void
        !            39: tairqc_irq(void)
        !            40: {
        !            41:        /*
        !            42:         * Process an IRQ
        !            43:         */
        !            44:
        !            45: }
        !            46:

CVSweb