Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
bp_ioctl.h File Reference

Go to the source code of this file.

Data Structures

struct  bp_info
 
struct  if_bypass
 
struct  if_bypass_info
 
struct  bpctl_cmd
 

Macros

#define BP_CAP   0x01
 
#define BP_STATUS_CAP   0x02
 
#define BP_STATUS_CHANGE_CAP   0x04
 
#define SW_CTL_CAP   0x08
 
#define BP_DIS_CAP   0x10
 
#define BP_DIS_STATUS_CAP   0x20
 
#define STD_NIC_CAP   0x40
 
#define BP_PWOFF_ON_CAP   0x80
 
#define BP_PWOFF_OFF_CAP   0x0100
 
#define BP_PWOFF_CTL_CAP   0x0200
 
#define BP_PWUP_ON_CAP   0x0400
 
#define BP_PWUP_OFF_CAP   0x0800
 
#define BP_PWUP_CTL_CAP   0x1000
 
#define WD_CTL_CAP   0x2000
 
#define WD_STATUS_CAP   0x4000
 
#define WD_TIMEOUT_CAP   0x8000
 
#define TX_CTL_CAP   0x10000
 
#define TX_STATUS_CAP   0x20000
 
#define TAP_CAP   0x40000
 
#define TAP_STATUS_CAP   0x80000
 
#define TAP_STATUS_CHANGE_CAP   0x100000
 
#define TAP_DIS_CAP   0x200000
 
#define TAP_DIS_STATUS_CAP   0x400000
 
#define TAP_PWUP_ON_CAP   0x800000
 
#define TAP_PWUP_OFF_CAP   0x1000000
 
#define TAP_PWUP_CTL_CAP   0x2000000
 
#define NIC_CAP_NEG   0x4000000
 
#define TPL_CAP   0x8000000
 
#define DISC_CAP   0x10000000
 
#define DISC_DIS_CAP   0x20000000
 
#define DISC_PWUP_CTL_CAP   0x40000000
 
#define WD_MIN_TIME_MASK(val)   (val & 0xf)
 
#define WD_STEP_COUNT_MASK(val)   ((val & 0xf) << 5)
 
#define WDT_STEP_TIME   0x10
 
#define WD_MIN_TIME_GET(desc)   (desc & 0xf)
 
#define WD_STEP_COUNT_GET(desc)   (desc>>5) & 0xf
 
#define SIOCGIFBYPASS   SIOCDEVPRIVATE+10
 
#define MAGIC_NUM   'J'
 
#define IOCTL_TX_MSG(cmd)   _IOWR(MAGIC_NUM, cmd, struct bpctl_cmd)
 
#define DEVICE_NAME   "bpctl"
 

Enumerations

enum  CMND_TYPE {
  IS_BYPASS = 1, GET_BYPASS_SLAVE, GET_BYPASS_CAPS, GET_WD_SET_CAPS,
  SET_BYPASS, GET_BYPASS, GET_BYPASS_CHANGE, SET_BYPASS_WD,
  GET_BYPASS_WD, GET_WD_EXPIRE_TIME, RESET_BYPASS_WD_TIMER, SET_DIS_BYPASS,
  GET_DIS_BYPASS, SET_BYPASS_PWOFF, GET_BYPASS_PWOFF, SET_BYPASS_PWUP,
  GET_BYPASS_PWUP, SET_STD_NIC, GET_STD_NIC, SET_TX,
  GET_TX, SET_TAP, GET_TAP, GET_TAP_CHANGE,
  SET_DIS_TAP, GET_DIS_TAP, SET_TAP_PWUP, GET_TAP_PWUP,
  SET_WD_EXP_MODE, GET_WD_EXP_MODE, SET_WD_AUTORESET, GET_WD_AUTORESET,
  SET_TPL, GET_TPL, SET_DISC, GET_DISC,
  GET_DISC_CHANGE, SET_DIS_DISC, GET_DIS_DISC, SET_DISC_PWUP,
  GET_DISC_PWUP, GET_BYPASS_INFO = 100, GET_BP_WAIT_AT_PWUP, SET_BP_WAIT_AT_PWUP,
  GET_BP_HW_RESET, SET_BP_HW_RESET
}
 
