	             NC USB DRIVER NOTES

(1) If you use BB's driver's inf file, you need to copy it to 
	%windir%\system32\drivers

(2) All bitstreams are exclusive access.
	
(3) In following senario, you might get more data than bitstream specified
    NC set read buffer size >= 64Byte
	Bitstream specify length < 48 Byte(64 - headsize)
	PC send data size is more than (bitstream length + headsize), which vilate protocol.

(4) Please also refer os/usb/test/test.c for USB initial sequence
    NC side:
	* Open /dev/usb 
	* Ioctl set device type to USB_DEV_MUX_BULK_ID
	* Open any bitstream. e.g. /dev/usb/mux/bulk/shell
	* Ioctl use USB_GET_DEV_STATUS cmd to polling USB status to USB_STATUS_READY
	which means PC driver and APP is in good state.
	
	PC side:
	* Windows do Ch9
	* Open device pipes.
	* Issue first packet(length=4, data is sequence number) on ctrl channel.
	* Read back(make sure NC is ok, and sequence number incremented by 1)
(5) close is partial close.
	if transaction is submit to hw(core), return error
	else cancel all pending transcation and return ok.
(6) For better performance, 
    * Header increased to 16 byte(cacheline aligned, only first 48Byte cp)
	* Header and Data are sending together
    Side-effect: PC ReadFile have to post 64 or length of "header+data" to 
	read a packet.
	
Open issues:
(1) Cable unplug test. 
(2) Suspend/Resume test
    (do we need remote wakeup? since everything are driven by PC side APP)
	Know issue:
	SIS chipset does not wakeup whenever NC get suspend intr. 
(3) FPGA board and bbrdb cannot co-exist.(kill debug)
(4) USB ananlyer and bbrdb cannot co-exist. (mouse freeze after 10 minutes)






