Re: Again sending my question
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Here is the source code for Apple's mouse driver: -- Terry This is my question: I have looked into the IOHIDFamily and IOUSBFamily code. Regards Amy _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/tlambert%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... USB doesn't quite work the way you seem to think it does, and IOHIDFamily drivers don't handle interrupts directly, themselves; they end up dispatched as events to the specific class driver. <http://darwinsource.opendarwin.org/10.4.6.ppc/IOHIDFamily-172.8/IOHIDFamily/...
On Jun 27, 2006, at 3:51 AM, Amy wrote: Few days back I asked this question in darwin-driver and darwin-kernel list, but no one has replied. I was thinking that may be some one else has asked this question earlier, so people find this question as mere repetition. I searched the complete list, but of no use. May I know the reason why nobody has replied to this question, as I desperately waiting some one to answer this. I tried my best to know the follow of mouse click interrupt. Just for the understanding purpose, I want to write a mouse driver, where I can receive the mouse click interrupt. What I think is, there should be some IOInterruptEventSource within these family code which is receving the events and then it should give it to mouse driver. Now if extend my mouse driver from IOUSBHIDDriver, how it will receive those mouse click events for processing. Also I couldn't understand how the IOHIDFamily and IOUSBFamily is handling the interrupts. There is one event source callback doKickEventConsumer in IOHIDSystem, but the implementation of this callback doesn't tell any thing about how the events are propragated. Also there are IOInterruptEventSource in classes IOHIKeyBoardMapper and in USB controller class.But again how the events are given to the driver is not clear. It would be great if there is any detailed documentation for these families. This email sent to tlambert@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert