version 1.1, 2007/10/16 09:41:04 |
version 1.3, 2007/10/29 21:10:02 |
|
|
#include <sys/device.h> |
#include <sys/device.h> |
#include <libkern/printf.h> |
#include <libkern/printf.h> |
|
|
|
/* |
|
* System root device. |
|
* All other will be created/destroyed dynamically with devconfig. |
|
*/ |
|
struct device *rootdev; |
|
|
|
|
int root_attach(struct device *, uint32_t, uint8_t); |
int root_attach(struct device *, uint32_t, uint8_t); |
|
|
/* bogus root_dd */ |
/* bogus root_dd */ |
|
|
struct driver root_dr = { |
struct driver root_dr = { |
/* sizeof(dd) */ sizeof(struct root_dd), |
/* sizeof(dd) */ sizeof(struct root_dd), |
/* attach */ root_attach, |
/* 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 |
int |
root_attach(struct device *self, uint32_t loc, uint8_t flags) |
root_attach(struct device *self, uint32_t loc, uint8_t flags) |