RTEMS  5.1
alt_interrupt_common.h
Go to the documentation of this file.
1 
7 /******************************************************************************
8 *
9 * Copyright 2013 Altera Corporation. All Rights Reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions are met:
13 *
14 * 1. Redistributions of source code must retain the above copyright notice,
15 * this list of conditions and the following disclaimer.
16 *
17 * 2. Redistributions in binary form must reproduce the above copyright notice,
18 * this list of conditions and the following disclaimer in the documentation
19 * and/or other materials provided with the distribution.
20 *
21 * 3. The name of the author may not be used to endorse or promote products
22 * derived from this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR
25 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. IN NO
27 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
29 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
33 * OF SUCH DAMAGE.
34 *
35 ******************************************************************************/
36 
37 #ifndef __ALT_INT_COMMON_H__
38 #define __ALT_INT_COMMON_H__
39 
40 #include "hwlib.h"
41 #include <stdbool.h>
42 #include <stddef.h>
43 
44 #ifdef __cplusplus
45 extern "C"
46 {
47 #endif
48 
61 typedef enum ALT_INT_INTERRUPT_e
62 {
430 
437 typedef uint32_t alt_int_cpu_target_t;
438 
442 typedef enum ALT_INT_TRIGGER_e
443 {
450 
457 
463 
472 
478 }
480 
489 {
495 
501 
507 }
509 
513 #define ALT_INT_ICCIAR_CPUID_GET(icciar) ((icciar >> 10) & 0x7)
514 
518 #define ALT_INT_ICCIAR_ACKINTID_GET(icciar) (icciar & 0x3FF)
519 
529 typedef void (*alt_int_callback_t)(uint32_t icciar, void * context);
530 
535 #ifdef __cplusplus
536 }
537 #endif
538 
539 #endif /* __ALT_INT_COMMON_H__ */
Definition: alt_interrupt_common.h:182
Definition: alt_interrupt_common.h:255
Definition: alt_interrupt_common.h:330
Definition: alt_interrupt_common.h:181
Definition: alt_interrupt_common.h:329
Definition: alt_interrupt_common.h:177
Definition: alt_interrupt_common.h:126
Definition: alt_interrupt_common.h:86
Definition: alt_interrupt_common.h:272
Definition: alt_interrupt_common.h:74
Definition: alt_interrupt_common.h:283
Definition: alt_interrupt_common.h:233
Definition: alt_interrupt_common.h:357
Definition: alt_interrupt_common.h:207
Definition: alt_interrupt_common.h:237
Definition: alt_interrupt_common.h:403
Definition: alt_interrupt_common.h:253
Definition: alt_interrupt_common.h:188
Definition: alt_interrupt_common.h:100
Definition: alt_interrupt_common.h:415
Definition: alt_interrupt_common.h:299
Definition: alt_interrupt_common.h:127
Definition: alt_interrupt_common.h:230
Definition: alt_interrupt_common.h:194
Definition: alt_interrupt_common.h:462
Definition: alt_interrupt_common.h:191
Definition: alt_interrupt_common.h:248
Definition: alt_interrupt_common.h:275
Definition: alt_interrupt_common.h:331
Definition: alt_interrupt_common.h:179
Definition: alt_interrupt_common.h:250
Definition: alt_interrupt_common.h:506
Definition: alt_interrupt_common.h:346
Definition: alt_interrupt_common.h:155
Definition: alt_interrupt_common.h:249
Definition: alt_interrupt_common.h:76
Definition: alt_interrupt_common.h:240
Definition: alt_interrupt_common.h:125
Definition: alt_interrupt_common.h:197
Definition: alt_interrupt_common.h:103
Definition: alt_interrupt_common.h:409
Definition: alt_interrupt_common.h:134
Definition: alt_interrupt_common.h:123
Definition: alt_interrupt_common.h:359
Definition: alt_interrupt_common.h:358
Definition: alt_interrupt_common.h:274
Definition: alt_interrupt_common.h:339
Definition: alt_interrupt_common.h:99
Definition: alt_interrupt_common.h:310
Definition: alt_interrupt_common.h:264
Definition: alt_interrupt_common.h:381
Definition: alt_interrupt_common.h:133
Definition: alt_interrupt_common.h:222
ALT_INT_SGI_TARGET_e
Definition: alt_interrupt_common.h:488
Definition: alt_interrupt_common.h:157
Definition: alt_interrupt_common.h:105
Definition: alt_interrupt_common.h:120
Definition: alt_interrupt_common.h:215
Definition: alt_interrupt_common.h:225
Definition: alt_interrupt_common.h:122
Definition: alt_interrupt_common.h:229
Definition: alt_interrupt_common.h:254
Definition: alt_interrupt_common.h:384
Definition: alt_interrupt_common.h:320
Definition: alt_interrupt_common.h:93
Definition: alt_interrupt_common.h:263
Definition: alt_interrupt_common.h:219
enum ALT_INT_TRIGGER_e ALT_INT_TRIGGER_t
Definition: alt_interrupt_common.h:129
Definition: alt_interrupt_common.h:423
Definition: alt_interrupt_common.h:291
Definition: alt_interrupt_common.h:284
Definition: alt_interrupt_common.h:130
Definition: alt_interrupt_common.h:316
Definition: alt_interrupt_common.h:196
Definition: alt_interrupt_common.h:106
Definition: alt_interrupt_common.h:449
Definition: alt_interrupt_common.h:390
Definition: alt_interrupt_common.h:246
Definition: alt_interrupt_common.h:64
Definition: alt_interrupt_common.h:102
Definition: alt_interrupt_common.h:251
Definition: alt_interrupt_common.h:471
Definition: alt_interrupt_common.h:204
Definition: alt_interrupt_common.h:206
Definition: alt_interrupt_common.h:276
Definition: alt_interrupt_common.h:148
Definition: alt_interrupt_common.h:416
Definition: alt_interrupt_common.h:224
Definition: alt_interrupt_common.h:422
Definition: alt_interrupt_common.h:65
Definition: alt_interrupt_common.h:494
Definition: alt_interrupt_common.h:397
Definition: alt_interrupt_common.h:186
Definition: alt_interrupt_common.h:317
Definition: alt_interrupt_common.h:121
Definition: alt_interrupt_common.h:198
Definition: alt_interrupt_common.h:63
Definition: alt_interrupt_common.h:231
Definition: alt_interrupt_common.h:318
Definition: alt_interrupt_common.h:104
Definition: alt_interrupt_common.h:68
Definition: alt_interrupt_common.h:226
Definition: alt_interrupt_common.h:185
Definition: alt_interrupt_common.h:147
Definition: alt_interrupt_common.h:232
Definition: alt_interrupt_common.h:328
Definition: alt_interrupt_common.h:190
Definition: alt_interrupt_common.h:375
Definition: alt_interrupt_common.h:217
Definition: alt_interrupt_common.h:218
Definition: alt_interrupt_common.h:98
Definition: alt_interrupt_common.h:75
Definition: alt_interrupt_common.h:282
void(* alt_int_callback_t)(uint32_t icciar, void *context)
Definition: alt_interrupt_common.h:529
Definition: alt_interrupt_common.h:391
Definition: alt_interrupt_common.h:135
Definition: alt_interrupt_common.h:184
Definition: alt_interrupt_common.h:319
Definition: alt_interrupt_common.h:340
Definition: alt_interrupt_common.h:298
Definition: alt_interrupt_common.h:227
Definition: alt_interrupt_common.h:183
Definition: alt_interrupt_common.h:239
Definition: alt_interrupt_common.h:221
Definition: alt_interrupt_common.h:94
Definition: alt_interrupt_common.h:262
Definition: alt_interrupt_common.h:349
Definition: alt_interrupt_common.h:208
Definition: alt_interrupt_common.h:85
Definition: alt_interrupt_common.h:101
Definition: alt_interrupt_common.h:327
Definition: alt_interrupt_common.h:216
Definition: alt_interrupt_common.h:72
Definition: alt_interrupt_common.h:373
Definition: alt_interrupt_common.h:149
Definition: alt_interrupt_common.h:236
Definition: alt_interrupt_common.h:199
Definition: alt_interrupt_common.h:131
Definition: alt_interrupt_common.h:214
Definition: alt_interrupt_common.h:178
Definition: alt_interrupt_common.h:66
Definition: alt_interrupt_common.h:192
Definition: alt_interrupt_common.h:202
Definition: alt_interrupt_common.h:97
Definition: alt_interrupt_common.h:300
Definition: alt_interrupt_common.h:132
Definition: alt_interrupt_common.h:128
Definition: alt_interrupt_common.h:203
Definition: alt_interrupt_common.h:200
Definition: alt_interrupt_common.h:78
Definition: alt_interrupt_common.h:273
Definition: alt_interrupt_common.h:500
Definition: alt_interrupt_common.h:308
Definition: alt_interrupt_common.h:211
Definition: alt_interrupt_common.h:383
ALT_INT_INTERRUPT_e
Definition: alt_interrupt_common.h:61
Definition: alt_interrupt_common.h:247
Definition: alt_interrupt_common.h:171
Definition: alt_interrupt_common.h:234
Definition: alt_interrupt_common.h:228
Definition: alt_interrupt_common.h:477
Definition: alt_interrupt_common.h:209
Definition: alt_interrupt_common.h:266
unsigned context
Definition: tlb.h:108
Definition: alt_interrupt_common.h:360
Definition: alt_interrupt_common.h:180
Definition: alt_interrupt_common.h:301
Definition: alt_interrupt_common.h:69
Definition: alt_interrupt_common.h:124
Definition: alt_interrupt_common.h:238
Definition: alt_interrupt_common.h:347
Definition: alt_interrupt_common.h:348
Definition: alt_interrupt_common.h:374
Definition: alt_interrupt_common.h:326
Definition: alt_interrupt_common.h:205
Definition: alt_interrupt_common.h:366
ALT_INT_TRIGGER_e
Definition: alt_interrupt_common.h:442
Definition: alt_interrupt_common.h:235
Definition: alt_interrupt_common.h:212
Definition: alt_interrupt_common.h:71
Definition: alt_interrupt_common.h:210
Definition: alt_interrupt_common.h:252
Definition: alt_interrupt_common.h:338
Definition: alt_interrupt_common.h:201
Definition: alt_interrupt_common.h:73
Definition: alt_interrupt_common.h:77
Definition: alt_interrupt_common.h:307
Definition: alt_interrupt_common.h:290
Definition: alt_interrupt_common.h:265
Definition: alt_interrupt_common.h:95
Definition: alt_interrupt_common.h:156
Definition: alt_interrupt_common.h:213
Definition: alt_interrupt_common.h:187
Definition: alt_interrupt_common.h:70
Definition: alt_interrupt_common.h:107
uint32_t alt_int_cpu_target_t
Definition: alt_interrupt_common.h:437
Definition: alt_interrupt_common.h:158
Definition: alt_interrupt_common.h:189
enum ALT_INT_INTERRUPT_e ALT_INT_INTERRUPT_t
Definition: alt_interrupt_common.h:193
Definition: alt_interrupt_common.h:367
Definition: alt_interrupt_common.h:292
Definition: alt_interrupt_common.h:256
enum ALT_INT_SGI_TARGET_e ALT_INT_SGI_TARGET_t
Definition: alt_interrupt_common.h:456
Definition: alt_interrupt_common.h:309
Definition: alt_interrupt_common.h:332
Definition: alt_interrupt_common.h:108
Definition: alt_interrupt_common.h:84
Definition: alt_interrupt_common.h:382
Definition: alt_interrupt_common.h:67
Definition: alt_interrupt_common.h:195
Definition: alt_interrupt_common.h:220
Definition: alt_interrupt_common.h:96
Definition: alt_interrupt_common.h:223