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

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

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

CVSweb