[BACK]Return to config.c CVS log [TXT][DIR] Up to [local] / funnyos / arch / testarm

Annotation of funnyos/arch/testarm/config.c, Revision 1.4

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

CVSweb