Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB DeviceRequest



Hi Joe,

I don't know what the latest is with USB development, but I had to do this a couple of years ago. I must say first that you should really try and figure out if you can do whatever you need to asynchronously, it is *highly* recommended by Apple.

The issue here is that there is only one workloop per USB controller. If you sleep/delay/whatever on the USB workloop, you stop everything.

What I did was create an IOSyncer object (check out Darwin sources - xnu/iokit/Drivers/platform/drvApplePMU/IOPMUADBController.cpp for an example of how to use this), which for whatever reason, allows the USB workloop to continue working while your driver waits.

-- John


Is it safe to call USB device manager synchronously?
Can I use IOCommandGate to issue IOUSBDevice_>DeviceRequest?
When I tried to send a device request in my IOCommandGate Action,
the request will be implemented but I don't get an IOReturn and the driver will hang for ever...Any suggestions will be appreciated!!!!
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.

References: 
 >USB DeviceRequest (From: Joe Maloof <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.