struct rio_switch_ops — Per-switch operations
struct rio_switch_ops {
struct module * owner;
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);
}; struct module * ownerThe module owner of this structure
int (*) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 route_port) add_entryCallback for switch-specific route add function
int (*) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 *route_port) get_entryCallback for switch-specific route get function
int (*) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table) clr_tableCallback for switch-specific clear route table function
int (*) (struct rio_mport *mport, u16 destid, u8 hopcount,u8 sw_domain) set_domainCallback for switch-specific domain setting function
int (*) (struct rio_mport *mport, u16 destid, u8 hopcount,u8 *sw_domain) get_domainCallback for switch-specific domain get function
int (*) (struct rio_dev *dev) em_initCallback for switch-specific error management init function
int (*) (struct rio_dev *dev, u8 swport) em_handleCallback for switch-specific error management handler function