mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 23:57:10 +00:00
hv: pirq: add static irq:vector mappings
Since vector is x86 specific concept, we'd like to hide it from common irq APIs. This commit - adds static irq:vector mappings for special interrupt such as timer and cpu notification; - reserves the irq and vector at initialization; - removed the vector argument in pri_register_handler(), get reserved vector from irq_desc in common_register_handler(). Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -28,7 +28,6 @@ struct irq_request_info {
|
||||
/* vector set to 0xE0 ~ 0xFF for pri_register_handler
|
||||
* and set to VECTOR_INVALID for normal_register_handler
|
||||
*/
|
||||
uint32_t vector;
|
||||
irq_action_t func;
|
||||
void *priv_data;
|
||||
char *name;
|
||||
@@ -60,7 +59,6 @@ void irq_desc_try_free_vector(uint32_t irq);
|
||||
uint32_t irq_to_vector(uint32_t irq);
|
||||
|
||||
int32_t pri_register_handler(uint32_t irq,
|
||||
uint32_t vector,
|
||||
irq_action_t func,
|
||||
void *priv_data,
|
||||
const char *name);
|
||||
|
||||
Reference in New Issue
Block a user