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

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

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

CVSweb