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