driver_roboswitch.c File Reference

#include "includes.h"
#include <sys/ioctl.h>
#include <linux/if.h>
#include <linux/sockios.h>
#include <linux/if_ether.h>
#include <linux/mii.h>
#include "common.h"
#include "driver.h"
#include "l2_packet/l2_packet.h"
Include dependency graph for driver_roboswitch.c:

Go to the source code of this file.

Classes

struct  wpa_driver_roboswitch_data

Defines

#define ROBO_ARLCTRL_ADDR_1   0x10
#define ROBO_ARLCTRL_ADDR_2   0x20
#define ROBO_ARLCTRL_CONF   0x00
#define ROBO_ARLCTRL_PAGE   0x04
#define ROBO_ARLCTRL_VEC_1   0x16
#define ROBO_ARLCTRL_VEC_2   0x26
#define ROBO_MII_ADDR   0x11
#define ROBO_MII_ADDR_READ   0x02
#define ROBO_MII_ADDR_WRITE   0x01
#define ROBO_MII_DATA_MAX   4
#define ROBO_MII_DATA_OFFSET   0x18
#define ROBO_MII_PAGE   0x10
#define ROBO_MII_PAGE_ENABLE   0x01
#define ROBO_MII_RETRY_MAX   10
#define ROBO_PHY_ADDR   0x1e
#define ROBO_VLAN_ACCESS   0x08
#define ROBO_VLAN_ACCESS_5350   0x06
#define ROBO_VLAN_MAX   0xff
#define ROBO_VLAN_PAGE   0x34
#define ROBO_VLAN_READ   0x0c

Functions

static struct mii_ioctl_data * if_mii (struct ifreq *rq)
static void wpa_driver_roboswitch_addr_be16 (const u8 addr[ETH_ALEN], u16 *be)
static void wpa_driver_roboswitch_deinit (void *priv)
static int wpa_driver_roboswitch_get_bssid (void *priv, u8 *bssid)
static int wpa_driver_roboswitch_get_capa (void *priv, struct wpa_driver_capa *capa)
static const char * wpa_driver_roboswitch_get_ifname (void *priv)
static int wpa_driver_roboswitch_get_ssid (void *priv, u8 *ssid)
static void * wpa_driver_roboswitch_init (void *ctx, const char *ifname)
static int wpa_driver_roboswitch_join (struct wpa_driver_roboswitch_data *drv, u16 ports, const u8 *addr)
static int wpa_driver_roboswitch_leave (struct wpa_driver_roboswitch_data *drv, u16 ports, const u8 *addr)
static u16 wpa_driver_roboswitch_mdio_read (struct wpa_driver_roboswitch_data *drv, u8 reg)
static void wpa_driver_roboswitch_mdio_write (struct wpa_driver_roboswitch_data *drv, u8 reg, u16 val)
static int wpa_driver_roboswitch_read (struct wpa_driver_roboswitch_data *drv, u8 page, u8 reg, u16 *val, int len)
static void wpa_driver_roboswitch_receive (void *priv, const u8 *src_addr, const u8 *buf, size_t len)
static int wpa_driver_roboswitch_reg (struct wpa_driver_roboswitch_data *drv, u8 page, u8 reg, u8 op)
static int wpa_driver_roboswitch_set_param (void *priv, const char *param)
static int wpa_driver_roboswitch_write (struct wpa_driver_roboswitch_data *drv, u8 page, u8 reg, u16 *val, int len)

Variables

static const u8 pae_group_addr [ETH_ALEN]
struct wpa_driver_ops wpa_driver_roboswitch_ops

Define Documentation

#define ROBO_ARLCTRL_ADDR_1   0x10

Definition at line 45 of file driver_roboswitch.c.

#define ROBO_ARLCTRL_ADDR_2   0x20

Definition at line 47 of file driver_roboswitch.c.

#define ROBO_ARLCTRL_CONF   0x00

Definition at line 44 of file driver_roboswitch.c.

#define ROBO_ARLCTRL_PAGE   0x04

Definition at line 40 of file driver_roboswitch.c.

#define ROBO_ARLCTRL_VEC_1   0x16

Definition at line 46 of file driver_roboswitch.c.

#define ROBO_ARLCTRL_VEC_2   0x26

Definition at line 48 of file driver_roboswitch.c.

#define ROBO_MII_ADDR   0x11

Definition at line 30 of file driver_roboswitch.c.

#define ROBO_MII_ADDR_READ   0x02

Definition at line 35 of file driver_roboswitch.c.

#define ROBO_MII_ADDR_WRITE   0x01

Definition at line 34 of file driver_roboswitch.c.

#define ROBO_MII_DATA_MAX   4

Definition at line 36 of file driver_roboswitch.c.

#define ROBO_MII_DATA_OFFSET   0x18

Definition at line 31 of file driver_roboswitch.c.

#define ROBO_MII_PAGE   0x10

