Annotation of funnyos/arch/testarm/config.c, Revision 1.8
1.1 init 1: /*
1.8 ! init 2: * $Id: config.c,v 1.7 2007/10/25 18:18:17 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.8 ! init 30: { "cpu" , "root", 0, 0, 0 },
1.3 init 31: { "obio", "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[] = {
1.7 init 43: /* name, driverp, ninstances (should be -1) */
1.1 init 44: { "root", &root_dr, -1 },
1.3 init 45: { "obio", &obio_dr, -1 },
1.1 init 46: { "cpu" , &cpu_dr, -1 },
1.4 init 47: { "tacons", &tacons_dr, -1 },
1.1 init 48: // { "tartc", &tartc_dr, -1 },
1.6 init 49: { "fcons", &fcons_dr, -1 },
1.1 init 50: { NULL, NULL, 0 }
51: };
52:
53:
54: /*
55: * Machine early-stage initialization hooks.
56: */
57:
58: void
59: config_consinit(void)
60: {
61: /*
62: * Configure putchar, so we can printf messages to the console without fcons.
63: */
64: /* putchar = tauart_early_putc; */
65: putchar = tacons_early_putc;
66: }
67:
68:
CVSweb