/* Used during enumeration to read the Host Device ID Lock CSR on a RIO device. Returns the value of the lock register.  */
static u16 rio_get_host_deviceid_lock(struct rio_mport *port, u8 hopcount)
/* Used during enumeration to read the Host Device ID Lock CSR on a RIO device. Returns the value of the lock register.  */
static u16 rio_get_host_deviceid_lock(struct rio_mport *port, u8 hopcount)
{
	u32 result;
	rio_mport_read_config_32(port, RIO_ANY_DESTID(port->sys_size), hopcount,
				 RIO_HOST_DID_LOCK_CSR, &result);
	return (u16) (result & 0xffff);
}