aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-06-01 16:15:36 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-06-12 11:20:15 -0400
commitefb22b2f98975785aa594e5a198d4c2e13a5d2d0 (patch)
treeb1a8fbb26068134327ffd9112996df48fb0ec12b /hw
parent2c89d91195c4c7a118d2ae3518c31ca77a0583cd (diff)
downloadqemu-efb22b2f98975785aa594e5a198d4c2e13a5d2d0.zip
qemu-efb22b2f98975785aa594e5a198d4c2e13a5d2d0.tar.gz
qemu-efb22b2f98975785aa594e5a198d4c2e13a5d2d0.tar.bz2
exec/cpu-common: Move MUSB specific typedefs to 'hw/usb/hcd-musb.h'
The CPUReadMemoryFunc/CPUWriteMemoryFunc typedefs are legacy remnant from before the conversion to MemoryRegions. Since they are now only used in tusb6010.c and hcd-musb.c, move them to "hw/usb/musb.h" and rename them appropriately. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200601141536.15192-4-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/usb/hcd-musb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/usb/hcd-musb.c b/hw/usb/hcd-musb.c
index 5ab13fe..85f5ff5 100644
--- a/hw/usb/hcd-musb.c
+++ b/hw/usb/hcd-musb.c
@@ -1540,13 +1540,13 @@ static void musb_writew(void *opaque, hwaddr addr, uint32_t value)
};
}
-CPUReadMemoryFunc * const musb_read[] = {
+MUSBReadFunc * const musb_read[] = {
musb_readb,
musb_readh,
musb_readw,
};
-CPUWriteMemoryFunc * const musb_write[] = {
+MUSBWriteFunc * const musb_write[] = {
musb_writeb,
musb_writeh,
musb_writew,