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:
Yan, Like
2018-08-07 15:19:56 +08:00
committed by lijinxia
parent f6e45c9b13
commit 8fda0d8c5f
5 changed files with 26 additions and 19 deletions

View File

@@ -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);