Definition at line 29 of file driver_roboswitch.c.

#define ROBO_MII_PAGE_ENABLE   0x01

Definition at line 33 of file driver_roboswitch.c.

#define ROBO_MII_RETRY_MAX   10

Definition at line 37 of file driver_roboswitch.c.

#define ROBO_PHY_ADDR   0x1e

Definition at line 26 of file driver_roboswitch.c.

#define ROBO_VLAN_ACCESS   0x08

Definition at line 51 of file driver_roboswitch.c.

#define ROBO_VLAN_ACCESS_5350   0x06

Definition at line 52 of file driver_roboswitch.c.

#define ROBO_VLAN_MAX   0xff

Definition at line 54 of file driver_roboswitch.c.

#define ROBO_VLAN_PAGE   0x34

Definition at line 41 of file driver_roboswitch.c.

#define ROBO_VLAN_READ   0x0c

Definition at line 53 of file driver_roboswitch.c.


Function Documentation

static struct mii_ioctl_data* if_mii ( struct ifreq *  rq  )  [static, read]

Definition at line 73 of file driver_roboswitch.c.

static void wpa_driver_roboswitch_addr_be16 ( const u8  addr[ETH_ALEN],
u16 be 
) [static]

Definition at line 83 of file driver_roboswitch.c.

static void wpa_driver_roboswitch_deinit ( void *  priv  )  [static]

Definition at line 452 of file driver_roboswitch.c.

static int wpa_driver_roboswitch_get_bssid ( void *  priv,
u8 bssid 
) [static]

Definition at line 194 of file driver_roboswitch.c.

static int wpa_driver_roboswitch_get_capa ( void *  priv,
struct wpa_driver_capa capa 
) [static]

Definition at line 202 of file driver_roboswitch.c.

static const char* wpa_driver_roboswitch_get_ifname ( void *  priv  )  [static]

Definition at line 237 of file driver_roboswitch.c.

static int wpa_driver_roboswitch_get_ssid ( void *  priv,
u8 ssid 
) [static]

Definition at line 187 of file driver_roboswitch.c.

static void* wpa_driver_roboswitch_init ( void *  ctx,
const char *  ifname 
) [static]

Definition at line 353 of file driver_roboswitch.c.

static int wpa_driver_roboswitch_join ( struct wpa_driver_roboswitch_data drv,
u16  ports,
const u8 addr 
) [static]

Definition at line 244 of file driver_roboswitch.c.

static int wpa_driver_roboswitch_leave ( struct wpa_driver_roboswitch_data drv,
u16  ports,
const u8 addr 
) [static]

Definition at line 290 of file driver_roboswitch.c.

static u16 wpa_driver_roboswitch_mdio_read ( struct wpa_driver_roboswitch_data drv,
u8  reg 
) [static]

Definition at line 91 of file driver_roboswitch.c.

static void wpa_driver_roboswitch_mdio_write ( struct wpa_driver_roboswitch_data drv,
u8  reg,
u16  val 
) [static]

Definition at line 107 of file driver_roboswitch.c.

static int wpa_driver_roboswitch_read ( struct wpa_driver_roboswitch_data drv,
u8  page,
u8  reg,
u16 val,
int  len 
) [static]

Definition at line 144 of file driver_roboswitch.c.

static void wpa_driver_roboswitch_receive ( void *  priv,
const u8 src_addr,
const u8 buf,
size_t  len 
) [static]

Definition at line 176 of file driver_roboswitch.c.

static int wpa_driver_roboswitch_reg ( struct wpa_driver_roboswitch_data drv,
u8  page,
u8  reg,
u8  op 
) [static]

Definition at line 122 of file driver_roboswitch.c.

static int wpa_driver_roboswitch_set_param ( void *  priv,
const char *  param 
) [static]

Definition at line 211 of file driver_roboswitch.c.

static int wpa_driver_roboswitch_write ( struct wpa_driver_roboswitch_data drv,
u8  page,
u8  reg,
u16 val,
int  len 
) [static]

Definition at line 162 of file driver_roboswitch.c.


Variable Documentation

const u8 pae_group_addr[ETH_ALEN] [static]
Initial value:
{ 0x01, 0x80, 0xc2, 0x00, 0x00, 0x03 }

Definition at line 57 of file driver_roboswitch.c.

Initial value:
 {
        .name = "roboswitch",
        .desc = "wpa_supplicant roboswitch driver",
        .get_ssid = wpa_driver_roboswitch_get_ssid,
        .get_bssid = wpa_driver_roboswitch_get_bssid,
        .get_capa = wpa_driver_roboswitch_get_capa,
        .init = wpa_driver_roboswitch_init,
        .deinit = wpa_driver_roboswitch_deinit,
        .set_param = wpa_driver_roboswitch_set_param,
        .get_ifname = wpa_driver_roboswitch_get_ifname,
}

Definition at line 470 of file driver_roboswitch.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:04:23 2013