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