Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / lib / libveth / veth.h
1 /******************************************************************************
2  * Copyright (c) 2013 IBM Corporation
3  * All rights reserved.
4  * This program and the accompanying materials
5  * are made available under the terms of the BSD License
6  * which accompanies this distribution, and is available at
7  * http://www.opensource.org/licenses/bsd-license.php
8  *
9  * Contributors:
10  * IBM Corporation - initial implementation
11  ******************************************************************************/
12
13 #ifndef _VETH_H
14 #define _VETH_H
15
16 #include <stdint.h>
17 #include <netdriver.h>
18
19 extern net_driver_t *libveth_open(char *mac_addr, int mac_len, char *reg, int reg_len);
20 extern void libveth_close(net_driver_t *driver);
21 extern int libveth_read(char *buf, int len, net_driver_t *driver);
22 extern int libveth_write(char *buf, int len, net_driver_t *driver);
23
24 #endif