1STRUCT RIO_SWITCH(9) Internals STRUCT RIO_SWITCH(9)
2
3
4
6 struct_rio_switch - RIO switch info
7
9 struct rio_switch {
10 struct list_head node;
11 u16 switchid;
12 u16 hopcount;
13 u16 destid;
14 u8 * route_table;
15 u32 port_ok;
16 int (* add_entry) (struct rio_mport * mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 route_port);
17 int (* get_entry) (struct rio_mport * mport, u16 destid, u8 hopcount,u16 table, u16 route_destid, u8 * route_port);
18 int (* clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount,u16 table);
19 int (* set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,u8 sw_domain);
20 int (* get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,u8 *sw_domain);
21 int (* em_init) (struct rio_dev *dev);
22 int (* em_handle) (struct rio_dev *dev, u8 swport);
23 };
24
26 node
27 Node in global list of switches
28
29 switchid
30 Switch ID that is unique across a network
31
32 hopcount
33 Hopcount to this switch
34
35 destid
36 Associated destid in the path
37
38 route_table
39 Copy of switch routing table
40
41 port_ok
42 Status of each port (one bit per port) - OK=1 or UNINIT=0
43
44 add_entry
45 Callback for switch-specific route add function
46
47 get_entry
48 Callback for switch-specific route get function
49
50 clr_table
51 Callback for switch-specific clear route table function
52
53 set_domain
54 Callback for switch-specific domain setting function
55
56 get_domain
57 Callback for switch-specific domain get function
58
59 em_init
60 Callback for switch-specific error management initialization
61 function
62
63 em_handle
64 Callback for switch-specific error management handler function
65
67 Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>
68 Author.
69
71Kernel Hackers Manual 2.6. November 2011 STRUCT RIO_SWITCH(9)