Changeset 30594a9 in rtems


Ignore:
Timestamp:
Feb 4, 2015, 9:18:20 AM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
e9378fa
Parents:
3bb4122
git-author:
Daniel Hellstrom <daniel@…> (02/04/15 09:18:20)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:17)
Message:

DRVMGR: add LEON BSPs driver registration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdrvmgr/drvmgr_confdefs.h

    r3bb4122 r30594a9  
    3030#ifdef CONFIGURE_INIT
    3131
    32 #if 0 /* EXAMPLE: GPTIMER driver definition */
     32/*** AMBA Plug & Play Drivers ***/
    3333#define DRIVER_AMBAPP_GAISLER_GPTIMER_REG {gptimer_register_drv}
    3434extern void gptimer_register_drv(void);
    35 #endif
     35
     36#define DRIVER_AMBAPP_GAISLER_APBUART_REG {apbuart_cons_register_drv}
     37extern void apbuart_cons_register_drv(void);
     38
     39#define DRIVER_AMBAPP_GAISLER_GRETH_REG {greth_register_drv}
     40extern void greth_register_drv(void);
     41
     42#define DRIVER_AMBAPP_GAISLER_GRSPW_REG {grspw_register_drv}
     43extern void grspw_register_drv(void);
     44
     45#define DRIVER_AMBAPP_GAISLER_GRCAN_REG {grcan_register_drv}
     46extern void grcan_register_drv(void);
     47
     48#define DRIVER_AMBAPP_GAISLER_OCCAN_REG {occan_register_drv}
     49extern void occan_register_drv(void);
     50
     51#define DRIVER_AMBAPP_GAISLER_GR1553B_REG {gr1553_register}
     52extern void gr1553_register(void);
     53
     54#define DRIVER_AMBAPP_GAISLER_GR1553BC_REG {gr1553bc_register}
     55extern void gr1553bc_register(void);
     56
     57#define DRIVER_AMBAPP_GAISLER_GR1553BM_REG {gr1553bm_register}
     58extern void gr1553bm_register(void);
     59
     60#define DRIVER_AMBAPP_GAISLER_GR1553RT_REG {gr1553rt_register}
     61extern void gr1553rt_register(void);
     62
     63#define DRIVER_AMBAPP_GAISLER_B1553BRM_REG {b1553brm_register_drv}
     64extern void b1553brm_register_drv(void);
     65
     66#define DRIVER_AMBAPP_GAISLER_B1553RT_REG {b1553rt_register_drv}
     67extern void b1553rt_register_drv(void);
     68
     69#define DRIVER_AMBAPP_GAISLER_GRTM_REG {grtm_register_drv}
     70extern void grtm_register_drv(void);
     71
     72#define DRIVER_AMBAPP_GAISLER_GRTC_REG {grtc_register_drv}
     73extern void grtc_register_drv(void);
     74
     75#define DRIVER_AMBAPP_MCTRL_REG {mctrl_register_drv}
     76extern void mctrl_register_drv(void);
     77
     78#define DRIVER_AMBAPP_GAISLER_PCIF_REG {pcif_register_drv}
     79extern void pcif_register_drv(void);
     80
     81#define DRIVER_AMBAPP_GAISLER_GRPCI_REG {grpci_register_drv}
     82extern void grpci_register_drv(void);
     83
     84#define DRIVER_AMBAPP_GAISLER_GRPCI2_REG {grpci2_register_drv}
     85extern void grpci2_register_drv(void);
     86
     87#define DRIVER_AMBAPP_GAISLER_SPICTRL_REG {spictrl_register_drv}
     88extern void spictrl_register_drv(void);
     89
     90#define DRIVER_AMBAPP_GAISLER_I2CMST_REG {i2cmst_register_drv}
     91extern void i2cmst_register_drv(void);
     92
     93#define DRIVER_AMBAPP_GAISLER_GRGPIO_REG {grgpio_register_drv}
     94extern void grgpio_register_drv(void);
     95
     96#define DRIVER_AMBAPP_GAISLER_GRPWM_REG {grpwm_register_drv}
     97extern void grpwm_register_drv(void);
     98
     99#define DRIVER_AMBAPP_GAISLER_GRADCDAC_REG {gradcdac_register_drv}
     100extern void gradcdac_register_drv(void);
     101
     102#define DRIVER_AMBAPP_GAISLER_SPWCUC_REG {spwcuc_register}
     103extern void spwcuc_register(void);
     104
     105#define DRIVER_AMBAPP_GAISLER_GRCTM_REG {grctm_register}
     106extern void grctm_register(void);
     107
     108#define DRIVER_AMBAPP_GAISLER_SPW_ROUTER_REG {router_register_drv}
     109extern void router_register_drv(void);
     110
     111#define DRIVER_AMBAPP_GAISLER_AHBSTAT_REG {ahbstat_register_drv}
     112extern void ahbstat_register_drv(void);
     113
     114
     115/*** LEON2 AMBA Hard coded bus Drivers ***/
     116#define DRIVER_LEON2_AT697PCI_REG {at697pci_register_drv}
     117extern void at697pci_register_drv(void);
     118
     119#define DRIVER_LEON2_AMBAPP_REG {ambapp_leon2_register}
     120extern void ambapp_leon2_register(void);
     121
     122
     123/*** PCI Bus Drivers (PCI Target drivers) ***/
     124#define DRIVER_PCI_GR_RASTA_ADCDAC {gr_rasta_adcdac_register_drv}
     125extern void gr_rasta_adcdac_register_drv(void);
     126
     127#define DRIVER_PCI_GR_RASTA_IO {gr_rasta_io_register_drv}
     128extern void gr_rasta_io_register_drv(void);
     129
     130#define DRIVER_PCI_GR_RASTA_TMTC {gr_rasta_tmtc_register_drv}
     131extern void gr_rasta_tmtc_register_drv(void);
     132
     133#define DRIVER_PCI_GR_701 {gr701_register_drv}
     134extern void gr701_register_drv(void);
     135
     136#define DRIVER_PCI_GR_TMTC_1553 {gr_tmtc_1553_register_drv}
     137extern void gr_tmtc_1553_register_drv(void);
     138
     139#define DRIVER_PCI_GR_RASTA_SPW_ROUTER {gr_rasta_spw_router_register_drv}
     140extern void gr_rasta_spw_router_register_drv(void);
     141
    36142
    37143/* CONFIGURE DRIVER MANAGER */
    38144struct drvmgr_drv_reg_func drvmgr_drivers[] = {
    39 #if 0 /* EXAMPLE: GPTIMER Driver registration */
     145        /*** AMBA Plug & Play Drivers ***/
    40146#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GPTIMER
    41147        DRIVER_AMBAPP_GAISLER_GPTIMER_REG,
    42148#endif
    43 #endif
     149#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_APBUART
     150        DRIVER_AMBAPP_GAISLER_APBUART_REG,
     151#endif
     152#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRETH
     153        DRIVER_AMBAPP_GAISLER_GRETH_REG,
     154#endif
     155#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRSPW
     156        DRIVER_AMBAPP_GAISLER_GRSPW_REG,
     157#endif
     158#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRCAN
     159        DRIVER_AMBAPP_GAISLER_GRCAN_REG,
     160#endif
     161#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_OCCAN
     162        DRIVER_AMBAPP_GAISLER_OCCAN_REG,
     163#endif
     164#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GR1553B
     165        DRIVER_AMBAPP_GAISLER_GR1553B_REG,
     166#endif
     167#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GR1553BC
     168        DRIVER_AMBAPP_GAISLER_GR1553BC_REG,
     169#endif
     170#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GR1553BM
     171        DRIVER_AMBAPP_GAISLER_GR1553BM_REG,
     172#endif
     173#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GR1553RT
     174        DRIVER_AMBAPP_GAISLER_GR1553RT_REG,
     175#endif
     176#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_B1553BRM
     177        DRIVER_AMBAPP_GAISLER_B1553BRM_REG,
     178#endif
     179#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_B1553RT
     180        DRIVER_AMBAPP_GAISLER_B1553RT_REG,
     181#endif
     182#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRTM
     183        DRIVER_AMBAPP_GAISLER_GRTM_REG,
     184#endif
     185#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRTC
     186        DRIVER_AMBAPP_GAISLER_GRTC_REG,
     187#endif
     188#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_PCIF
     189        DRIVER_AMBAPP_GAISLER_PCIF_REG,
     190#endif
     191#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRPCI
     192        DRIVER_AMBAPP_GAISLER_GRPCI_REG,
     193#endif
     194#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRPCI2
     195        DRIVER_AMBAPP_GAISLER_GRPCI2_REG,
     196#endif
     197#ifdef CONFIGURE_DRIVER_AMBAPP_MCTRL
     198        DRIVER_AMBAPP_MCTRL_REG,
     199#endif
     200#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_SPICTRL
     201        DRIVER_AMBAPP_GAISLER_SPICTRL_REG,
     202#endif
     203#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_I2CMST
     204        DRIVER_AMBAPP_GAISLER_I2CMST_REG,
     205#endif
     206#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRGPIO
     207        DRIVER_AMBAPP_GAISLER_GRGPIO_REG,
     208#endif
     209#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRPWM
     210        DRIVER_AMBAPP_GAISLER_GRPWM_REG,
     211#endif
     212#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRADCDAC
     213        DRIVER_AMBAPP_GAISLER_GRADCDAC_REG,
     214#endif
     215#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_SPWCUC
     216        DRIVER_AMBAPP_GAISLER_SPWCUC_REG,
     217#endif
     218#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_GRCTM
     219        DRIVER_AMBAPP_GAISLER_GRCTM_REG,
     220#endif
     221#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_SPW_ROUTER
     222        DRIVER_AMBAPP_GAISLER_SPW_ROUTER_REG,
     223#endif
     224#ifdef CONFIGURE_DRIVER_AMBAPP_GAISLER_AHBSTAT
     225        DRIVER_AMBAPP_GAISLER_AHBSTAT_REG,
     226#endif
     227
     228        /*** LEON2 AMBA Drivers ***/
     229#ifdef CONFIGURE_DRIVER_LEON2_AT697PCI
     230        DRIVER_LEON2_AT697PCI_REG,
     231#endif
     232#ifdef CONFIGURE_DRIVER_LEON2_AMBAPP
     233        DRIVER_LEON2_AMBAPP_REG,
     234#endif
     235
     236        /*** PCI Target Drivers ***/
     237#ifdef CONFIGURE_DRIVER_PCI_GR_RASTA_ADCDAC
     238        DRIVER_PCI_GR_RASTA_ADCDAC,
     239#endif
     240#ifdef CONFIGURE_DRIVER_PCI_GR_RASTA_IO
     241        DRIVER_PCI_GR_RASTA_IO,
     242#endif
     243#ifdef CONFIGURE_DRIVER_PCI_GR_RASTA_TMTC
     244        DRIVER_PCI_GR_RASTA_TMTC,
     245#endif
     246#ifdef CONFIGURE_DRIVER_PCI_GR_701
     247        DRIVER_PCI_GR_701,
     248#endif
     249#ifdef CONFIGURE_DRIVER_PCI_GR_TMTC_1553
     250        DRIVER_PCI_GR_TMTC_1553,
     251#endif
     252#ifdef CONFIGURE_DRIVER_PCI_GR_RASTA_SPW_ROUTER
     253        DRIVER_PCI_GR_RASTA_SPW_ROUTER,
     254#endif
     255
    44256
    45257/* Macros for adding custom drivers without needing to recompile
Note: See TracChangeset for help on using the changeset viewer.