2019-12-21 00:15:08 +03:00
|
|
|
/*
|
|
|
|
* QEMU LASI i82596 device emulation
|
|
|
|
*
|
|
|
|
* Copyright (c) 201 Helge Deller <deller@gmx.de>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LASI_82596_H
|
|
|
|
#define LASI_82596_H
|
|
|
|
|
|
|
|
#include "net/net.h"
|
|
|
|
#include "hw/net/i82596.h"
|
2022-12-22 15:08:11 +03:00
|
|
|
#include "hw/sysbus.h"
|
2019-12-21 00:15:08 +03:00
|
|
|
|
|
|
|
#define TYPE_LASI_82596 "lasi_82596"
|
2020-09-03 23:43:22 +03:00
|
|
|
typedef struct SysBusI82596State SysBusI82596State;
|
2020-09-01 00:07:33 +03:00
|
|
|
DECLARE_INSTANCE_CHECKER(SysBusI82596State, SYSBUS_I82596,
|
|
|
|
TYPE_LASI_82596)
|
2019-12-21 00:15:08 +03:00
|
|
|
|
2020-09-03 23:43:22 +03:00
|
|
|
struct SysBusI82596State {
|
2019-12-21 00:15:08 +03:00
|
|
|
SysBusDevice parent_obj;
|
|
|
|
|
|
|
|
I82596State state;
|
|
|
|
uint16_t last_val;
|
|
|
|
int val_index:1;
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
2019-12-21 00:15:08 +03:00
|
|
|
|
|
|
|
SysBusI82596State *lasi_82596_init(MemoryRegion *addr_space,
|
|
|
|
hwaddr hpa, qemu_irq irq);
|
|
|
|
|
|
|
|
#endif
|