Is there any sample code of BDA driver for USB device?

I am trying to learn and write BDA for USB.
Really need some help from experts!
thanks