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

Annotation of funnyos/dev/root.c, Revision 1.3

1.1       init        1: /*
1.3     ! init        2:  * $Id: root.c,v 1.2 2007/10/25 20:04:12 init Exp $
1.1       init        3:  */
                      4: #include <sys/types.h>
                      5: #include <sys/device.h>
                      6: #include <libkern/printf.h>
                      7:
1.2       init        8: /*
                      9:  * System root device.
                     10:  * All other will be created/destroyed dynamically with devconfig.
                     11:  */
                     12: struct device *rootdev;
                     13:
                     14:
1.1       init       15: int    root_attach(struct device *, uint32_t, uint8_t);
                     16:
                     17: /* bogus root_dd */
                     18: struct root_dd {
                     19:        uint32_t rd_bogus1;
                     20:        uint8_t  rd_bogus2;
                     21: };
                     22:
                     23: struct driver root_dr = {
                     24:        /* sizeof(dd) */ sizeof(struct root_dd),
                     25:        /* attach */ root_attach,
1.3     ! init       26:        /* detach */ NULL,
        !            27:        /* intr */ NULL
1.1       init       28: };
                     29:
                     30:
                     31: int
                     32: root_attach(struct device *self, uint32_t loc, uint8_t flags)
                     33: {
                     34:        /* root pseudo device */
                     35:
                     36:        printf("(root) pseudo device\n");
                     37:
                     38:        return(0);
                     39: }
                     40:

CVSweb