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

1998/0512/pc/vgaclgd542x.c (diff list | history)

1998/0312/sys/src/9/pc/vgaclgd542x.c:40,451998/0512/sys/src/9/pc/vgaclgd542x.c:40,77 (short | long | prev | next)
Add linear mode for 0x1013 card.
rsc Fri Mar 4 12:44:25 2005
1997/1101    
	unlock(&scr->devlock); 
1995/02021    
} 
 
1998/0512    
static ulong 
clgd542xlinear(VGAscr* scr, int* size, int* align) 
{ 
	ulong aperture, oaperture; 
	int oapsize, wasupamem; 
	Pcidev *p; 
 
	oaperture = scr->aperture; 
	oapsize = scr->apsize; 
	wasupamem = scr->isupamem; 
	if(wasupamem) 
		upafree(oaperture, oapsize); 
	scr->isupamem = 0; 
 
	if(p = pcimatch(nil, 0x1013, 0)){ 
		aperture = p->mem[0].bar & ~0x0F; 
		*size = p->mem[0].size; 
	} 
	else 
		aperture = 0; 
 
	aperture = upamalloc(aperture, *size, *align); 
	if(aperture == 0){ 
		if(wasupamem && upamalloc(oaperture, oapsize, 0)) 
			scr->isupamem = 1; 
	} 
	else 
		scr->isupamem = 1; 
 
	return aperture; 
} 
 
1997/0716    
static void 
1997/1101    
clgd542xdisable(VGAscr*) 
1997/0716    
{ 
1998/0312/sys/src/9/pc/vgaclgd542x.c:244,2501998/0512/sys/src/9/pc/vgaclgd542x.c:276,282
1997/0716    
	0, 
1997/1101    
	0, 
1995/02021    
	clgd542xpage, 
1997/1007    
	0, 
1998/0512    
	clgd542xlinear, 
1995/02021    
}; 
 
1997/1101    
VGAcur vgaclgd542xcur = { 


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