Re: Enumeration of IDE controllers from kernel-mode



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.
>> >
>> >
>> >
>> >
>>
>>
>
>


.



Relevant Pages

  • Re: Virtual COM port with UMDF
    ... Please do not send e-mail directly to this alias. ... I would like to debug into the SerialPort component of .NET, ... >> you need to write the port name to HKLM\HARDWARE\DEVICEMAP\SERIALCOMM. ... >> assigned to your driver instead of a hardcoded name. ...
    (microsoft.public.development.device.drivers)
  • [PATCH] add default ARM/ARM26 IDE host driver
    ... * ARM/ARM26 default IDE host driver ... * This registers the standard ports for this architecture with the IDE ... * Set up a hw structure for a specified data port, ...
    (Linux-Kernel)
  • Re: Transferring to a new computer. Will this work?
    ... We haven't come across *any* new motherboard that didn't contain at least ... "It is very important to notice that the single ATA/133 port available on ... means that if you still have a parallel IDE optical drive it will only be ... recognized on Windows after you install JMicron's driver. ...
    (microsoft.public.windowsxp.general)
  • Re: Virtual COM port with UMDF
    ... Please do not send e-mail directly to this alias. ... assigned to your driver instead of a hardcoded name. ... > I have created a UMDF driver, which creates a virtual serial com port> in ... > I want to test this com port with a .NET application using the> SerialPort ...
    (microsoft.public.development.device.drivers)
  • Re: disk.sys/partmgr.sys
    ... Atapi is the storage port bus driver and the FD for the _IDE channel_. ... but only in PIO mode using READ_PORT_BUFFER_USHORT on port 0x1f0. ... To use DMA, Atapi needs the support from the PDO below it (IDE channel PDO), which is created by the PCIIDEX bus driver. ...
    (microsoft.public.development.device.drivers)

Quantcast