mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Rename target_phys_addr_t to hwaddr
target_phys_addr_t is unwieldly, violates the C standard (_t suffixes are reserved) and its purpose doesn't match the name (most target_phys_addr_t addresses are not target specific). Replace it with a finger-friendly, standards conformant hwaddr. Outstanding patchsets can be fixed up with the command git rebase -i --exec 'find -name "*.[ch]" | xargs s/target_phys_addr_t/hwaddr/g' origin Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
50d2b4d93f
commit
a8170e5e97
383 changed files with 2240 additions and 2240 deletions
|
@ -290,7 +290,7 @@ struct Exynos4210fimdWindow {
|
|||
uint16_t virtpage_offsize; /* VIDWADD2 register */
|
||||
MemoryRegionSection mem_section; /* RAM fragment containing framebuffer */
|
||||
uint8_t *host_fb_addr; /* Host pointer to window's framebuffer */
|
||||
target_phys_addr_t fb_len; /* Framebuffer length */
|
||||
hwaddr fb_len; /* Framebuffer length */
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
@ -1110,7 +1110,7 @@ static inline int fimd_get_buffer_id(Exynos4210fimdWindow *w)
|
|||
static void fimd_update_memory_section(Exynos4210fimdState *s, unsigned win)
|
||||
{
|
||||
Exynos4210fimdWindow *w = &s->window[win];
|
||||
target_phys_addr_t fb_start_addr, fb_mapped_len;
|
||||
hwaddr fb_start_addr, fb_mapped_len;
|
||||
|
||||
if (!s->enabled || !(w->wincon & FIMD_WINCON_ENWIN) ||
|
||||
FIMD_WINDOW_PROTECTED(s->shadowcon, win)) {
|
||||
|
@ -1243,7 +1243,7 @@ static void exynos4210_fimd_update(void *opaque)
|
|||
Exynos4210fimdState *s = (Exynos4210fimdState *)opaque;
|
||||
Exynos4210fimdWindow *w;
|
||||
int i, line;
|
||||
target_phys_addr_t fb_line_addr, inc_size;
|
||||
hwaddr fb_line_addr, inc_size;
|
||||
int scrn_height;
|
||||
int first_line = -1, last_line = -1, scrn_width;
|
||||
bool blend = false;
|
||||
|
@ -1348,7 +1348,7 @@ static void exynos4210_fimd_reset(DeviceState *d)
|
|||
s->hueoffset = 0x01800080;
|
||||
}
|
||||
|
||||
static void exynos4210_fimd_write(void *opaque, target_phys_addr_t offset,
|
||||
static void exynos4210_fimd_write(void *opaque, hwaddr offset,
|
||||
uint64_t val, unsigned size)
|
||||
{
|
||||
Exynos4210fimdState *s = (Exynos4210fimdState *)opaque;
|
||||
|
@ -1649,7 +1649,7 @@ static void exynos4210_fimd_write(void *opaque, target_phys_addr_t offset,
|
|||
}
|
||||
}
|
||||
|
||||
static uint64_t exynos4210_fimd_read(void *opaque, target_phys_addr_t offset,
|
||||
static uint64_t exynos4210_fimd_read(void *opaque, hwaddr offset,
|
||||
unsigned size)
|
||||
{
|
||||
Exynos4210fimdState *s = (Exynos4210fimdState *)opaque;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue