diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2011-12-15 17:00:38 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:16 +0200 |
commit | e05c2659f408963664cc201ed86dafb9c137f3e8 (patch) | |
tree | 64b18dba59a5f4f76d480119be0a8df09d890e00 /c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h | |
parent | sparc BSPs: implemented libpci IRQ BSP support (diff) | |
download | rtems-e05c2659f408963664cc201ed86dafb9c137f3e8.tar.bz2 |
LEON3: implemented AMBA PnP Bus Driver for Driver Manager
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h b/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h new file mode 100644 index 0000000000..a0e0548e32 --- /dev/null +++ b/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h @@ -0,0 +1,33 @@ +/* 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.com/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); + +#ifdef __cplusplus +} +#endif + +#endif |