/* Create vme slave window (access: vme -> crcsr)  */
int tsi148_vme_crcsr_window(unsigned int vmeAddr)
/* Create vme slave window (access: vme -> crcsr)  */
int tsi148_vme_crcsr_window(unsigned int vmeAddr)
{
	int result;
	unsigned int ctl;
	result = 0;
	if (NULL == dev) {
		result = 1;
	} else {
		__raw_writel(htonl(vmeAddr), &dev->uregs->crol);
		__raw_writel(0x00000000, &dev->uregs->crou);
		ctl = 0x00000080;
		__raw_writel(htonl(ctl), &dev->uregs->crat);
	}
	return result;
}