18 #define CPS_DEFAULT_ROUTE 0xde
19 #define CPS_NO_ROUTE 0xdf
21 #define IDTCPS_RIO_DOMAIN 0xf20020
24 idtcps_route_add_entry(
struct rio_mport *mport,
u16 destid,
u8 hopcount,
39 result = (0xffffff00 &
result) | (
u32)route_port;
48 idtcps_route_get_entry(
struct rio_mport *mport,
u16 destid,
u8 hopcount,
64 *route_port = (
u8)result;
71 idtcps_route_clr_table(
struct rio_mport *mport,
u16 destid,
u8 hopcount,
77 for (i = 0x80000000; i <= 0x800000ff;) {
93 idtcps_set_domain(
struct rio_mport *mport,
u16 destid,
u8 hopcount,
105 idtcps_get_domain(
struct rio_mport *mport,
u16 destid,
u8 hopcount,
116 *sw_domain = (
u8)(regval & 0xff);
121 static int idtcps_switch_init(
struct rio_dev *
rdev,
int do_enum)
123 pr_debug(
"RIO: %s for %s\n", __func__, rio_name(rdev));
124 rdev->
rswitch->add_entry = idtcps_route_add_entry;
125 rdev->
rswitch->get_entry = idtcps_route_get_entry;
126 rdev->
rswitch->clr_table = idtcps_route_clr_table;
127 rdev->
rswitch->set_domain = idtcps_set_domain;
128 rdev->
rswitch->get_domain = idtcps_get_domain;
134 rio_write_config_32(rdev,
137 rio_write_config_32(rdev,