[BACK]Return to skeleton_driver.c CVS log [TXT][DIR] Up to [local] / funnyos / other

Annotation of funnyos/other/skeleton_driver.c, Revision 1.1

1.1     ! nbrk        1: /*
        !             2:  * $Id$
        !             3:  */
        !             4: #include <sys/types.h>
        !             5: #include <sys/device.h>
        !             6: #include <sys/bus.h>
        !             7:
        !             8: #include <arch/XXX/dev/XXXreg.h>
        !             9: #include <arch/XXX/dev/XXXvar.h>
        !            10:
        !            11: /*
        !            12:  * Skeleton driver.
        !            13:  */
        !            14:
        !            15: int    XXX_attach(struct device *, uint32_t, uint8_t);
        !            16:
        !            17: struct driver XXX_dr = {
        !            18:        sizeof(struct XXX_dd),
        !            19:        XXX_attach,
        !            20:        NULL,
        !            21:        NULL
        !            22: };
        !            23:
        !            24:
        !            25: int
        !            26: XXX_attach(struct device *, uint32_t loc, uint8_t flags)
        !            27: {
        !            28:        struct XXX_dd *ddp = self->dv_devdata;
        !            29:
        !            30:        return(0);
        !            31: }
        !            32:

CVSweb