enum  CMND_TYPE_SD {
  IF_SCAN, GET_DEV_NUM, IS_BYPASS, GET_BYPASS_SLAVE,
  GET_BYPASS_CAPS, GET_WD_SET_CAPS, SET_BYPASS, GET_BYPASS,
  GET_BYPASS_CHANGE, SET_BYPASS_WD, GET_BYPASS_WD, GET_WD_EXPIRE_TIME,
  RESET_BYPASS_WD_TIMER, SET_DIS_BYPASS, GET_DIS_BYPASS, SET_BYPASS_PWOFF,
  GET_BYPASS_PWOFF, SET_BYPASS_PWUP, GET_BYPASS_PWUP, SET_STD_NIC,
  GET_STD_NIC, SET_TX, GET_TX, SET_TAP,
  GET_TAP, GET_TAP_CHANGE, SET_DIS_TAP, GET_DIS_TAP,
  SET_TAP_PWUP, GET_TAP_PWUP, SET_WD_EXP_MODE, GET_WD_EXP_MODE,
  SET_WD_AUTORESET, GET_WD_AUTORESET, SET_TPL, GET_TPL,
  SET_DISC, GET_DISC, GET_DISC_CHANGE, SET_DIS_DISC,
  GET_DIS_DISC, SET_DISC_PWUP, GET_DISC_PWUP, GET_BYPASS_INFO = 100,
  GET_BP_WAIT_AT_PWUP, SET_BP_WAIT_AT_PWUP, GET_BP_HW_RESET, SET_BP_HW_RESET,
  SET_DISC_PORT, GET_DISC_PORT, SET_DISC_PORT_PWUP, GET_DISC_PORT_PWUP,
  SET_BP_FORCE_LINK, GET_BP_FORCE_LINK, IF_SCAN_SD, GET_DEV_NUM_SD,
  IS_BYPASS_SD, GET_BYPASS_SLAVE_SD, GET_BYPASS_CAPS_SD, GET_WD_SET_CAPS_SD,
  SET_BYPASS_SD, GET_BYPASS_SD, GET_BYPASS_CHANGE_SD, SET_BYPASS_WD_SD,
  GET_BYPASS_WD_SD, GET_WD_EXPIRE_TIME_SD, RESET_BYPASS_WD_TIMER_SD, SET_DIS_BYPASS_SD,
  GET_DIS_BYPASS_SD, SET_BYPASS_PWOFF_SD, GET_BYPASS_PWOFF_SD, SET_BYPASS_PWUP_SD,
  GET_BYPASS_PWUP_SD, SET_STD_NIC_SD, GET_STD_NIC_SD, SET_TX_SD,
  GET_TX_SD, SET_TAP_SD, GET_TAP_SD, GET_TAP_CHANGE_SD,
  SET_DIS_TAP_SD, GET_DIS_TAP_SD, SET_TAP_PWUP_SD, GET_TAP_PWUP_SD,
  SET_WD_EXP_MODE_SD, GET_WD_EXP_MODE_SD, SET_WD_AUTORESET_SD, GET_WD_AUTORESET_SD,
  SET_TPL_SD, GET_TPL_SD, SET_DISC_SD, GET_DISC_SD,
  GET_DISC_CHANGE_SD, SET_DIS_DISC_SD, GET_DIS_DISC_SD, SET_DISC_PWUP_SD,
  GET_DISC_PWUP_SD, GET_BYPASS_INFO_SD = 100, GET_BP_WAIT_AT_PWUP_SD, SET_BP_WAIT_AT_PWUP_SD,
  GET_BP_HW_RESET_SD, SET_BP_HW_RESET_SD
}
 

Macro Definition Documentation

#define BP_CAP   0x01

Definition at line 17 of file bp_ioctl.h.

#define BP_DIS_CAP   0x10

Definition at line 21 of file bp_ioctl.h.

#define BP_DIS_STATUS_CAP   0x20

Definition at line 22 of file bp_ioctl.h.

#define BP_PWOFF_CTL_CAP   0x0200

Definition at line 26 of file bp_ioctl.h.

#define BP_PWOFF_OFF_CAP   0x0100

Definition at line 25 of file bp_ioctl.h.

#define BP_PWOFF_ON_CAP   0x80

Definition at line 24 of file bp_ioctl.h.

#define BP_PWUP_CTL_CAP   0x1000

Definition at line 29 of file bp_ioctl.h.

#define BP_PWUP_OFF_CAP   0x0800

Definition at line 28 of file bp_ioctl.h.

#define BP_PWUP_ON_CAP   0x0400

Definition at line 27 of file bp_ioctl.h.

