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

2001/1023/alphapc/pci.c (diff list | history)

2001/0801/sys/src/9/alphapc/pci.c:16,212001/1023/sys/src/9/alphapc/pci.c:16,31 (short | long | prev | next)
1999/0415    
	MaxUBN		= 255, 
}; 
 
2001/1023    
enum 
{					/* command register */ 
	IOen		= (1<<0), 
	MEMen		= (1<<1), 
	MASen		= (1<<2), 
	MemWrInv	= (1<<4), 
	PErrEn		= (1<<6), 
	SErrEn		= (1<<8), 
}; 
 
1999/0415    
static Lock pcicfglock; 
static Lock pcicfginitlock; 
static int pcicfgmode = -1; 
2001/0801/sys/src/9/alphapc/pci.c:388,3932001/1023/sys/src/9/alphapc/pci.c:398,413
1999/0422    
	int pcr; 
 
	pcr = pcicfgr16(p, PciPCR); 
	pcr |= 0x0004; 
2001/1023    
	pcr |= MASen; 
	pcicfgw16(p, PciPCR, pcr); 
} 
 
void 
pciclrbme(Pcidev* p) 
{ 
	int pcr; 
 
	pcr = pcicfgr16(p, PciPCR); 
	pcr &= ~MASen; 
1999/0422    
	pcicfgw16(p, PciPCR, pcr); 
} 


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