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

2002/0216/pc/usb.h (diff list | history)

2002/0215/sys/src/9/pc/usb.h:116,1222002/0216/sys/src/9/pc/usb.h:116,121 (short | long | prev)
Rename addusbtype to addusbhost. Remove Udev.root. Remove Usbhost.ctlrno. Formatting edits.
rsc Fri Mar 4 12:44:25 2005
2002/0215    
	int		state; 
	int		id; 
	uchar	port;		/* port number on connecting hub */ 
	uchar	root; 
	ulong	csp; 
	int		ls; 
	int		npt; 
2002/0215/sys/src/9/pc/usb.h:125,1382002/0216/sys/src/9/pc/usb.h:124,142
2002/0215    
	Udev*	next;		/* next device on this hub */ 
}; 
 
2002/0216    
/* 
 * One of these per active Host Controller Interface (HCI) 
 */ 
2002/0215    
struct Usbhost 
{ 
	ISAConf;			/* hardware info */ 
2002/0216    
	ISAConf;					/* hardware info */ 
	int	tbdf;					/* type+busno+devno+funcno */ 
2002/0215    
 
	int	ctlrno; 
	int	tbdf;			/* type+busno+devno+funcno */ 
2002/0216    
	QLock;					/* protects namespace state */ 
	int		idgen;			/* version number to distinguish new connections */ 
	Udev*	dev[MaxUsbDev];	/* device endpoints managed by this HCI */ 
2002/0215    
 
	void	(*init)(Usbhost*);	/* filled in by reset routine */ 
2002/0216    
	void	(*init)(Usbhost*); 
2002/0215    
	void	(*interrupt)(Ureg*, void*); 
 
	void	(*portinfo)(Usbhost*, char*, char*); 
2002/0215/sys/src/9/pc/usb.h:151,1542002/0216/sys/src/9/pc/usb.h:155,158
2002/0215    
	void	*ctlr; 
}; 
 
extern void addusbhost(char*, int(*)(Usbhost*)); 
2002/0216    
extern void addusbtype(char*, int(*)(Usbhost*)); 


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