mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
dm: rename some ssram variables and functions
Rename them to unify the coding style or for simplification purpose, also remove redundant function declearations in pci_core.h header file. v4 update: SSRAM* -> VSSRAM* ssram* -> vssram* Tracked-On: #7010 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
This commit is contained in:
committed by
acrnsi-robot
parent
8c9b9808fa
commit
d9fb8f3141
@@ -48,8 +48,8 @@
|
||||
#define PCI_EMUL_MEMBASE64 0x4000000000UL /* 256GB */
|
||||
#define PCI_EMUL_MEMLIMIT64 0x8000000000UL /* 512GB */
|
||||
|
||||
#define SOFTWARE_SRAM_MAX_SIZE 0x00800000UL
|
||||
#define SOFTWARE_SRAM_BASE_GPA (PCI_EMUL_MEMBASE32 - SOFTWARE_SRAM_MAX_SIZE)
|
||||
#define VSSRAM_MAX_SIZE 0x00800000UL
|
||||
#define VSSRAM_BASE_GPA (PCI_EMUL_MEMBASE32 - VSSRAM_MAX_SIZE)
|
||||
|
||||
/* GVT BARs + PTDEV IO BARs */
|
||||
#define REGION_NUMS 32
|
||||
@@ -297,8 +297,6 @@ void destory_io_rsvd_rgns(struct pci_vdev *vdev);
|
||||
*/
|
||||
uint32_t get_gpu_rsvmem_base_gpa(void);
|
||||
uint32_t get_gpu_rsvmem_size(void);
|
||||
uint64_t get_software_sram_base_gpa(void);
|
||||
uint64_t get_software_sram_size(void);
|
||||
|
||||
typedef void (*pci_lintr_cb)(int b, int s, int pin, int pirq_pin,
|
||||
int ioapic_irq, void *arg);
|
||||
|
@@ -37,10 +37,10 @@ struct rtct_entry {
|
||||
} __packed;
|
||||
|
||||
struct rtct_entry_data_compatibility {
|
||||
uint32_t RTCT_Ver_Major;
|
||||
uint32_t RTCT_Ver_Minor;
|
||||
uint32_t RTCD_Ver_Major;
|
||||
uint32_t RTCD_Ver_Minor;
|
||||
uint32_t rtct_ver_major;
|
||||
uint32_t rtct_ver_minor;
|
||||
uint32_t rtcd_ver_major;
|
||||
uint32_t rtcd_ver_Minor;
|
||||
} __packed;
|
||||
|
||||
struct rtct_entry_data_ssram {
|
||||
@@ -65,8 +65,9 @@ struct rtct_entry_data_mem_hi_latency {
|
||||
uint32_t apic_id_tbl[64];
|
||||
} __packed;
|
||||
|
||||
uint64_t get_vssram_gpa_base(void);
|
||||
uint64_t get_software_sram_base_hpa(void);
|
||||
uint64_t get_software_sram_size(void);
|
||||
uint64_t get_vssram_size(void);
|
||||
uint8_t *build_vrtct(struct vmctx *ctx, void *cfg);
|
||||
|
||||
#endif /* RTCT_H */
|
||||
|
Reference in New Issue
Block a user