Annotation of funnyos/arch/testarm/config.c, Revision 1.6
1.1 init 1: /*
1.6 ! init 2: * $Id: config.c,v 1.5 2007/10/16 21:26:15 init Exp $
1.1 init 3: */
4: #include <sys/types.h>
5: #include <sys/device.h>
6:
7: /*
8: * Configuration file for platform (testarm).
9: */
10:
11: /* device drivers */
12: extern struct driver root_dr;
13: extern struct driver cpu_dr;
1.3 init 14: extern struct driver obio_dr;
1.5 init 15: extern struct driver tacons_dr;
1.6 ! init 16: extern struct driver fcons_dr;
1.1 init 17:
18:
19: extern void(*putchar)(char);
20: void tacons_early_putc(char ch);
21:
22: /* amount of physical memory, in Bytes */
23: uint32_t physmem = 33554432;
24:
25: /*
26: * Where to attach each device.
27: */
28: struct attachinfo config_attachinfo[] = {
29: /* child, parent, pminor, loc, flags */
1.3 init 30: { "obio", "root", 0, 0, 0 },
1.1 init 31: { "cpu" , "root", 0, 0, 0 },
1.4 init 32: { "tacons", "obio", 0, 0x10000000, 0 },
1.1 init 33: // { "tartc", "obio", 0, 0x15000000, 0x01 },
1.6 ! init 34: { "fcons", "tacons", 0, 0, 0},
1.1 init 35: { NULL, NULL, 0, 0, 0}
36: };
37:
38:
39: /*
40: * Link device names with their drivers.
41: */
42: struct driverinfo config_driverinfo[] = {
43: { "root", &root_dr, -1 },
1.3 init 44: { "obio", &obio_dr, -1 },
1.1 init 45: { "cpu" , &cpu_dr, -1 },
1.4 init 46: { "tacons", &tacons_dr, -1 },
1.1 init 47: // { "tartc", &tartc_dr, -1 },
1.6 ! init 48: { "fcons", &fcons_dr, -1 },
1.1 init 49: { NULL, NULL, 0 }
50: };
51:
52:
53: /*
54: * Machine early-stage initialization hooks.
55: */
56:
57: void
58: config_consinit(void)
59: {
60: /*
61: * Configure putchar, so we can printf messages to the console without fcons.
62: */
63: /* putchar = tauart_early_putc; */
64: putchar = tacons_early_putc;
65: }
66:
67:
CVSweb