/* Returns total numbers of ports implemented by the switch device.  */
static u8 rio_get_swpinfo_tports(struct rio_mport *mport, u16 destid, u8 hopcount)
/* Returns total numbers of ports implemented by the switch device.  */
static u8 rio_get_swpinfo_tports(struct rio_mport *mport, u16 destid, u8 hopcount)
{
	u32 result;
	rio_mport_read_config_32(mport, destid, hopcount, RIO_SWP_INFO_CAR,
				 &result);
	return RIO_GET_TOTAL_PORTS(result);
}