aboutsummaryrefslogtreecommitdiff
path: root/hw/audio/gus.c
diff options
context:
space:
mode:
authorNutan Shinde <nutanshinde1992@gmail.com>2015-10-07 22:02:54 +0530
committerGerd Hoffmann <kraxel@redhat.com>2015-10-19 09:03:53 +0200
commit8307c294a355bbf3c5352e00877365b0cda66d52 (patch)
tree22136b7e0c7ce70ce507ecbbe3707130fed83baa /hw/audio/gus.c
parent40fe17bea478793fc9106a630fa3610dad51f939 (diff)
downloadqemu-8307c294a355bbf3c5352e00877365b0cda66d52.zip
qemu-8307c294a355bbf3c5352e00877365b0cda66d52.tar.gz
qemu-8307c294a355bbf3c5352e00877365b0cda66d52.tar.bz2
Remove macros IO_READ_PROTO and IO_WRITE_PROTO
Signed-off-by: Nutan Shinde <nutanshinde1992@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/audio/gus.c')
-rw-r--r--hw/audio/gus.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/audio/gus.c b/hw/audio/gus.c
index 86223a9..e0c8a4e 100644
--- a/hw/audio/gus.c
+++ b/hw/audio/gus.c
@@ -41,11 +41,6 @@
#define GUS_ENDIANNESS 0
#endif
-#define IO_READ_PROTO(name) \
- static uint32_t name (void *opaque, uint32_t nport)
-#define IO_WRITE_PROTO(name) \
- static void name (void *opaque, uint32_t nport, uint32_t val)
-
#define TYPE_GUS "gus"
#define GUS(obj) OBJECT_CHECK (GUSState, (obj), TYPE_GUS)
@@ -64,14 +59,14 @@ typedef struct GUSState {
qemu_irq pic;
} GUSState;
-IO_READ_PROTO (gus_readb)
+static uint32_t gus_readb(void *opaque, uint32_t nport)
{
GUSState *s = opaque;
return gus_read (&s->emu, nport, 1);
}
-IO_WRITE_PROTO (gus_writeb)
+static void gus_writeb(void *opaque, uint32_t nport, uint32_t val)
{
GUSState *s = opaque;