Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
rio_switch Struct Reference

#include <rio.h>

Data Fields

struct list_head node
 
u16 switchid
 
u8route_table
 
u32 port_ok
 
int(* add_entry )(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_destid, u8 route_port)
 
int(* get_entry )(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_destid, u8 *route_port)
 
int(* clr_table )(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table)
 
int(* set_domain )(struct rio_mport *mport, u16 destid, u8 hopcount, u8 sw_domain)
 
int(* get_domain )(struct rio_mport *mport, u16 destid, u8 hopcount, u8 *sw_domain)
 
int(* em_init )(struct rio_dev *dev)
 
int(* em_handle )(struct rio_dev *dev, u8 swport)
 
int(* sw_sysfs )(struct rio_dev *dev, int create)
 
struct rio_devnextdev [0]
 

Detailed Description

struct rio_switch - RIO switch info : Node in global list of switches : Switch ID that is unique across a network : Copy of switch routing table : Status of each port (one bit per port) - OK=1 or UNINIT=0 : Callback for switch-specific route add function : Callback for switch-specific route get function : Callback for switch-specific clear route table function : Callback for switch-specific domain setting function : Callback for switch-specific domain get function : Callback for switch-specific error management init function : Callback for switch-specific error management handler function : Callback that initializes switch-specific sysfs attributes : Array of per-port pointers to the next attached device

Definition at line 103 of file rio.h.

Field Documentation

int(* add_entry)(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_destid, u8 route_port)

Definition at line 108 of file rio.h.

int(* clr_table)(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table)

Definition at line 112 of file rio.h.

int(* em_handle)(struct rio_dev *dev, u8 swport)

Definition at line 119 of file rio.h.

int(* em_init)(struct rio_dev *dev)

Definition at line 118 of file rio.h.

int(* get_domain)(struct rio_mport *mport, u16 destid, u8 hopcount, u8 *sw_domain)

Definition at line 116 of file rio.h.

int(* get_entry)(struct rio_mport *mport, u16 destid, u8 hopcount, u16 table, u16 route_destid, u8 *route_port)

Definition at line 110 of file rio.h.

struct rio_dev* nextdev[0]

Definition at line 121 of file rio.h.

Definition at line 104 of file rio.h.

u32 port_ok

Definition at line 107 of file rio.h.

u8* route_table

Definition at line 106 of file rio.h.

int(* set_domain)(struct rio_mport *mport, u16 destid, u8 hopcount, u8 sw_domain)

Definition at line 114 of file rio.h.

int(* sw_sysfs)(struct rio_dev *dev, int create)

Definition at line 120 of file rio.h.

u16 switchid

Definition at line 105 of file rio.h.


The documentation for this struct was generated from the following file: