Jeenu Viswambharan | b1e957e | 2017-09-22 08:32:09 +0100 | [diff] [blame^] | 1 | Platform Interrupt Controller API documentation |
| 2 | =============================================== |
| 3 | |
| 4 | .. section-numbering:: |
| 5 | :suffix: . |
| 6 | |
| 7 | .. contents:: |
| 8 | |
| 9 | This document lists the optional platform interrupt controller API that |
| 10 | abstracts the runtime configuration and control of interrupt controller from the |
| 11 | generic code. The mandatory APIs are described in the `porting guide`__. |
| 12 | |
| 13 | .. __: porting-guide.rst#interrupt-management-framework-in-bl31 |
| 14 | |
| 15 | Function: unsigned int plat_ic_get_running_priority(void); [optional] |
| 16 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 17 | |
| 18 | :: |
| 19 | |
| 20 | Argument : void |
| 21 | Return : unsigned int |
| 22 | |
| 23 | This API should return the priority of the interrupt the PE is currently |
| 24 | servicing. This must be be called only after an interrupt has already been |
| 25 | acknowledged via. ``plat_ic_acknowledge_interrupt``. |
| 26 | |
| 27 | In the case of ARM standard platforms using GIC, the *Running Priority Register* |
| 28 | is read to determine the priority of the interrupt. |
| 29 | |
| 30 | ---- |
| 31 | |
| 32 | *Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.* |