2019-12-20 22:15:08 +01: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 13:08:11 +01:00
|
|
|
#include "hw/sysbus.h"
|
2019-12-20 22:15:08 +01:00
|
|
|
|
|
|
|
#define TYPE_LASI_82596 "lasi_82596"
|
2020-09-03 22:43:22 +02:00
|
|
|
typedef struct SysBusI82596State SysBusI82596State;
|
2020-08-31 23:07:33 +02:00
|
|
|
DECLARE_INSTANCE_CHECKER(SysBusI82596State, SYSBUS_I82596,
|
|
|
|
TYPE_LASI_82596)
|
2019-12-20 22:15:08 +01:00
|
|
|
|
2020-09-03 22:43:22 +02:00
|
|
|
struct SysBusI82596State {
|
2019-12-20 22:15:08 +01:00
|
|
|
SysBusDevice parent_obj;
|
|
|
|
|
|
|
|
I82596State state;
|
|
|
|
uint16_t last_val;
|
|
|
|
int val_index:1;
|
2020-09-03 22:43:22 +02:00
|
|
|
};
|
2019-12-20 22:15:08 +01:00
|
|
|
|
2023-10-23 10:37:50 +02:00
|
|
|
SysBusI82596State *lasi_82596_init(MemoryRegion *addr_space, hwaddr hpa,
|
|
|
|
qemu_irq irq, gboolean match_default);
|
2019-12-20 22:15:08 +01:00
|
|
|
|
|
|
|
#endif
|