1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
32 33 34 35
36
37 /*!
38 * ======== IInterrupt ========
39 * Interface for the inter-processor interrupts
40 */
41 interface IInterrupt {
42
43 struct IntInfo {
44 UInt localIntId;
45 UInt remoteIntId;
46 UInt intVectorId;
47 }
48
49 /*!
50 * ======== intEnable ========
51 * Enables the interrupt corresponding to intId
52 *
53 * @param(remoteProcId) Remote MultiProc Id
54 * @param(intInfo) Information needed to configure interrupt line
55 */
56 @DirectCall
57 Void intEnable(UInt16 remoteProcId, IntInfo *intInfo);
58
59 /*!
60 * ======== intDisable ========
61 * Disables the interrupt corresponding to intId
62 *
63 * @param(remoteProcId) Remote MultiProc Id
64 * @param(intInfo) Information needed to configure interrupt line
65 */
66 @DirectCall
67 Void intDisable(UInt16 remoteProcId, IntInfo *intInfo);
68
69 /*!
70 * ======== intRegister ========
71 * Register an interrupt line to a remote processor
72 *
73 * @param(remoteProcId) Remote MultiProc Id
74 * @param(intInfo) Information needed to configure interrupt line
75 * @param(func) Function to register.
76 * @param(arg) Argument that will be passed to func
77 */
78 @DirectCall
79 Void intRegister(UInt16 remoteProcId, IntInfo *intInfo, Fxn func, UArg arg);
80
81 /*!
82 * ======== intUnregister ========
83 * Unregister an interrupt line to a remote processor
84 *
85 * @param(remoteProcId) Remote MultiProc Id
86 * @param(intInfo) Information needed to configure interrupt line
87 */
88 @DirectCall
89 Void intUnregister(UInt16 remoteProcId, IntInfo *intInfo);
90
91 /*!
92 * ======== intSend ========
93 * Send interrupt to the remote processor
94 *
95 * @param(remoteProcId) Remote MultiProc Id
96 * @param(intInfo) Information needed to configure interrupt line
97 * @param(arg) Argument for sending interrupt.
98 */
99 @DirectCall
100 Void intSend(UInt16 remoteProcId, IntInfo *intInfo, UArg arg);
101
102 /*!
103 * @_nodoc
104 * Post an interrupt locally.
105 *
106 * Used to simulate receiving an interrupt from a remote (source)
107 * processor
108 *
109 * @param(remoteProcId) Source MultiProc Id
110 * @param(intInfo) Information needed to configure interrupt line
111 * @param(arg) Argument for sending interrupt.
112 */
113 @DirectCall
114 Void intPost(UInt16 srcProcId, IntInfo *intInfo, UArg arg);
115
116 /*!
117 * ======== intClear ========
118 * Clear interrupt
119 *
120 * @param(remoteProcId) Remote MultiProc Id
121 * @param(intInfo) Information needed to configure interrupt line
122 *
123 * @b(returns) Value (if any) of the interrupt before
124 * it was cleared
125 */
126 @DirectCall
127 UInt intClear(UInt16 remoteProcId, IntInfo *intInfo);
128 }