Annotation of funnyos/arch/sam7s64/config.c, Revision 1.2
1.1 init 1: /*
1.2 ! init 2: * $Id: config.c,v 1.1 2007/11/08 22:21:46 init Exp $
1.1 init 3: */
4: #include <sys/types.h>
5: #include <sys/device.h>
6:
7: /*
8: * Configuration file for platform (AT91SAM7S64).
9: */
10:
11: /* device drivers */
12: extern struct driver root_dr;
13: extern struct driver cpu_dr;
14:
15:
16: extern void(*putchar)(char);
1.2 ! init 17: void sauart_early_putc(char ch);
1.1 init 18:
19: /* amount of physical memory, in Bytes */
1.2 ! init 20: uint32_t physmem = 16384;
1.1 init 21:
22: /*
23: * Where to attach each device.
24: */
25: struct attachinfo config_attachinfo[] = {
26: /* child, parent, pminor, loc, intrno, flags */
27: { "cpu" , "root", 0, 0, 0, 0 },
28: { NULL, NULL, 0, 0, 0, 0 }
29: };
30:
31:
32: /*
33: * Link device names with their drivers.
34: */
35: struct driverinfo config_driverinfo[] = {
36: /* name, driverp, ninstances (should be -1) */
37: { "root", &root_dr, -1 },
38: { "cpu" , &cpu_dr, -1 },
39: { NULL, NULL, 0 }
40: };
41:
42:
43: /*
44: * Machine early-stage initialization hooks.
45: */
46:
47: void
48: config_consinit(void)
49: {
50: /*
51: * Configure putchar, so we can printf messages to the console without fcons.
52: */
53: /* putchar = tauart_early_putc; */
54: }
55:
56:
CVSweb