Re: Enumeration of IDE controllers from kernel-mode
- From: "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 14 Dec 2005 09:09:20 -0800
you are asking for a failure, no matter what the scenario, especially if you
are polling the status port to see if a hotplug event occurred. what
happens when you read from the port when the IDE driver reads from it at the
same time?
anyways, install your driver as a device upper filter on the IDE
controller's FDO. when you process the start irp on the way back up the
stack, you can get the assigned resources and do whatever hackery you wish.
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Andrei Zakharov" <NOWHERE@xxxxxxxxxxx> wrote in message
news:OymhWhMAGHA.3872@xxxxxxxxxxxxxxxxxxxxxxx
>I have to check that with my own custom device that can be hot plugged into
> IDE slots is actually connected by reading IDE status port. I know it
> sounds
> ugly, but this works only in technological environment and in the future
> will be reworked, but in the moment it has to be done as it exists.
>
> Andrei.
>
> "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx> wrote in message
> news:%235sdmKMAGHA.3048@xxxxxxxxxxxxxxxxxxxxxxx
>> why do you need to get the controllers themselves? why espectially do
>> you
>> need their resources? are you going to access the resources from your
>> driver?
>>
>> d
>>
>> --
>> Please do not send e-mail directly to this alias. this alias is for
>> newsgroup purposes only.
>> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>>
>>
>> "Andrei Zakharov" <NOWHERE@xxxxxxxxxxx> wrote in message
>> news:O7%23DIWKAGHA.264@xxxxxxxxxxxxxxxxxxxxxxx
>> > Hi,
>> >
>> > I need to enumerate IDE controllers from kernel-mode with obtaining
> their
>> > resource usage, e.g. ports. The driver I called it from is not in the
>> > storage drivers stack.
>> > From user mode I can do that using SetupDiXXX functions (and as devcon
>> > sample does):
>> >
>> > SetupDiGetClassDevsEx(&GUID_DEVCLASS_HDC, ...
>> >
>> > In kernel-mode I tried to use IoGetDeviceInterface, but the only device
>> > interface class GUID I found was GUID_DEVINTERFACE_DISK, which returns
>> > IDE
>> > drives (PDOs?), not IDE controllers and in the same time
>> > IoGetDeviceProperty
>> > called upon GUID_DEVINTERFACE_DISK's interface always returns
>> > STATUS_INVALID_DEVICE_REQUEST.
>> >
>> > Does anybody have an idea of how this task can be implemented?
>> > Thanks in advance.
>> >
>> > Andrei.
>> >
>> >
>> >
>> >
>>
>>
>
>
.
- References:
- Re: Enumeration of IDE controllers from kernel-mode
- From: Doron Holan [MS]
- Re: Enumeration of IDE controllers from kernel-mode
- Prev by Date: Re: variable between user-mode and kernel-mode
- Next by Date: Re: variable between user-mode and kernel-mode
- Previous by thread: Re: Enumeration of IDE controllers from kernel-mode
- Next by thread: Re: Enumeration of IDE controllers from kernel-mode
- Index(es):
Relevant Pages
|