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

File: [local] / funnyos / arch / sam7s64 / config.c (download)

Revision 1.3, Fri Nov 9 16:12:15 2007 UTC (16 years, 6 months ago) by init
Branch: MAIN
Changes since 1.2: +4 -1 lines

attach saapbus at root/0

/*
 * $Id: config.c,v 1.3 2007/11/09 16:12:15 init Exp $
 */
#include <sys/types.h>
#include <sys/device.h>

/*
 * Configuration file for platform (AT91SAM7S64).
 */

/* device drivers */
extern struct driver root_dr;
extern struct driver cpu_dr;
extern struct driver saapbus_dr;


extern void(*putchar)(char);
void 	sauart_early_putc(char ch);

/* amount of physical memory, in Bytes */
uint32_t physmem = 16384;

/*
 * Where to attach each device.
 */
struct attachinfo config_attachinfo[] = {
	/* child,   parent, pminor, loc, 	intrno, flags */
	{ "cpu" , 	"root", 	0, 0, 			0,	0 },
	{ "saapbus","root", 	0, 0, 			0,	0 },
	{ NULL, 	NULL, 		0, 0, 			0,  0 }
};


/*
 * Link device names with their drivers.
 */
struct driverinfo config_driverinfo[] = {
/* name, driverp, ninstances (should be -1) */
	{ "root", &root_dr, -1 },
	{ "cpu" , &cpu_dr, -1 },
	{ "saapbus" , &saapbus_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; */
}