Port IO: Difference between revisions

m
[unchecked revision][unchecked revision]
(Wrote some info on a frequently asked question)
 
Line 7:
 
== Which ports belong to this device ==
There are three groups of devices, each requiring a different approach. The first group contains all PC-AT hardware, devices like [[PIT|timers]], [[PIC|interrupt controllers]], [[PS2Keyboard Controller|PS/2]] ports, [[Serial Ports|serial]] and parallel port, floppy and [[IDE|disk drive]], and the [[VGA Hardware|VGA]]. Back in the old days devices were attached to fixed addresses, and they remained there for backwards compatibility. The programming information will tell you the ports used.
 
The second group is plug-and-play hardware. Most modern cards and optional features are PCI, AGP or PCI express. At boot, their requirements are checked, and the BIOS will assign port ranges to each device. Enumerating the [[PCI]] bus will list all these devices, and can also tell you what ports (and memory mapped ranges) they use.
1,490

edits