mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 11:20:32 +00:00
hv: ioapic: clean up HV_DEBUG usage
remove the usage of HV_DEBUG in ioapic.c Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#ifndef IOAPIC_H
|
||||
#define IOAPIC_H
|
||||
|
||||
#include <bsp_extern.h>
|
||||
|
||||
/*
|
||||
* IOAPIC_MAX_LINES is architecturally defined.
|
||||
* The usable RTEs may be a subset of the total on a per IO APIC basis.
|
||||
@@ -56,19 +58,16 @@ void resume_ioapic(void);
|
||||
void gsi_mask_irq(uint32_t irq);
|
||||
void gsi_unmask_irq(uint32_t irq);
|
||||
|
||||
void ioapic_get_rte_entry(void *ioapic_addr, uint8_t pin, union ioapic_rte *rte);
|
||||
|
||||
struct gsi_table {
|
||||
uint8_t ioapic_id;
|
||||
uint8_t pin;
|
||||
void *addr;
|
||||
};
|
||||
|
||||
extern struct gsi_table gsi_table[NR_MAX_GSI];
|
||||
extern uint32_t nr_gsi;
|
||||
extern uint8_t pic_ioapic_pin_map[NR_LEGACY_PIN];
|
||||
|
||||
#ifdef HV_DEBUG
|
||||
/**
|
||||
* @brief Get information of ioapic
|
||||
*
|
||||
* It's for debug only.
|
||||
*
|
||||
* @param[in] str_max_len The max size of the string containing
|
||||
* interrupt info
|
||||
* @param[inout] str_arg Pointer to the output information
|
||||
*/
|
||||
int get_ioapic_info(char *str_arg, size_t str_max_len);
|
||||
#endif /* HV_DEBUG */
|
||||
|
||||
#endif /* IOAPIC_H */
|
||||
|
Reference in New Issue
Block a user