2
skyeye_tap.h - A kernel driver for SkyEye's net simulation on BeOS
3
Copyright (C) 2007 Anthony Lee <don.anthony.lee+program@gmail.com>
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
* 02/01/2007 written by Anthony Lee
24
#ifndef __SKYEYE_TAP_BEOS_DRIVER_H__
25
#define __SKYEYE_TAP_BEOS_DRIVER_H__
27
#include <drivers/Drivers.h>
29
#define SKYEYE_TAP_RX_PORT_NAME "SkyEye_Tap_RX"
30
#define SKYEYE_TAP_TX_PORT_NAME "SkyEye_Tap_TX"
32
#define SKYEYE_TAP_RX_PORT_FOR_USER SKYEYE_TAP_TX_PORT_NAME
33
#define SKYEYE_TAP_TX_PORT_FOR_USER SKYEYE_TAP_RX_PORT_NAME
34
#define SKYEYE_TAP_PORT_MSG_CODE 'snet'
36
#define SKYEYE_TAP_DEVICE_NAME "net/skyeye_tap/0"
37
#define SKYEYE_TAP_DEVICE "/dev/" SKYEYE_TAP_DEVICE_NAME
38
#define SKYEYE_TAP_FRAME_SIZE 1560
42
ETHER_GETADDR = B_DEVICE_OP_CODES_END, /* get ethernet address */
43
ETHER_INIT, /* set irq and port */
44
ETHER_NONBLOCK, /* set/unset nonblocking mode */
45
ETHER_ADDMULTI, /* add multicast addr */
46
ETHER_REMMULTI, /* rem multicast addr */
47
ETHER_SETPROMISC, /* set promiscuous */
48
ETHER_GETFRAMESIZE, /* get frame size */
51
#endif /* __SKYEYE_TAP_BEOS_DRIVER_H__ */