tony <spamtrap@[EMAIL PROTECTED]
> wrote:
>
>I am just wondering, what are the ****t numbers through which we can
>access Hard disk using 'IN' and 'OUT' instructions?
First IDE controller is 1F0-1F7, 3F6 and 3F7; second IDE controller is
170-177, 376, and 377. The third and fourth controllers are not so
standardized.
>Do these ****t
>numbers remain same or they change from one operating system to
>another or from one platform to another?
This is hardware. It doesn't change based on the operating system.
>In memory mapped I/O, can we access hard disk using the same ****ts or
>operating system assigns arbitrary addresses to these ****ts?
You don't use memory mapped I/O to talk to an IDE controller. Further, if
an operating system is running, you cannot talk to these ****ts at all. The
operating system driver owns them.
If you really want to see sample code that talks to an IDE controller, you
should go fetch a Linux kernel, and look in the drivers/ide directory.
--
Tim Roberts, timr@[EMAIL PROTECTED]
& Boekelheide, Inc.


|