diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2011-12-20 15:58:05 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:17 +0200 |
commit | e67b2b8d0552068d5d2859c02ffb5c2e110056de (patch) | |
tree | 161f7d400a93c7d54569e8b34ceefa45fcaa0aff /c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h | |
parent | LEON2: added support for LEON2-GRLIB systems (diff) | |
download | rtems-e67b2b8d0552068d5d2859c02ffb5c2e110056de.tar.bz2 |
LEON: updated and added PCI peripherals for LEON BSPs
The CCHIP driver is replaced with the GR_701 driver. The
RASTA driver is replaced by the GR-RASTA-IO driver.
All drivers are now compatible with both LEON2 and LEON3,
drivers were initialized directly by the PCI-board drivers
are now initialized by the driver manager and therefore
does not require the double code created by including for
example grcan.c into grcan_rasta.c. The other drivers needs
to be updated to the driver manager framework however.
Added support for:
* GR-701 (only LEON2 before)
* GR-RASTA-IO (only LEON2 before)
* GR-RASTA-ADCDAC
* GR-RASTA-TMTC
* GR-RASTA-SPW-ROUTER
* GR-TMTC-1553
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h b/c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h deleted file mode 100644 index bc196441b7..0000000000 --- a/c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @file - * @ingroup 1553 - * @brief Macros used for brm RASTA controller - */ - -/* - * COPYRIGHT (c) 2006. - * Gaisler Research - * - * 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 __B1553BRM_RASTA_H__ -#define __B1553BRM_RASTA_H__ - -#include <b1553brm.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Register BRM driver - * See (struct brm_reg).w_ctrl for clksel and clkdiv. - * See Enhanced register (the least signinficant 2 bits) in BRM Core for brm_freq - * bus = &ambapp_plb for LEON3. (LEON2 not yet supported for this driver) - * - * Memory setup: - * memarea = 128k aligned pointer to memory (if zero malloc will be used) (as the CPU sees it) - * hw_address = address that HW must use to access memarea. (used in the translation process) - */ - -int b1553brm_rasta_register( - struct ambapp_bus *bus, - unsigned int clksel, - unsigned int clkdiv, - unsigned int brm_freq, - unsigned int memarea, - unsigned int hw_address -); - - -/* This function must be called on BRM interrupt. Called from the - * PCI interrupt handler. irq = AMBA IRQ MASK assigned to the BRM device, - * is found by reading pending register on IRQMP connected to BRM - * device. - * - * Return 0=not handled. nono-zero=handled - */ -int b1553brm_rasta_interrupt_handler(int irq, void *arg); - -extern void (*b1553brm_rasta_int_reg)(void *handler, int irq, void *arg); - -#ifdef __cplusplus -} -#endif - -#endif /* __B1553BRM_RASTA_H__ */ |