Re: Again sending my question
Re: Again sending my question
- Subject: Re: Again sending my question
- From: Terry Lambert <email@hidden>
- Date: Tue, 27 Jun 2006 14:09:55 -0700
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.
Here is the source code for Apple's mouse driver:
<http://darwinsource.opendarwin.org/10.4.6.ppc/IOHIDFamily-172.8/IOHIDFamily/IOHIDPointing.cpp
>
-- Terry
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.
This is my question:
Just for the understanding purpose, I want to write a mouse driver,
where I can receive the mouse click interrupt.
I have looked into the IOHIDFamily and IOUSBFamily code.
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.
Regards
Amy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden