plan 9 kernel history: overview | file list | diff list

2001/0410/pc/vgacyber938x.c (diff list | history)

1999/1005/sys/src/9/pc/vgacyber938x.c:43,502001/0410/sys/src/9/pc/vgacyber938x.c:43,52 (short | long | prev | next)
1998/0205    
{ 
	ulong aperture, oaperture; 
	int oapsize, wasupamem; 
2001/0410    
	int osize; 
1998/0205    
	Pcidev *p; 
 
2001/0410    
	osize = *size; 
1998/0205    
	oaperture = scr->aperture; 
	oapsize = scr->apsize; 
	wasupamem = scr->isupamem; 
1999/1005/sys/src/9/pc/vgacyber938x.c:51,602001/0410/sys/src/9/pc/vgacyber938x.c:53,69
1998/0205    
	if(wasupamem) 
		upafree(oaperture, oapsize); 
	scr->isupamem = 0; 
2001/0410    
	scr->mmio = 0; 
1998/0205    
 
	if(p = pcimatch(nil, 0x1023, 0)){ 
		aperture = p->mem[0].bar & ~0x0F; 
		*size = p->mem[0].size; 
2001/0410    
		/* 
		 * Heuristic to detect the MMIO space.  We're flying blind 
		 * here, with only the XFree86 source to guide us. 
		 */ 
		if(p->mem[1].size == 0x20000) 
			scr->mmio = (ulong*)(p->mem[1].bar & ~0x0F); 
1998/0205    
	} 
	else 
		aperture = 0; 
1999/1005/sys/src/9/pc/vgacyber938x.c:67,722001/0410/sys/src/9/pc/vgacyber938x.c:76,86
1998/0205    
	else 
		scr->isupamem = 1; 
 
2001/0410    
	if(aperture) 
		addvgaseg("cyber938xscreen", aperture, osize); 
	if(scr->mmio) 
		addvgaseg("cyber938xmmio", (ulong)scr->mmio, 0x20000); 
 
1998/0205    
	return aperture; 
} 
 
1999/1005/sys/src/9/pc/vgacyber938x.c:191,1962001/0410/sys/src/9/pc/vgacyber938x.c:205,215
1998/0829    
	vgaxo(Crtx, 0x50, CursorON); 
1998/0205    
} 
 
2001/0410    
static void 
cyber938xdrawinit(VGAscr *scr) 
{ 
} 
 
1998/0205    
VGAdev vgacyber938xdev = { 
	"cyber938x", 
 
1999/1005/sys/src/9/pc/vgacyber938x.c:198,2032001/0410/sys/src/9/pc/vgacyber938x.c:217,223
1998/0205    
	0,				/* disable */ 
	cyber938xpage,			/* page */ 
	cyber938xlinear,		/* linear */ 
2001/0410    
	cyber938xdrawinit,		/* drawinit */ 
1998/0205    
}; 
 
VGAcur vgacyber938xcur = { 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)