Change so that Powerpc & ia64 do not have KVM_EXTRA_PAGES set
[qemu-kvm/fedora.git] / net.h
blobc8ff6d6e5f44171d5be191f937706920fa1fb32e
1 #ifndef QEMU_NET_H
2 #define QEMU_NET_H
4 /* VLANs support */
6 typedef struct VLANClientState VLANClientState;
8 struct VLANClientState {
9 IOReadHandler *fd_read;
10 /* Packets may still be sent if this returns zero. It's used to
11 rate-limit the slirp code. */
12 IOCanRWHandler *fd_can_read;
13 void *opaque;
14 struct VLANClientState *next;
15 struct VLANState *vlan;
16 char info_str[256];
19 struct VLANState {
20 int id;
21 VLANClientState *first_client;
22 struct VLANState *next;
23 unsigned int nb_guest_devs, nb_host_devs;
26 VLANState *qemu_find_vlan(int id);
27 VLANClientState *qemu_new_vlan_client(VLANState *vlan,
28 IOReadHandler *fd_read,
29 IOCanRWHandler *fd_can_read,
30 void *opaque);
31 int qemu_can_send_packet(VLANClientState *vc);
32 void qemu_send_packet(VLANClientState *vc, const uint8_t *buf, int size);
33 void qemu_handler_true(void *opaque);
35 void do_info_network(void);
37 /* virtio hack for zero copy receive */
38 int hack_around_tap(void *opaque);
40 /* NIC info */
42 #define MAX_NICS 8
44 struct NICInfo {
45 uint8_t macaddr[6];
46 const char *model;
47 VLANState *vlan;
50 extern int nb_nics;
51 extern NICInfo nd_table[MAX_NICS];
53 #endif