=================================================================== RCS file: /cvs/funnyos/dev/root.c,v retrieving revision 1.1.1.1 retrieving revision 1.3 diff -u -r1.1.1.1 -r1.3 --- funnyos/dev/root.c 2007/10/16 09:41:04 1.1.1.1 +++ funnyos/dev/root.c 2007/10/29 21:10:02 1.3 @@ -1,10 +1,17 @@ /* - * $Id: root.c,v 1.1.1.1 2007/10/16 08:41:04 init Exp $ + * $Id: root.c,v 1.3 2007/10/29 21:10:02 init Exp $ */ #include #include #include +/* + * System root device. + * All other will be created/destroyed dynamically with devconfig. + */ +struct device *rootdev; + + int root_attach(struct device *, uint32_t, uint8_t); /* bogus root_dd */ @@ -16,15 +23,10 @@ struct driver root_dr = { /* sizeof(dd) */ sizeof(struct root_dd), /* attach */ root_attach, - /* detach */ NULL + /* detach */ NULL, + /* intr */ NULL }; - -/* - * System root device. - * All other will be created/destroyed dynamically with devconfig. - */ -struct device *rootdev; int root_attach(struct device *self, uint32_t loc, uint8_t flags)