diff options
Diffstat (limited to 'include/drvmgr/ambapp_bus_grlib.h')
-rw-r--r-- | include/drvmgr/ambapp_bus_grlib.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/drvmgr/ambapp_bus_grlib.h b/include/drvmgr/ambapp_bus_grlib.h new file mode 100644 index 0000000000..2def4bc2b4 --- /dev/null +++ b/include/drvmgr/ambapp_bus_grlib.h @@ -0,0 +1,36 @@ +/* LEON3 GRLIB AMBA Plug & Play bus driver interface. + * + * COPYRIGHT (c) 2008. + * Cobham Gaisler AB. + * + * This is driver is a wrapper for the general AMBA Plug & Play bus + * driver. This is the root bus driver for GRLIB systems. + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifndef __AMBAPP_BUS_GRLIB_H__ +#define __AMBAPP_BUS_GRLIB_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +struct grlib_config { + struct ambapp_bus *abus; + struct drvmgr_bus_res *resources; +}; + +/* Register GRLIB AMBA PnP Bus as root bus at driver manager */ +extern int ambapp_grlib_root_register(struct grlib_config *config); + +/* Register bus driver to Driver Manager */ +void ambapp_grlib_register(void); + +#ifdef __cplusplus +} +#endif + +#endif |