1STRUCT RIO_SWITCH(9)               Internals              STRUCT RIO_SWITCH(9)
2
3
4

NAME

6       struct_rio_switch - RIO switch info
7

SYNOPSIS

9       struct rio_switch {
10         struct list_head node;
11         u16 switchid;
12         u8 * route_table;
13         u32 port_ok;
14         int (* add_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 route_port);
15         int (* get_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 *route_port);
16         int (* clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table);
17         int (* set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,u8 sw_domain);
18         int (* get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,u8 *sw_domain);
19         int (* em_init) (struct rio_dev *dev);
20         int (* em_handle) (struct rio_dev *dev, u8 swport);
21         int (* sw_sysfs) (struct rio_dev *dev, int create);
22         struct rio_dev * nextdev[0];
23       };
24

MEMBERS

26       node
27           Node in global list of switches
28
29       switchid
30           Switch ID that is unique across a network
31
32       route_table
33           Copy of switch routing table
34
35       port_ok
36           Status of each port (one bit per port) - OK=1 or UNINIT=0
37
38       add_entry
39           Callback for switch-specific route add function
40
41       get_entry
42           Callback for switch-specific route get function
43
44       clr_table
45           Callback for switch-specific clear route table function
46
47       set_domain
48           Callback for switch-specific domain setting function
49
50       get_domain
51           Callback for switch-specific domain get function
52
53       em_init
54           Callback for switch-specific error management init function
55
56       em_handle
57           Callback for switch-specific error management handler function
58
59       sw_sysfs
60           Callback that initializes switch-specific sysfs attributes
61
62       nextdev[0]
63           Array of per-port pointers to the next attached device
64

AUTHOR

66       Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>
67           Author.
68
70Kernel Hackers Manual 3.10         June 2019              STRUCT RIO_SWITCH(9)
Impressum