ia64/xen-unstable

view extras/mini-os/include/netfront.h @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 707e10c9a487
children
line source
1 #include <mini-os/wait.h>
2 #ifdef HAVE_LWIP
3 #include <lwip/netif.h>
4 #endif
5 struct netfront_dev;
6 struct netfront_dev *init_netfront(char *nodename, void (*netif_rx)(unsigned char *data, int len), unsigned char rawmac[6], char **ip);
7 void netfront_xmit(struct netfront_dev *dev, unsigned char* data,int len);
8 void shutdown_netfront(struct netfront_dev *dev);
9 #ifdef HAVE_LIBC
10 int netfront_tap_open(char *nodename);
11 ssize_t netfront_receive(struct netfront_dev *dev, unsigned char *data, size_t len);
12 #endif
14 extern struct wait_queue_head netfront_queue;
16 #ifdef HAVE_LWIP
17 /* Call this to bring up the netfront interface and the lwIP stack.
18 * N.B. _must_ be called from a thread; it's not safe to call this from
19 * app_main(). */
20 void start_networking(void);
21 void stop_networking(void);
23 void networking_set_addr(struct ip_addr *ipaddr, struct ip_addr *netmask, struct ip_addr *gw);
24 #endif