File: [local] / funnyos / arch / testarm / config.c (download)
Revision 1.2, Tue Oct 16 18:43:23 2007 UTC (16 years, 11 months ago) by init
Branch: MAIN
Changes since 1.1: +1 -47 lines
clean out commented code
|
/*
* $Id: config.c,v 1.2 2007/10/16 18:43:23 init Exp $
*/
#include <sys/types.h>
#include <sys/device.h>
/*
* Configuration file for platform (testarm).
*/
/* device drivers */
extern struct driver root_dr;
extern struct driver cpu_dr;
extern void(*putchar)(char);
void tacons_early_putc(char ch);
/* amount of physical memory, in Bytes */
uint32_t physmem = 33554432;
/*
* Where to attach each device.
*/
struct attachinfo config_attachinfo[] = {
/* child, parent, pminor, loc, flags */
// { "obio", "root", 0, 0, 0 },
{ "cpu" , "root", 0, 0, 0 },
// { "tacons", "obio", 0, 0x10000000, 0 },
// { "tartc", "obio", 0, 0x15000000, 0x01 },
// { "fcons", "tacons", 0, 0, 0},
{ NULL, NULL, 0, 0, 0}
};
/*
* Link device names with their drivers.
*/
struct driverinfo config_driverinfo[] = {
{ "root", &root_dr, -1 },
// { "obio", &obio_dr, -1 },
{ "cpu" , &cpu_dr, -1 },
// { "tacons", &tacons_dr, -1 },
// { "tartc", &tartc_dr, -1 },
// { "fcons", &fcons_dr, -1 },
{ NULL, NULL, 0 }
};
/*
* Machine early-stage initialization hooks.
*/
void
config_consinit(void)
{
/*
* Configure putchar, so we can printf messages to the console without fcons.
*/
/* putchar = tauart_early_putc; */
putchar = tacons_early_putc;
}