diff options
author | Stefan Weil | 2014-07-07 21:50:07 +0200 |
---|---|---|
committer | Michael Tokarev | 2014-08-08 22:06:32 +0200 |
commit | f13bef9592ab1b03e715487a1a1b3f317f27463f (patch) | |
tree | abb2ecfb77515f6ee2093cbfe328a68fef7b0afb /include/hw | |
parent | virtio: Move extern declaration to header file (diff) | |
download | qemu-f13bef9592ab1b03e715487a1a1b3f317f27463f.tar.gz qemu-f13bef9592ab1b03e715487a1a1b3f317f27463f.tar.xz qemu-f13bef9592ab1b03e715487a1a1b3f317f27463f.zip |
hw/timer: Move extern declaration from .c to .h file
This fixes a warning from smatch (static code analyser).
Fix also the comment with the renamed source file name.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
hw/timer/tusb6010.c | 3 ---
include/hw/usb.h | 7 ++++++-
2 files changed, 6 insertions(+), 4 deletions(-)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/usb.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h index 8bcab48d29..223a5aef8f 100644 --- a/include/hw/usb.h +++ b/include/hw/usb.h @@ -475,7 +475,8 @@ void usb_host_info(Monitor *mon, const QDict *qdict); #define VM_USB_HUB_SIZE 8 -/* usb-musb.c */ +/* hw/usb/hdc-musb.c */ + enum musb_irq_source_e { musb_irq_suspend = 0, musb_irq_resume, @@ -494,6 +495,10 @@ enum musb_irq_source_e { }; typedef struct MUSBState MUSBState; + +extern CPUReadMemoryFunc * const musb_read[]; +extern CPUWriteMemoryFunc * const musb_write[]; + MUSBState *musb_init(DeviceState *parent_device, int gpio_base); void musb_reset(MUSBState *s); uint32_t musb_core_intr_get(MUSBState *s); |