source: svn/trunk/newcon3bcm2_21bu/rockford/bsp/bcm97552/common/int1_api.h

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 3.3 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2002-2009, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: int1_api.h $
11 * $brcm_Revision: Hydra_Software_Devel/2 $
12 * $brcm_Date: 11/19/09 11:49a $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /rockford/bsp/bcm97550/common/int1_api.h $
19 *
20 * Hydra_Software_Devel/2   11/19/09 11:49a farshidf
21 * SW7550-38: fix the inetrrupt issue
22 *
23 * Hydra_Software_Devel/1   9/30/09 5:17p farshidf
24 * SW7550-38: mini non-os code
25 *
26 * Bsp_Software_Devel/2   8/26/08 2:03p farshidf
27 * PR41450: update the IRQ
28 *
29 * Bsp_Software_Devel/2   8/26/08 2:00p farshidf
30 * PR41450: update The IRQ
31 *
32 * Hydra_Software_Devel/3   12/27/07 12:01p agin
33 * PR38452: Make labels consistent.
34 *
35 * Hydra_Software_Devel/2   12/7/07 2:38p ronchan
36 * PR37975: added frontend interrupts
37 *
38 * Hydra_Software_Devel/2   11/21/07 1:21p katrep
39 * PR37430: removed compiler warning messages.
40 *
41 *
42 ***************************************************************************/
43#ifndef _INT1_API_H
44#define _INT1_API_H
45
46#if __cplusplus
47extern "C" {
48#endif
49
50
51
52/***************************************************************************
53 *  Logical Level 1 Interrupt IDs
54 **************************************************************************/
55
56/* Level 1 Interrupt IDs */
57
58
59#define INT1_ID_UPG_BSC_CPU_INTR       0x012
60#define INT1_ID_UPG_CPU_INTR           0x00F
61#define INT1_ID_UPG_TMR_CPU_INTR       0x011
62#define INT1_THD_CPU_INTR                          0x042
63
64/***************************************************************************
65 *  Level 1 ISR Type Definition
66 **************************************************************************/
67typedef void (*FN_L1_ISR) (void *, int);
68
69
70/***************************************************************************
71 *  Level 1 Interrupt Control Structure
72 **************************************************************************/
73
74#ifndef _ASMLANGUAGE
75
76
77typedef struct Int1Control {
78        unsigned long  IntrW0Status;
79        unsigned long  IntrW1Status;
80        unsigned long  IntrW2Status;
81        unsigned long  IntrW0MaskStatus;
82        unsigned long  IntrW1MaskStatus;
83        unsigned long  IntrW2MaskStatus;
84        unsigned long  IntrW0MaskSet;
85        unsigned long  IntrW1MaskSet;
86        unsigned long  IntrW2MaskSet;
87        unsigned long  IntrW0MaskClear;
88        unsigned long  IntrW1MaskClear;
89        unsigned long  IntrW2MaskClear;
90} Int1Control;                               
91
92
93#endif /* _ASMLANGUAGE */
94
95
96/***************************************************************************
97 *  Level 1 Interrupt Function Prototypes
98 **************************************************************************/
99extern void CPUINT1_SetInt1Control(Int1Control *int1c);
100extern unsigned long CPUINT1_GetInt1ControlAddr(void);
101extern void CPUINT1_Isr(void);
102extern void CPUINT1_Disable(unsigned long intId);
103extern void CPUINT1_Enable(unsigned long intId);
104extern int  CPUINT1_ConnectIsr(unsigned long intId, FN_L1_ISR pfunc,
105                               void *param1, int param2);
106
107#if __cplusplus
108}
109#endif
110
111#endif /* _INT1_API_H */
112
Note: See TracBrowser for help on using the repository browser.