version 1.7, 2007/10/25 19:18:17 |
version 1.12, 2007/11/19 11:21:48 |
|
|
extern struct driver obio_dr; |
extern struct driver obio_dr; |
extern struct driver tacons_dr; |
extern struct driver tacons_dr; |
extern struct driver fcons_dr; |
extern struct driver fcons_dr; |
|
extern struct driver tartc_dr; |
|
extern struct driver tairqc_dr; |
|
|
|
|
extern void(*putchar)(char); |
extern void(*putchar)(char); |
|
|
* Where to attach each device. |
* Where to attach each device. |
*/ |
*/ |
struct attachinfo config_attachinfo[] = { |
struct attachinfo config_attachinfo[] = { |
/* child, parent, pminor, loc, flags */ |
/* child, parent, pminor, loc, intrno, flags */ |
{ "obio", "root", 0, 0, 0 }, |
{ "cpu" , "root", 0, 0, 0, 0 }, |
{ "cpu" , "root", 0, 0, 0 }, |
{ "obio", "root", 0, 0, 0, 0 }, |
{ "tacons", "obio", 0, 0x10000000, 0 }, |
{ "tacons", "obio", 0, 0x10000000, 0, 0 }, |
// { "tartc", "obio", 0, 0x15000000, 0x01 }, |
{ "tartc", "obio", 0, 0x15000000, 4, 0 }, |
{ "fcons", "tacons", 0, 0, 0}, |
{ "tairqc", "obio", 0, 0x16000000, 0, 0 }, |
{ NULL, NULL, 0, 0, 0} |
{ "fcons", "tacons", 0, 0, 0, 0 }, |
|
{ NULL, NULL, 0, 0, 0, 0 } |
}; |
}; |
|
|
|
|
|
|
{ "obio", &obio_dr, -1 }, |
{ "obio", &obio_dr, -1 }, |
{ "cpu" , &cpu_dr, -1 }, |
{ "cpu" , &cpu_dr, -1 }, |
{ "tacons", &tacons_dr, -1 }, |
{ "tacons", &tacons_dr, -1 }, |
// { "tartc", &tartc_dr, -1 }, |
{ "tartc", &tartc_dr, -1 }, |
{ "fcons", &fcons_dr, -1 }, |
{ "fcons", &fcons_dr, -1 }, |
|
{ "tairqc", &tairqc_dr, -1 }, |
{ NULL, NULL, 0 } |
{ NULL, NULL, 0 } |
}; |
}; |
|
|
|
|
*/ |
*/ |
|
|
void |
void |
config_consinit(void) |
config_machineinit(void) |
{ |
{ |
/* |
/* |
* Configure putchar, so we can printf messages to the console without fcons. |
* Configure putchar, so we can printf messages to the console without fcons. |