Go to the documentation of this file.
13 #include <linux/device.h>
14 #include <linux/list.h>
17 #define RIO_MAX_CHK_RETRY 3
22 u8 hopcount,
int ftr);
24 u16 destid,
u8 hopcount);
51 #define DECLARE_RIO_SWITCH_SECTION(section, name, vid, did, init_hook) \
52 static const struct rio_switch_ops __rio_switch_##name __used \
53 __section(section) = { vid, did, init_hook };
67 #define DECLARE_RIO_SWITCH_INIT(vid, did, init_hook) \
68 DECLARE_RIO_SWITCH_SECTION(.rio_switch_ops, vid##did, \
71 #define RIO_GET_DID(size, x) (size ? (x & 0xffff) : ((x & 0x00ff0000) >> 16))
72 #define RIO_SET_DID(size, x) (size ? (x & 0xffff) : ((x & 0x000000ff) << 16))