STRUCT RIO_SWITCH

Section: Internals (9)
Updated: February 2011
Index Return to Main Contents
 

NAME

struct_rio_switch - RIO switch info  

SYNOPSIS

struct rio_switch {
  struct list_head node;
  struct rio_dev * rdev;
  u16 switchid;
  u16 hopcount;
  u16 destid;
  u8 * route_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_dev * nextdev[0];
};  
 

MEMBERS

node

Node in global list of switches

rdev

Associated RIO device structure

switchid

Switch ID that is unique across a network

hopcount

Hopcount to this switch

destid

Associated destid in the path

route_table

Copy of switch routing table

port_ok

Status of each port (one bit per port) - OK=1 or UNINIT=0

add_entry

Callback for switch-specific route add function

get_entry

Callback for switch-specific route get function

clr_table

Callback for switch-specific clear route table function

set_domain

Callback for switch-specific domain setting function

get_domain

Callback for switch-specific domain get function

em_init

Callback for switch-specific error management initialization function

em_handle

Callback for switch-specific error management handler function

sw_sysfs

Callback that initializes switch-specific sysfs attributes

nextdev[0]

Array of per-port pointers to the next attached device
 

AUTHOR

Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>

Author.
 

COPYRIGHT