STRUCT RIO_SWITCH_OP(9) | Internals | STRUCT RIO_SWITCH_OP(9) |
NAME¶
struct_rio_switch_ops - Per-switch operations
SYNOPSIS¶
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); };
MEMBERS¶
struct module * owner
int (*) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 route_port) add_entry
int (*) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 *route_port) get_entry
int (*) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table) clr_table
int (*) (struct rio_mport *mport, u16 destid, u8 hopcount,u8 sw_domain) set_domain
int (*) (struct rio_mport *mport, u16 destid, u8 hopcount,u8 *sw_domain) get_domain
int (*) (struct rio_dev *dev) em_init
int (*) (struct rio_dev *dev, u8 swport) em_handle
DESCRIPTION¶
Defines the operations that are necessary to initialize/control a particular RIO switch device.
AUTHOR¶
Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.11 |