1STRUCT RIO_DEV(9) Internals STRUCT RIO_DEV(9)
2
3
4
6 struct_rio_dev - RIO device info
7
9 struct rio_dev {
10 struct list_head global_list;
11 struct list_head net_list;
12 struct rio_net * net;
13 u16 did;
14 u16 vid;
15 u32 device_rev;
16 u16 asm_did;
17 u16 asm_vid;
18 u16 asm_rev;
19 u16 efptr;
20 u32 pef;
21 u32 swpinfo;
22 u32 src_ops;
23 u32 dst_ops;
24 u32 comp_tag;
25 u32 phys_efptr;
26 u32 em_efptr;
27 u64 dma_mask;
28 struct rio_driver * driver;
29 struct device dev;
30 struct resource riores[RIO_MAX_DEV_RESOURCES];
31 int (* pwcback) (struct rio_dev *rdev, union rio_pw_msg *msg, int step);
32 u16 destid;
33 u8 hopcount;
34 struct rio_dev * prev;
35 struct rio_switch rswitch[0];
36 };
37
39 global_list
40 Node in list of all RIO devices
41
42 net_list
43 Node in list of RIO devices in a network
44
45 net
46 Network this device is a part of
47
48 did
49 Device ID
50
51 vid
52 Vendor ID
53
54 device_rev
55 Device revision
56
57 asm_did
58 Assembly device ID
59
60 asm_vid
61 Assembly vendor ID
62
63 asm_rev
64 Assembly revision
65
66 efptr
67 Extended feature pointer
68
69 pef
70 Processing element features
71
72 swpinfo
73 Switch port info
74
75 src_ops
76 Source operation capabilities
77
78 dst_ops
79 Destination operation capabilities
80
81 comp_tag
82 RIO component tag
83
84 phys_efptr
85 RIO device extended features pointer
86
87 em_efptr
88 RIO Error Management features pointer
89
90 dma_mask
91 Mask of bits of RIO address this device implements
92
93 driver
94 Driver claiming this device
95
96 dev
97 Device model device
98
99 riores[RIO_MAX_DEV_RESOURCES]
100 RIO resources this device owns
101
102 pwcback
103 port-write callback function for this device
104
105 destid
106 Network destination ID (or associated destid for switch)
107
108 hopcount
109 Hopcount to this device
110
111 prev
112 Previous RIO device connected to the current one
113
114 rswitch[0]
115 struct rio_switch (if valid for this device)
116
118 Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>
119 Author.
120
122Kernel Hackers Manual 3.10 June 2019 STRUCT RIO_DEV(9)