mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-15 13:59:18 +00:00
HV:treewide:rename vm data structure
For data structure types "struct vm", its name is identical with variable name in the same scope. This is a MISRA C violation. Naming convention rule:If the data structure type is used by multi modules, its corresponding logic resource is exposed to external components (such as SOS, UOS), and its name meaning is simplistic (such as vcpu, vm), its name needs prefix "acrn_". The following udpates are made: struct vm *vm-->struct acrn_vm *vm Tracked-On: #861 Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
This commit is contained in:
@@ -42,7 +42,7 @@ static uint8_t cmos_get_reg_val(uint8_t addr)
|
||||
return reg;
|
||||
}
|
||||
|
||||
static uint32_t vrtc_read(struct vm *vm, uint16_t addr, __unused size_t width)
|
||||
static uint32_t vrtc_read(struct acrn_vm *vm, uint16_t addr, __unused size_t width)
|
||||
{
|
||||
uint8_t reg;
|
||||
uint8_t offset;
|
||||
@@ -57,7 +57,7 @@ static uint32_t vrtc_read(struct vm *vm, uint16_t addr, __unused size_t width)
|
||||
return reg;
|
||||
}
|
||||
|
||||
static void vrtc_write(struct vm *vm, uint16_t addr, size_t width,
|
||||
static void vrtc_write(struct acrn_vm *vm, uint16_t addr, size_t width,
|
||||
uint32_t value)
|
||||
{
|
||||
|
||||
@@ -69,7 +69,7 @@ static void vrtc_write(struct vm *vm, uint16_t addr, size_t width,
|
||||
}
|
||||
}
|
||||
|
||||
void vrtc_init(struct vm *vm)
|
||||
void vrtc_init(struct acrn_vm *vm)
|
||||
{
|
||||
struct vm_io_range range = {
|
||||
.flags = IO_ATTR_RW, .base = CMOS_ADDR_PORT, .len = 2U};
|
||||
|
Reference in New Issue
Block a user