File: [local] / prex-old / dev / arm / cats / config_table.c (download)
Revision 1.1, Fri Aug 8 13:18:16 2008 UTC (15 years, 9 months ago) by nbrk
Branch: MAIN
CVS Tags: HEAD
Start implementing basic hardware support for CATS, based on new autoconfiguration
mechanism. This effectively uses bus_space to abstract children of parents.
Some info about these drivers:
hostio is a host memory-mapped i/o - one and only child of 'root';
footbridge is just a proxy for now;
fuart is a DC21285 UART driver which fills uart_attach_args and attaches
com, which is machine independent driver;
This all is not finished yet (just quick hacks), but commit it so i could work at home.
|
/*
* $Id: config_table.c,v 1.1 2008/08/08 13:18:16 nbrk Exp $
*/
/*
* ARM/CATS, where to attach each device.
*/
#include <driver.h>
/* device drivers */
extern struct driver root_drv;
extern struct driver hostio_drv;
extern struct driver footbridge_drv;
extern struct driver fuart_drv;
extern struct driver com_drv;
struct driver *drivers[] = {
&root_drv,
&hostio_drv,
&footbridge_drv,
&fuart_drv,
&com_drv,
NULL
};
struct attachment config_table[] = {
/* chname, paname, paunit, hename, flags */
{ "hostio", "root", 0, NULL, 0 },
{ "footbridge", "hostio", 0, NULL, 0 },
{ "fuart", "footbridge", 0, NULL, 0 },
{ "com", "fuart", -1, NULL, 0},
{ NULL, NULL, -1, NULL, 0}
};