mlen = (Offset + Len + 4095) & ~4096;
mlen = (Offset + Len + 4095) & ~4095;
int xf86ReadBIOS(Base, Offset, Buf, Len)unsigned long Base;unsigned long Offset;unsigned char *Buf;int Len;{	char *p;	int mlen;	mlen = (Offset + Len + 4095) & ~4096;	p = smem_create("BIOS-probe", (char *)Base, mlen, SM_READ);	if (p == NULL)	{		/* check if there is a stale segment around */		if (smem_remove("BIOS-probe") == 0) {		    ErrorF("xf86ReadBios: removed stale smem_ segment\n");		    p = smem_create("BIOS-probe", (char *)Base, mlen, SM_READ);		}		if (p == NULL) {		    ErrorF("xf86ReadBios: Failed to smem_create Base %x len %x %s \n",			    Base, mlen, strerror(errno));		    return(-1);		}	}	memcpy(Buf, p + Offset, Len);	smem_create(NULL, p, 0, SM_DETACH);	smem_remove("BIOS-probe");	return(Len);}