source: rtems/c/src/lib/libbsp/sparc/shared/include/b1553brm_rasta.h @ 1d325e7b

4.115
Last change on this file since 1d325e7b was 1d325e7b, checked in by Toma Radu <radustoma@…>, on 12/06/13 at 08:52:26

sparc BSP shared: Improve Doxygen

Add doxygen to the header files in sparc/shared/include directory.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file
3 * @ingroup 1553
4 * @brief Macros used for brm RASTA controller
5 */
6
7/*
8 *  COPYRIGHT (c) 2006.
9 *  Gaisler Research
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 *
15 */
16
17#ifndef __B1553BRM_RASTA_H__
18#define __B1553BRM_RASTA_H__
19
20#include <b1553brm.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26/* Register BRM driver
27 * See (struct brm_reg).w_ctrl for clksel and clkdiv.
28 * See Enhanced register (the least signinficant 2 bits) in BRM Core for brm_freq
29 * bus = &ambapp_plb for LEON3. (LEON2 not yet supported for this driver)
30 *
31 * Memory setup:
32 * memarea = 128k aligned pointer to memory (if zero malloc will be used) (as the CPU sees it)
33 * hw_address = address that HW must use to access memarea. (used in the translation process)
34 */
35
36int b1553brm_rasta_register(
37 struct ambapp_bus *bus,
38 unsigned int clksel,
39 unsigned int clkdiv,
40 unsigned int brm_freq,
41 unsigned int memarea,
42 unsigned int hw_address
43 );
44
45
46/* This function must be called on BRM interrupt. Called from the
47 * PCI interrupt handler. irq = AMBA IRQ MASK assigned to the BRM device,
48 * is found by reading pending register on IRQMP connected to BRM
49 * device.
50 *
51 * Return 0=not handled. nono-zero=handled
52 */
53int b1553brm_rasta_interrupt_handler(int irq, void *arg);
54
55extern void (*b1553brm_rasta_int_reg)(void *handler, int irq, void *arg);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* __B1553BRM_RASTA_H__ */
Note: See TracBrowser for help on using the repository browser.