~ubuntu-branches/ubuntu/lucid/skyeye/lucid-proposed

« back to all changes in this revision

Viewing changes to utils/portable/beos/tap_driver/skyeye_tap.h

  • Committer: Bazaar Package Importer
  • Author(s): Yu Guanghui
  • Date: 2007-02-09 20:24:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070209202429-jknfb98t9ggaoz02
Tags: 1.2.1-2
Disable DBCT again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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>
 
4
 
 
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.
 
9
 
 
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.
 
14
 
 
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 
 
18
*/
 
19
 
 
20
/*
 
21
 * 02/01/2007   written by Anthony Lee
 
22
 */
 
23
 
 
24
#ifndef __SKYEYE_TAP_BEOS_DRIVER_H__
 
25
#define __SKYEYE_TAP_BEOS_DRIVER_H__
 
26
 
 
27
#include <drivers/Drivers.h>
 
28
 
 
29
#define SKYEYE_TAP_RX_PORT_NAME                 "SkyEye_Tap_RX"
 
30
#define SKYEYE_TAP_TX_PORT_NAME                 "SkyEye_Tap_TX"
 
31
 
 
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'
 
35
 
 
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
 
39
 
 
40
enum
 
41
{
 
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 */
 
49
};
 
50
 
 
51
#endif /* __SKYEYE_TAP_BEOS_DRIVER_H__ */