mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
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>
This commit is contained in:
parent
2c89d91195
commit
efb22b2f98
3 changed files with 7 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue