Revision a8170e5e hw/pxa2xx_lcd.c
b/hw/pxa2xx_lcd.c | ||
---|---|---|
23 | 23 |
uint8_t up; |
24 | 24 |
uint8_t palette[1024]; |
25 | 25 |
uint8_t pbuffer[1024]; |
26 |
void (*redraw)(PXA2xxLCDState *s, target_phys_addr_t addr,
|
|
26 |
void (*redraw)(PXA2xxLCDState *s, hwaddr addr,
|
|
27 | 27 |
int *miny, int *maxy); |
28 | 28 |
|
29 | 29 |
uint32_t descriptor; |
... | ... | |
291 | 291 |
static void pxa2xx_descriptor_load(PXA2xxLCDState *s) |
292 | 292 |
{ |
293 | 293 |
PXAFrameDescriptor desc; |
294 |
target_phys_addr_t descptr;
|
|
294 |
hwaddr descptr;
|
|
295 | 295 |
int i; |
296 | 296 |
|
297 | 297 |
for (i = 0; i < PXA_LCDDMA_CHANS; i ++) { |
... | ... | |
323 | 323 |
} |
324 | 324 |
} |
325 | 325 |
|
326 |
static uint64_t pxa2xx_lcdc_read(void *opaque, target_phys_addr_t offset,
|
|
326 |
static uint64_t pxa2xx_lcdc_read(void *opaque, hwaddr offset,
|
|
327 | 327 |
unsigned size) |
328 | 328 |
{ |
329 | 329 |
PXA2xxLCDState *s = (PXA2xxLCDState *) opaque; |
... | ... | |
417 | 417 |
return 0; |
418 | 418 |
} |
419 | 419 |
|
420 |
static void pxa2xx_lcdc_write(void *opaque, target_phys_addr_t offset,
|
|
420 |
static void pxa2xx_lcdc_write(void *opaque, hwaddr offset,
|
|
421 | 421 |
uint64_t value, unsigned size) |
422 | 422 |
{ |
423 | 423 |
PXA2xxLCDState *s = (PXA2xxLCDState *) opaque; |
... | ... | |
674 | 674 |
} |
675 | 675 |
|
676 | 676 |
static void pxa2xx_lcdc_dma0_redraw_rot0(PXA2xxLCDState *s, |
677 |
target_phys_addr_t addr, int *miny, int *maxy)
|
|
677 |
hwaddr addr, int *miny, int *maxy)
|
|
678 | 678 |
{ |
679 | 679 |
int src_width, dest_width; |
680 | 680 |
drawfn fn = NULL; |
... | ... | |
701 | 701 |
} |
702 | 702 |
|
703 | 703 |
static void pxa2xx_lcdc_dma0_redraw_rot90(PXA2xxLCDState *s, |
704 |
target_phys_addr_t addr, int *miny, int *maxy)
|
|
704 |
hwaddr addr, int *miny, int *maxy)
|
|
705 | 705 |
{ |
706 | 706 |
int src_width, dest_width; |
707 | 707 |
drawfn fn = NULL; |
... | ... | |
729 | 729 |
} |
730 | 730 |
|
731 | 731 |
static void pxa2xx_lcdc_dma0_redraw_rot180(PXA2xxLCDState *s, |
732 |
target_phys_addr_t addr, int *miny, int *maxy)
|
|
732 |
hwaddr addr, int *miny, int *maxy)
|
|
733 | 733 |
{ |
734 | 734 |
int src_width, dest_width; |
735 | 735 |
drawfn fn = NULL; |
... | ... | |
759 | 759 |
} |
760 | 760 |
|
761 | 761 |
static void pxa2xx_lcdc_dma0_redraw_rot270(PXA2xxLCDState *s, |
762 |
target_phys_addr_t addr, int *miny, int *maxy)
|
|
762 |
hwaddr addr, int *miny, int *maxy)
|
|
763 | 763 |
{ |
764 | 764 |
int src_width, dest_width; |
765 | 765 |
drawfn fn = NULL; |
... | ... | |
813 | 813 |
static void pxa2xx_update_display(void *opaque) |
814 | 814 |
{ |
815 | 815 |
PXA2xxLCDState *s = (PXA2xxLCDState *) opaque; |
816 |
target_phys_addr_t fbptr;
|
|
816 |
hwaddr fbptr;
|
|
817 | 817 |
int miny, maxy; |
818 | 818 |
int ch; |
819 | 819 |
if (!(s->control[0] & LCCR0_ENB)) |
... | ... | |
987 | 987 |
#include "pxa2xx_template.h" |
988 | 988 |
|
989 | 989 |
PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem, |
990 |
target_phys_addr_t base, qemu_irq irq)
|
|
990 |
hwaddr base, qemu_irq irq)
|
|
991 | 991 |
{ |
992 | 992 |
PXA2xxLCDState *s; |
993 | 993 |
|
Also available in: Unified diff