source: rtems/c/src/lib/libbsp/sparc/shared/include/grspw_rasta.h @ e16e0ca

4.104.114.84.95
Last change on this file since e16e0ca was e16e0ca, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 6, 2007 at 1:25:42 PM

2007-09-06 Daniel Hellstrom <daniel@…>

  • Makefile.am: Add the following new drivers: PCI, b1553BRM, SpaceWire?(GRSPW), CAN (GRCAN,OC_CAN), Raw UART.
  • shared/include/apbuart.h, shared/include/apbuart_pci.h, shared/include/apbuart_rasta.h, shared/include/b1553brm.h, shared/include/b1553brm_pci.h, shared/include/b1553brm_rasta.h, shared/include/debug_defs.h, shared/include/grcan.h, shared/include/grcan_rasta.h, shared/include/grcan_spwrtc.h, shared/include/grspw.h, shared/include/grspw_pci.h, shared/include/grspw_rasta.h, shared/include/occan.h, shared/include/occan_pci.h, shared/include/pci.h: New files.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1 /*
2 *  Macros used for RASTA PCI GRSPW controller
3 *
4 *  COPYRIGHT (c) 2006.
5 *  Gaisler Research
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 */
12
13#ifndef __GRSPW_RASTA_H__
14#define __GRSPW_RASTA_H__
15
16#include <grspw.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/* Register GRSPW Driver
23 * bus = &amba_conf for LEON3
24 *
25 * Memory setup:
26 * ram_base = 128k aligned pointer to memory (as the CPU sees it)
27 */
28
29int grspw_rasta_register(
30 amba_confarea_type *bus,
31 unsigned int ram_base
32 );
33
34/* This function must be called on GRSPW interrupt. Called from the
35 * PCI interrupt handler. irq = AMBA IRQ MASK assigned to the GRSPW device,
36 * is found by reading pending register on IRQMP connected to GRSPW
37 * device.
38 *
39 */
40void grspw_rasta_interrupt_handler(unsigned int status);
41
42/* callback to register interrupt handler */
43extern void (*grspw_rasta_int_reg)(void *handler, int irq, void *arg);
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* __GRSPW_RASTA_PCI_H__ */
Note: See TracBrowser for help on using the repository browser.