git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1225 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
		
			
				
	
	
		
			23 lines
		
	
	
		
			354 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			354 B
		
	
	
	
		
			C
		
	
	
	
	
	
static void outb(unsigned char value, unsigned short port)
 | 
						|
{
 | 
						|
	__builtin_outb(value, port);
 | 
						|
}
 | 
						|
 | 
						|
static void pnp_write_config(void)
 | 
						|
{
 | 
						|
	unsigned char port;
 | 
						|
	unsigned char value;
 | 
						|
	unsigned char reg;
 | 
						|
	port = 0x2e;
 | 
						|
	value = 0x03;
 | 
						|
	reg = 0x07;
 | 
						|
	outb(reg, port);
 | 
						|
	outb(value, port +1);
 | 
						|
	outb(value -1, port +2);
 | 
						|
}
 | 
						|
 | 
						|
static void main(void)
 | 
						|
{
 | 
						|
	pnp_write_config();
 | 
						|
}
 |