diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-04-12 18:54:13 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-04-29 17:57:21 +0100 |
commit | 66b03dcec2715ffb3bc121114650502c9d3ffaef (patch) | |
tree | 7f8a0665cd8c9c685a0447b0949e8214930de6e4 /include | |
parent | a331dd029911fa85fd2e9fa72101396cd5b5fc08 (diff) | |
download | qemu-66b03dcec2715ffb3bc121114650502c9d3ffaef.zip qemu-66b03dcec2715ffb3bc121114650502c9d3ffaef.tar.gz qemu-66b03dcec2715ffb3bc121114650502c9d3ffaef.tar.bz2 |
hw/devices: Move LAN9118 declarations into a new header
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190412165416.7977-10-philmd@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/devices.h | 3 | ||||
-rw-r--r-- | include/hw/net/lan9118.h | 19 |
2 files changed, 19 insertions, 3 deletions
diff --git a/include/hw/devices.h b/include/hw/devices.h index ba90340..ebc45c8 100644 --- a/include/hw/devices.h +++ b/include/hw/devices.h @@ -8,7 +8,4 @@ /* smc91c111.c */ void smc91c111_init(NICInfo *, uint32_t, qemu_irq); -/* lan9118.c */ -void lan9118_init(NICInfo *, uint32_t, qemu_irq); - #endif diff --git a/include/hw/net/lan9118.h b/include/hw/net/lan9118.h new file mode 100644 index 0000000..d13d8cd --- /dev/null +++ b/include/hw/net/lan9118.h @@ -0,0 +1,19 @@ +/* + * SMSC LAN9118 Ethernet interface emulation + * + * Copyright (c) 2009 CodeSourcery, LLC. + * Written by Paul Brook + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#ifndef HW_NET_LAN9118_H +#define HW_NET_LAN9118_H + +#include "hw/irq.h" +#include "net/net.h" + +void lan9118_init(NICInfo *, uint32_t, qemu_irq); + +#endif |