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

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

1.1       init        1: /*
1.2     ! init        2:  * $Id: root.c,v 1.1.1.1 2007/10/16 08:41:04 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,
                     26:        /* detach */ NULL
                     27: };
                     28:
                     29:
                     30: int
                     31: root_attach(struct device *self, uint32_t loc, uint8_t flags)
                     32: {
                     33:        /* root pseudo device */
                     34:
                     35:        printf("(root) pseudo device\n");
                     36:
                     37:        return(0);
                     38: }
                     39:

CVSweb