mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
doc: remove hard-coded interfaces in .rst files
This patch removes hard-coded interfaces in .rst files and refers to the definition via doxygen style comments. This patch mainly focus on Hypervisor part. Other parts will be covered in seperate patches. Tracked-On: #1595 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
committed by
David Kinder
parent
ffb924542b
commit
474496fc0e
@@ -76,22 +76,67 @@ union apic_icr {
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Save context of lapic
|
||||
* @defgroup lapic_ext_apis LAPIC External Interfaces
|
||||
*
|
||||
* This is a group that includes LAPIC External Interfaces.
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Save context of LAPIC
|
||||
*
|
||||
* @param[inout] regs Pointer to struct lapic_regs to hold the
|
||||
* context of current lapic
|
||||
* context of current LAPIC
|
||||
*/
|
||||
void save_lapic(struct lapic_regs *regs);
|
||||
|
||||
/**
|
||||
* @brief Enable LAPIC in x2APIC mode
|
||||
*
|
||||
* Enable LAPIC in x2APIC mode via MSR writes.
|
||||
*
|
||||
*/
|
||||
void early_init_lapic(void);
|
||||
|
||||
/**
|
||||
* @brief Suspend LAPIC
|
||||
*
|
||||
* Suspend LAPIC by getting the APIC base addr and saving the registers.
|
||||
*/
|
||||
void suspend_lapic(void);
|
||||
|
||||
/**
|
||||
* @brief Resume LAPIC
|
||||
*
|
||||
* Resume LAPIC by setting the APIC base addr and restoring the registers.
|
||||
*/
|
||||
void resume_lapic(void);
|
||||
|
||||
/**
|
||||
* @brief Get the LAPIC ID
|
||||
*
|
||||
* Get the LAPIC ID via MSR read.
|
||||
*
|
||||
* @return LAPIC ID
|
||||
*/
|
||||
uint32_t get_cur_lapic_id(void);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
/* End of lapic_ext_apis */
|
||||
|
||||
void init_lapic(uint16_t pcpu_id);
|
||||
void send_lapic_eoi(void);
|
||||
|
||||
/**
|
||||
* @brief Get the lapic id
|
||||
* @defgroup ipi_ext_apis IPI External Interfaces
|
||||
*
|
||||
* @return lapic id
|
||||
* This is a group that includes IPI External Interfaces.
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
uint32_t get_cur_lapic_id(void);
|
||||
|
||||
/**
|
||||
* @brief Send an SIPI to a specific cpu
|
||||
@@ -124,6 +169,11 @@ void send_dest_ipi_mask(uint32_t dest_mask, uint32_t vector);
|
||||
*/
|
||||
void send_single_ipi(uint16_t pcpu_id, uint32_t vector);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
/* End of ipi_ext_apis */
|
||||
|
||||
/**
|
||||
* @brief Send an INIT signal to a single pCPU
|
||||
*
|
||||
@@ -133,7 +183,4 @@ void send_single_ipi(uint16_t pcpu_id, uint32_t vector);
|
||||
*/
|
||||
void send_single_init(uint16_t pcpu_id);
|
||||
|
||||
void suspend_lapic(void);
|
||||
void resume_lapic(void);
|
||||
|
||||
#endif /* INTR_LAPIC_H */
|
||||
|
||||
Reference in New Issue
Block a user