Re: Request for help

Eric W. Biederman (ebiederman@lnxi.com)
02 Jun 2003 11:49:01 -0600


I am CC'ing linux-kernel as that is the general kernel list. There
may be something even more focused on IDE issues but I am
not aware of it.

"ganesh_borse" <ganesh_borse@indiatimes.com> writes:

> Hi,
>
>
> I would like to request for a little help related to IDE controllers.
>
>
> I am trying to develop a device drive code for listing the devices connected to
> a ide controller at the time of kernel booting.
>
>
>
> Is there any way to get which channels on ide controller has got devices and
> which devices?

Yes. But it is baroque.

> This I am trying to get even before the normal ide device driver
> has been setup. Are there ide controller commands to get this info?

Not exactly. The method is essentially you ping the drives to see
if they are there.

> Or is this
> info stored in registers of ide-controllers?

Nope this information is not stored in registers.

> For this do we need to write
> assembly instructions on linux?

No.

But there is also nothing that allows you to force the module
order within the kernel. So there are no guarantees you will
come before a normal IDE driver. I assume from the questions
you intend to have this working in the linux kernel.

Eric

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/