/* Returns 1 if bus reset already in progress, 0 otherwise.  */
int hpsb_bus_reset(struct hpsb_host *host)
/* Returns 1 if bus reset already in progress, 0 otherwise.  */
int hpsb_bus_reset(struct hpsb_host *host)
{
	if (host->in_bus_reset) {
		HPSB_NOTICE("%s called while bus reset already in progress",
			    __func__);
		return 1;
	}
	abort_requests(host);
	host->in_bus_reset = 1;
	host->irm_id = -1;
	host->is_irm = 0;
	host->busmgr_id = -1;
	host->is_busmgr = 0;
	host->is_cycmst = 0;
	host->node_count = 0;
	host->selfid_count = 0;
	return 0;
}