xref: /openbmc/qemu/include/hw/net/lasi_82596.h (revision 979a8902)
1 /*
2  * QEMU LASI i82596 device emulation
3  *
4  * Copyright (c) 201 Helge Deller <deller@gmx.de>
5  *
6  */
7 
8 #ifndef LASI_82596_H
9 #define LASI_82596_H
10 
11 #include "net/net.h"
12 #include "hw/net/i82596.h"
13 
14 #define TYPE_LASI_82596 "lasi_82596"
15 #define SYSBUS_I82596(obj) \
16     OBJECT_CHECK(SysBusI82596State, (obj), TYPE_LASI_82596)
17 
18 typedef struct {
19     SysBusDevice parent_obj;
20 
21     I82596State state;
22     uint16_t last_val;
23     int val_index:1;
24 } SysBusI82596State;
25 
26 SysBusI82596State *lasi_82596_init(MemoryRegion *addr_space,
27                                     hwaddr hpa, qemu_irq irq);
28 
29 #endif
30