acrn-hypervisor/hypervisor/include
Yan, Like 2c044e0c4e hv: pirq: refactor vector allocation/free
This commit refactors vector allocation/free codes, two functions are
defined to help alloc/free vectors for an irq:
- uint32_t alloc_irq_vector(uint32_t irq)
  - alloc a free vector (0x20 ~ 0xDF), and bind it to irq, for legacy irqs
    and static mapped irqs, vector has been allocated and bind, so just
    check the mapping correctness;
  - return: valid vector on success, VECTOR_INVALID on failure.

- void free_irq_vector(uint32_t irq)
  - free vector allocated via alloc_irq_vector(), for legacy irqs and static
    mapped irqs, nothing need to do.

Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
2018-08-17 14:25:52 +08:00
..
arch/x86 hv: pirq: refactor vector allocation/free 2018-08-17 14:25:52 +08:00
common hv: pirq: refactor vector allocation/free 2018-08-17 14:25:52 +08:00
debug hv: vuart: fix the data type violations 2018-08-17 11:19:45 +08:00
dm/vpci HV: Adding hostbridge vdev device support for partition hypervisor 2018-08-10 10:09:00 +08:00
lib HV: remove 'spinlock_rfags' declaration 2018-08-16 09:43:04 +08:00
public HV: io: drop REQ_STATE_FAILED 2018-08-15 12:04:12 +08:00
hv_debug.h HV: Merge hypervisor debug header files 2018-08-14 09:54:48 +08:00
hv_lib.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
hypervisor.h hv: mmu: revisit mmu modify page table attributes 2018-07-19 11:11:32 +08:00