#define BP_STATUS_CAP   0x02

Definition at line 18 of file bp_ioctl.h.

#define BP_STATUS_CHANGE_CAP   0x04

Definition at line 19 of file bp_ioctl.h.

#define DEVICE_NAME   "bpctl"

Definition at line 196 of file bp_ioctl.h.

#define DISC_CAP   0x10000000

Definition at line 45 of file bp_ioctl.h.

#define DISC_DIS_CAP   0x20000000

Definition at line 46 of file bp_ioctl.h.

#define DISC_PWUP_CTL_CAP   0x40000000

Definition at line 47 of file bp_ioctl.h.

#define IOCTL_TX_MSG (   cmd)    _IOWR(MAGIC_NUM, cmd, struct bpctl_cmd)

Definition at line 194 of file bp_ioctl.h.

#define MAGIC_NUM   'J'

Definition at line 184 of file bp_ioctl.h.

#define NIC_CAP_NEG   0x4000000

Definition at line 43 of file bp_ioctl.h.

#define SIOCGIFBYPASS   SIOCDEVPRIVATE+10

Definition at line 159 of file bp_ioctl.h.

#define STD_NIC_CAP   0x40

Definition at line 23 of file bp_ioctl.h.

#define SW_CTL_CAP   0x08

Definition at line 20 of file bp_ioctl.h.

#define TAP_CAP   0x40000

Definition at line 35 of file bp_ioctl.h.

#define TAP_DIS_CAP   0x200000

Definition at line 38 of file bp_ioctl.h.

#define TAP_DIS_STATUS_CAP   0x400000

Definition at line 39 of file bp_ioctl.h.

#define TAP_PWUP_CTL_CAP   0x2000000

Definition at line 42 of file bp_ioctl.h.

#define TAP_PWUP_OFF_CAP   0x1000000

Definition at line 41 of file bp_ioctl.h.

#define TAP_PWUP_ON_CAP   0x800000

Definition at line 40 of file bp_ioctl.h.

#define TAP_STATUS_CAP   0x80000

Definition at line 36 of file bp_ioctl.h.

#define TAP_STATUS_CHANGE_CAP   0x100000

Definition at line 37 of file bp_ioctl.h.

#define TPL_CAP   0x8000000

Definition at line 44 of file bp_ioctl.h.

#define TX_CTL_CAP   0x10000

Definition at line 33 of file bp_ioctl.h.

#define TX_STATUS_CAP   0x20000

Definition at line 34 of file bp_ioctl.h.

#define WD_CTL_CAP   0x2000

Definition at line 30 of file bp_ioctl.h.

#define WD_MIN_TIME_GET (   desc)    (desc & 0xf)

Definition at line 53 of file bp_ioctl.h.

#define WD_MIN_TIME_MASK (   val)    (val & 0xf)

Definition at line 49 of file bp_ioctl.h.

#define WD_STATUS_CAP   0x4000

Definition at line 31 of file bp_ioctl.h.

#define WD_STEP_COUNT_GET (   desc)    (desc>>5) & 0xf

Definition at line 54 of file bp_ioctl.h.

#define WD_STEP_COUNT_MASK (   val)    ((val & 0xf) << 5)

Definition at line 50 of file bp_ioctl.h.

#define WD_TIMEOUT_CAP   0x8000

Definition at line 32 of file bp_ioctl.h.

#define WDT_STEP_TIME   0x10

Definition at line 51 of file bp_ioctl.h.

Enumeration Type Documentation

enum CMND_TYPE
Enumerator:
IS_BYPASS 
GET_BYPASS_SLAVE 
GET_BYPASS_CAPS 
GET_WD_SET_CAPS 
SET_BYPASS 
GET_BYPASS 
GET_BYPASS_CHANGE 
SET_BYPASS_WD 
GET_BYPASS_WD 
GET_WD_EXPIRE_TIME 
RESET_BYPASS_WD_TIMER 
SET_DIS_BYPASS 
GET_DIS_BYPASS 
SET_BYPASS_PWOFF 
GET_BYPASS_PWOFF 
SET_BYPASS_PWUP 
GET_BYPASS_PWUP 
SET_STD_NIC 
GET_STD_NIC 
SET_TX 
GET_TX 
SET_TAP 
GET_TAP 
GET_TAP_CHANGE 
SET_DIS_TAP 
GET_DIS_TAP 
SET_TAP_PWUP 
GET_TAP_PWUP 
SET_WD_EXP_MODE 
GET_WD_EXP_MODE 
SET_WD_AUTORESET 
GET_WD_AUTORESET 
SET_TPL 
GET_TPL 
SET_DISC 
GET_DISC 
GET_DISC_CHANGE 
SET_DIS_DISC 
GET_DIS_DISC 
SET_DISC_PWUP 
GET_DISC_PWUP 
GET_BYPASS_INFO 
GET_BP_WAIT_AT_PWUP 
SET_BP_WAIT_AT_PWUP 
GET_BP_HW_RESET 
SET_BP_HW_RESET 

