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

1990/0826/power/main.c (diff list | history)

1990/0825/sys/src/9/power/main.c:34,391990/0826/sys/src/9/power/main.c:34,44 (short | long | prev | next)
1990/0504    
 */ 
char sysname[64]; 
 
1990/0826    
/* 
 *  IO board type 
 */ 
int ioid; 
 
1990/0227    
void 
main(void) 
{ 
1990/0825/sys/src/9/power/main.c:53,641990/0826/sys/src/9/power/main.c:58,70
1990/0227    
	chaninit(); 
	clockinit(); 
	alarminit(); 
	io2init(); 
1990/0826    
	ioboardinit(); 
1990/0227    
	chandevreset(); 
	streaminit(); 
1990/0718    
	sysloginit(); 
1990/0227    
	pageinit(); 
	userinit(); 
1990/0826    
	ioboardid(); 
1990/0227    
	launchinit(); 
	schedinit(); 
} 
1990/0825/sys/src/9/power/main.c:100,1131990/0826/sys/src/9/power/main.c:106,140
1990/0227    
		*p++ = *q++; 
} 
 
1990/0826    
void 
ioboardid(void) 
{ 
	switch(ioid){ 
	case IO2R1: 
		print("IO2 revision 1\n"); 
		break; 
	case IO2R2: 
		print("IO2 revision 2\n"); 
		break; 
	case IO3R1: 
		print("IO3 revision 1\n"); 
		break; 
	default: 
		print("unknown IO board\n"); 
		break; 
	} 
} 
 
1990/0227    
/* 
 *  We have to program both the IO2 board to generate interrupts 
 *  and the SBCC on CPU 0 to accept them. 
 */ 
void 
io2init(void) 
1990/0826    
ioboardinit(void) 
1990/0227    
{ 
	long i; 
1990/0826    
 
	ioid = *IOID; 
1990/0227    
 
	/* 
	 *  reset VME bus (MODEREG is on the IO2) 


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