/* Returns port number being used to access the switch device.  */
static u8 rio_get_swpinfo_inport(struct rio_mport *mport, u16 destid, u8 hopcount)
/* Returns port number being used to access the switch device.  */
static u8 rio_get_swpinfo_inport(struct rio_mport *mport, u16 destid, u8 hopcount)
{
	u32 result;
	rio_mport_read_config_32(mport, destid, hopcount, RIO_SWP_INFO_CAR,
				 &result);
	return (u8) (result & 0xff);
}