Home > other >  Vxworks under usb driver development
Vxworks under usb driver development

Time:10-02

Want to implement virtual host access to the real u disk, u disk through the switch, and use libusb to operation,

Host the usb bus initialization is implemented, have to do now is to let the host to identify I plug in the usb flash drive, I directly in the usb connection, open interrupt response and then send interrupt, still cannot solve, ever under a great god help!

CodePudding user response:

Your USB driver support hot plug?

CodePudding user response:

Must be performed before all profile function function usbdInitialize (), there are two kinds of call way:

(1) the traditional "startup" initialization, execution sequence and its meaning is as follows:

A. UsbdInitialize ();

B. UsbdPciClassFind () : positioning a USB main controller;

C. UsbdPeiConfigHeaderGet () : read USB main controller configuration head;

D. HCD usbdHedAttaeh () : connection, as a specific master controller:

E. Call the USB class driver initialization entry point;

F. USB class driver call usbdlnitialize (),



(2) "hot-swappable" calls, execution sequence and its meaning is as follows:

The Boot Code calls:

A. USB class driver initialization entry point;

B. USB class driver call usbdlnitialize ();



Hot - Swap code calls:
C. Hot Swap - identify USB main controller connected or disconnected;

D. Usbdlnitialize ();

E. UsbdPciConfigHeaderGet () : read USB main controller configuration head;

F. HCD UsbdHedAttaeh () : connection, as a specific master controller,

The original link: https://blog.csdn.net/mao0514/article/details/21073987
  • Related