mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
hv:Rename port/mmio read and write APIs
mmio_write_long --> mmio_write32 mmio_write_word --> mmio_write16 mmio_write_byte --> mmio_write8 mmio_read_long --> mmio_read32 mmio_read_word --> mmio_read16 mmio_read_byte --> mmio_read8 io_write_long --> pio_write32 io_write_word --> pio_write16 io_write_byte --> pio_write8 io_read_long --> pio_read32 io_read_word --> pio_read16 io_read_byte --> pio_read8 io_write --> pio_write io_read --> pio_read setl --> set32 setw --> set16 setb --> set8 igned-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
@@ -137,7 +137,7 @@ static inline uint8_t get_slp_typx(uint32_t pm1_cnt)
|
||||
static uint32_t pm1ab_io_read(__unused struct vm_io_handler *hdlr,
|
||||
__unused struct vm *vm, uint16_t addr, size_t width)
|
||||
{
|
||||
uint32_t val = io_read(addr, width);
|
||||
uint32_t val = pio_read(addr, width);
|
||||
|
||||
if (host_enter_s3_success == 0U) {
|
||||
/* If host S3 enter failes, we should set BIT_WAK_STS
|
||||
@@ -186,7 +186,7 @@ static void pm1ab_io_write(__unused struct vm_io_handler *hdlr,
|
||||
}
|
||||
}
|
||||
|
||||
io_write(v, addr, width);
|
||||
pio_write(v, addr, width);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user