version 1.2, 2007/11/09 16:10:07 |
version 1.3, 2007/11/09 16:12:15 |
|
|
/* device drivers */ |
/* device drivers */ |
extern struct driver root_dr; |
extern struct driver root_dr; |
extern struct driver cpu_dr; |
extern struct driver cpu_dr; |
|
extern struct driver saapbus_dr; |
|
|
|
|
extern void(*putchar)(char); |
extern void(*putchar)(char); |
|
|
struct attachinfo config_attachinfo[] = { |
struct attachinfo config_attachinfo[] = { |
/* child, parent, pminor, loc, intrno, flags */ |
/* child, parent, pminor, loc, intrno, flags */ |
{ "cpu" , "root", 0, 0, 0, 0 }, |
{ "cpu" , "root", 0, 0, 0, 0 }, |
|
{ "saapbus","root", 0, 0, 0, 0 }, |
{ NULL, NULL, 0, 0, 0, 0 } |
{ NULL, NULL, 0, 0, 0, 0 } |
}; |
}; |
|
|
|
|
/* name, driverp, ninstances (should be -1) */ |
/* name, driverp, ninstances (should be -1) */ |
{ "root", &root_dr, -1 }, |
{ "root", &root_dr, -1 }, |
{ "cpu" , &cpu_dr, -1 }, |
{ "cpu" , &cpu_dr, -1 }, |
|
{ "saapbus" , &saapbus_dr, -1 }, |
{ NULL, NULL, 0 } |
{ NULL, NULL, 0 } |
}; |
}; |
|
|