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

Annotation of funnyos/arch/sam7s64/config.c, Revision 1.3

1.1       init        1: /*
1.3     ! init        2:  * $Id: config.c,v 1.2 2007/11/09 16:10:07 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;
1.3     ! init       14: extern struct driver saapbus_dr;
1.1       init       15:
                     16:
                     17: extern void(*putchar)(char);
1.2       init       18: void   sauart_early_putc(char ch);
1.1       init       19:
                     20: /* amount of physical memory, in Bytes */
1.2       init       21: uint32_t physmem = 16384;
1.1       init       22:
                     23: /*
                     24:  * Where to attach each device.
                     25:  */
                     26: struct attachinfo config_attachinfo[] = {
                     27:        /* child,   parent, pminor, loc,        intrno, flags */
                     28:        { "cpu" ,       "root",         0, 0,                   0,      0 },
1.3     ! init       29:        { "saapbus","root",     0, 0,                   0,      0 },
1.1       init       30:        { NULL,         NULL,           0, 0,                   0,  0 }
                     31: };
                     32:
                     33:
                     34: /*
                     35:  * Link device names with their drivers.
                     36:  */
                     37: struct driverinfo config_driverinfo[] = {
                     38: /* name, driverp, ninstances (should be -1) */
                     39:        { "root", &root_dr, -1 },
                     40:        { "cpu" , &cpu_dr, -1 },
1.3     ! init       41:        { "saapbus" , &saapbus_dr, -1 },
1.1       init       42:        { NULL, NULL, 0 }
                     43: };
                     44:
                     45:
                     46: /*
                     47:  * Machine early-stage initialization hooks.
                     48:  */
                     49:
                     50: void
                     51: config_consinit(void)
                     52: {
                     53:        /*
                     54:         * Configure putchar, so we can printf messages to the console without fcons.
                     55:         */
                     56:        /* putchar = tauart_early_putc; */
                     57: }
                     58:
                     59:

CVSweb