val64 = MC_RLDRAM_TEST_MODE; writeq(val64, &bar0->mc_rldram_test_ctrl);  val64 |= MC_RLDRAM_TEST_MODE | MC_RLDRAM_TEST_GO; writeq(val64, &bar0->mc_rldram_test_ctrl); 
val64 = MC_RLDRAM_TEST_MODE | MC_RLDRAM_TEST_GO; SPECIAL_REG_WRITE(val64, &bar0->mc_rldram_test_ctrl, LF); 
static int s2io_rldram_test(nic_t * sp, uint64_t * data){	XENA_dev_config_t __iomem *bar0 = sp->bar0;	u64 val64;	int cnt, iteration = 0, test_pass = 0;	val64 = readq(&bar0->adapter_control);	val64 &= ~ADAPTER_ECC_EN;	writeq(val64, &bar0->adapter_control);	val64 = readq(&bar0->mc_rldram_test_ctrl);	val64 |= MC_RLDRAM_TEST_MODE;	writeq(val64, &bar0->mc_rldram_test_ctrl);	val64 = readq(&bar0->mc_rldram_mrs);	val64 |= MC_RLDRAM_QUEUE_SIZE_ENABLE;	SPECIAL_REG_WRITE(val64, &bar0->mc_rldram_mrs, UF);	val64 |= MC_RLDRAM_MRS_ENABLE;	SPECIAL_REG_WRITE(val64, &bar0->mc_rldram_mrs, UF);	while (iteration < 2) {		val64 = 0x55555555aaaa0000ULL;		if (iteration == 1) {			val64 ^= 0xFFFFFFFFFFFF0000ULL;		}		writeq(val64, &bar0->mc_rldram_test_d0);		val64 = 0xaaaa5a5555550000ULL;		if (iteration == 1) {			val64 ^= 0xFFFFFFFFFFFF0000ULL;		}		writeq(val64, &bar0->mc_rldram_test_d1);		val64 = 0x55aaaaaaaa5a0000ULL;		if (iteration == 1) {			val64 ^= 0xFFFFFFFFFFFF0000ULL;		}		writeq(val64, &bar0->mc_rldram_test_d2);		val64 = (u64) (0x0000003fffff0000ULL);		writeq(val64, &bar0->mc_rldram_test_add);		val64 = MC_RLDRAM_TEST_MODE;		writeq(val64, &bar0->mc_rldram_test_ctrl);		val64 |=		    MC_RLDRAM_TEST_MODE | MC_RLDRAM_TEST_WRITE |		    MC_RLDRAM_TEST_GO;		writeq(val64, &bar0->mc_rldram_test_ctrl);		for (cnt = 0; cnt < 5; cnt++) {			val64 = readq(&bar0->mc_rldram_test_ctrl);			if (val64 & MC_RLDRAM_TEST_DONE)				break;			msleep(200);		}		if (cnt == 5)			break;		val64 = MC_RLDRAM_TEST_MODE;		writeq(val64, &bar0->mc_rldram_test_ctrl);		val64 |= MC_RLDRAM_TEST_MODE | MC_RLDRAM_TEST_GO;		writeq(val64, &bar0->mc_rldram_test_ctrl);		for (cnt = 0; cnt < 5; cnt++) {			val64 = readq(&bar0->mc_rldram_test_ctrl);			if (val64 & MC_RLDRAM_TEST_DONE)				break;			msleep(500);		}		if (cnt == 5)			break;		val64 = readq(&bar0->mc_rldram_test_ctrl);		if (val64 & MC_RLDRAM_TEST_PASS)			test_pass = 1;		iteration++;	}	if (!test_pass)		*data = 1;	else		*data = 0;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ad4ebed00fbf570411edbf6eb6c391e16b71df25/s2io.c/clean/drivers/net/s2io.c