Definition at line 56 of file bp_ioctl.h.

Enumerator:
IF_SCAN 
GET_DEV_NUM 
IS_BYPASS 
GET_BYPASS_SLAVE 
GET_BYPASS_CAPS 
GET_WD_SET_CAPS 
SET_BYPASS 
GET_BYPASS 
GET_BYPASS_CHANGE 
SET_BYPASS_WD 
GET_BYPASS_WD 
GET_WD_EXPIRE_TIME 
RESET_BYPASS_WD_TIMER 
SET_DIS_BYPASS 
GET_DIS_BYPASS 
SET_BYPASS_PWOFF 
GET_BYPASS_PWOFF 
SET_BYPASS_PWUP 
GET_BYPASS_PWUP 
SET_STD_NIC 
GET_STD_NIC 
SET_TX 
GET_TX 
SET_TAP 
GET_TAP 
GET_TAP_CHANGE 
SET_DIS_TAP 
GET_DIS_TAP 
SET_TAP_PWUP 
GET_TAP_PWUP 
SET_WD_EXP_MODE 
GET_WD_EXP_MODE 
SET_WD_AUTORESET 
GET_WD_AUTORESET 
SET_TPL 
GET_TPL 
SET_DISC 
GET_DISC 
GET_DISC_CHANGE 
SET_DIS_DISC 
GET_DIS_DISC 
SET_DISC_PWUP 
GET_DISC_PWUP 
GET_BYPASS_INFO 
GET_BP_WAIT_AT_PWUP 
SET_BP_WAIT_AT_PWUP 
GET_BP_HW_RESET 
SET_BP_HW_RESET 
SET_DISC_PORT 
GET_DISC_PORT 
SET_DISC_PORT_PWUP 
GET_DISC_PORT_PWUP 
SET_BP_FORCE_LINK 
GET_BP_FORCE_LINK 
IF_SCAN_SD 
GET_DEV_NUM_SD 
IS_BYPASS_SD 
GET_BYPASS_SLAVE_SD 
GET_BYPASS_CAPS_SD 
GET_WD_SET_CAPS_SD 
SET_BYPASS_SD 
GET_BYPASS_SD 
GET_BYPASS_CHANGE_SD 
SET_BYPASS_WD_SD 
GET_BYPASS_WD_SD 
GET_WD_EXPIRE_TIME_SD 
RESET_BYPASS_WD_TIMER_SD 
SET_DIS_BYPASS_SD 
GET_DIS_BYPASS_SD 
SET_BYPASS_PWOFF_SD 
GET_BYPASS_PWOFF_SD 
SET_BYPASS_PWUP_SD 
GET_BYPASS_PWUP_SD 
SET_STD_NIC_SD 
GET_STD_NIC_SD 
SET_TX_SD 
GET_TX_SD 
SET_TAP_SD 
GET_TAP_SD 
GET_TAP_CHANGE_SD 
SET_DIS_TAP_SD 
GET_DIS_TAP_SD 
SET_TAP_PWUP_SD 
GET_TAP_PWUP_SD 
SET_WD_EXP_MODE_SD 
GET_WD_EXP_MODE_SD 
SET_WD_AUTORESET_SD 
GET_WD_AUTORESET_SD 
SET_TPL_SD 
GET_TPL_SD 
SET_DISC_SD 
GET_DISC_SD 
GET_DISC_CHANGE_SD 
SET_DIS_DISC_SD 
GET_DIS_DISC_SD 
SET_DISC_PWUP_SD 
GET_DISC_PWUP_SD 
GET_BYPASS_INFO_SD 
GET_BP_WAIT_AT_PWUP_SD 
SET_BP_WAIT_AT_PWUP_SD 
GET_BP_HW_RESET_SD 
SET_BP_HW_RESET_SD 

Definition at line 106 of file bp_ioctl.h.