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

2002/0416/port/devpnp.c (diff list | history)

2002/0416/sys/src/9/port/devpnp.c:3,132002/0427/sys/src/9/port/devpnp.c:3,12 (short | long | prev | next)
2001/0809    
 * 
 *	TODO 
 *		- implement PNP card configuration (setting io bases etc) 
 *		- implement PCI raw access to configuration space 
2002/0427    
 *		- write user program to drive PNP configuration... 
 *		- extend PCI raw access to configuration space (writes, byte/short access?) 
2001/0809    
 *		- implement PCI access to memory/io space/BIOS ROM 
 *		- use c->aux instead of performing lookup on each read/write 
 * 
 *	I also need to write the user program that'll drive the PNP configuration... 
2002/0427    
 *		- use c->aux instead of performing lookup on each read/write? 
2001/0809    
 */ 
2001/0728    
#include	"u.h" 
#include	"../port/lib.h" 
2002/0416/sys/src/9/port/devpnp.c:601,6062002/0427/sys/src/9/port/devpnp.c:600,606
2001/0731    
			if(!pnpscan(port, 0)) 
2001/0728    
				error("no cards found"); 
2001/0809    
			qunlock(&pnp); 
2002/0427    
			poperror(); 
2001/0728    
		} 
		else if(strncmp(buf, "debug ", 6) == 0) 
			pnp.debug = strtoul(buf+6, 0, 0); 
2002/0416/sys/src/9/port/devpnp.c:624,6452002/0427/sys/src/9/port/devpnp.c:624,631
2001/0731    
static int 
wrconfig(Card *c, char *cmd) 
{ 
	for(;;) { 
		while(*cmd == ' ' || *cmd == '\t' || *cmd == '\n') 
			cmd++; 
		if(*cmd == '\0') 
			break; 
		if(strncmp(cmd, "foo ", 4) == 0) { 
			print("pnp%d: got foo\n", c->csn); 
			cmd += 4; 
		} 
		else if(strncmp(cmd, "bar ", 4) == 0) { 
			print("pnp%d: got bar\n", c->csn); 
			cmd += 4; 
		} 
		else 
			return 0; 
	} 
2002/0427    
	/* This should implement setting of I/O bases, etc */ 
	USED(c, cmd); 
2001/0731    
	return 1; 
} 
 


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