Re: Clarification on IO Operations
From: Tauno Voipio (tauno.voipio_at_iki.fi.NOSPAM.invalid)
Date: 12/29/04
- Next message: Nick Andrew: "Re: Clarification on IO Operations"
- Previous message: Gary Kato: "Re: Clarification on IO Operations"
- In reply to: guruteck_at_gmail.com: "Re: Clarification on IO Operations"
- Next in thread: Gary Kato: "Re: Clarification on IO Operations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Dec 2004 09:37:42 GMT
guruteck@gmail.com wrote:
> Thanx a lot
> But Still I am not completely clear and having these doubts
>
> How Processor recognizes different IO devices based on Port
> numbers??
It does not - the I/O devices identify their
own port number (address) ranges from the bus, and
they perform port accesses only when the correct
port numbers are on the bus address lines.
> Where these port addresses (corresponding to All IO devices) are
> stored???
Nowhere. See above.
In Linux, the kernel stores a list of port
ranges it knows of. Have a look at /proc/ioports.
The list is built by device drivers reporting
the address ranges they are prepared to handle.
> Can a port shared between 2 devices???
Generally - no.
There are schemes of port overlays or
buried registers, but they are very special cases.
> How a hardware manufacturer come to know which port is free and can
> be used???
The port number assignments are ultimately
in the hands of the person putting a system
together - nobody else knows what I/O devices
are in the whole system (= Processor + I/O devices).
This is why many devices include a means of
changing the address range where the porta are
located.
In PC world, the different extensions to the
basic ISA bus have attacked this port (and
memory) assignment problem. The PnP (Plug and Play)
specification was the first attempt to automate
the address resolution. The PCI bus methods of
address negotiation can be regarded as a better
solution to this same problem.
> Also plz specify any link which can clarify this.I am clobbered by
> means of different processor manuals
The processor manuals do not explain the system-
level solutions to the resource assignment problem.
It includes memory range assignment, I/O assignment
and interupt line assignment.
-- Tauno Voipio tauno voipio (at) iki fi
- Next message: Nick Andrew: "Re: Clarification on IO Operations"
- Previous message: Gary Kato: "Re: Clarification on IO Operations"
- In reply to: guruteck_at_gmail.com: "Re: Clarification on IO Operations"
- Next in thread: Gary Kato: "Re: Clarification on IO Operations"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|