forked from hchunhui/tiny386
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathne2000.h
More file actions
35 lines (26 loc) · 1.05 KB
/
ne2000.h
File metadata and controls
35 lines (26 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef NE2000_H
#define NE2000_H
#include <stdint.h>
typedef struct NE2000State NE2000State;
#ifndef DISABLE_NET
void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val);
uint32_t ne2000_ioport_read(void *opaque, uint32_t addr);
void ne2000_reset_ioport_write(void *opaque, uint32_t addr, uint32_t val);
uint32_t ne2000_reset_ioport_read(void *opaque, uint32_t addr);
void ne2000_asic_ioport_write(void *opaque, uint32_t addr, uint32_t val);
uint32_t ne2000_asic_ioport_read(void *opaque, uint32_t addr);
void ne2000_step(NE2000State *s);
NE2000State *isa_ne2000_init(int base, int irq,
void *pic,
void (*set_irq)(void *pic, int irq, int level));
#else
#define ne2000_ioport_write(x, y, z)
#define ne2000_ioport_read(x, y) (0)
#define ne2000_reset_ioport_write(x, y, z)
#define ne2000_reset_ioport_read(x, y) (0)
#define ne2000_asic_ioport_write(x, y, z)
#define ne2000_asic_ioport_read(x, y) (0)
#define ne2000_step(x)
#define isa_ne2000_init(x, y, z, t) (NULL)
#endif
#endif /* NE2000_H */