[comp.sys.ibm.pc] Need Port Listing for IBM-PC/XT and IBM-PC/AT

mdc@spt.entity.com (Marty Connor) (10/11/88)

...
Does anyone have or know where I can find a listing of the ports on an
IBM-PC? 

I am trying to do DMA, and have had a lot of trouble finding
information on exactly what port is wired to what device.

Some books have vague stuff about "well, the first fifteen ports are
wired someplace on the DMA controller chip...", but I could really use
a nice list that said stuff like:

  "Port 0x0a is wired to the Mode Register of the 8237 DMA Controller Chip" 

Also if you have a nice short DMA example that explains the sequence
of operations fairly explicitly, I could use that too.  I disassembled
part of the BIOS and *think* I understand, but, some supporting
evidence would be nice.

Thanks for any help.
-- 
----------------
Marty Connor
Director of Innovation, The Entity
mdc@mcp.entity.com, ...{harvard|uunet}!mit-eddie!spt!mcp!mdc

mguyott@mirror.TMC.COM (Marc Guyott) (10/12/88)

In article <186@spt.entity.com> mdc@spt.entity.com (Marty Connor) writes:
>
>...
>Does anyone have or know where I can find a listing of the ports on an
>IBM-PC? 
>

The following is from "The Peter Norton Programmer's Guide to the IBM PC":

Figure 2-9.  The ports and port addresses used in the PCjr, the PC/XT, and
the AT computers.

Description                                        Range
                                     PCjr         PC/XT           AT
DMA Controller (8237)                n/a         000-00F        000-01F
Interrupt controller (8259)        020-027       020-021        020-03F
Timer (8253;8254.2 in AT)          040-047       040-043        040-05F
PPI (8255)                         060-067       060-063          n/a
Keyboard (8042)                      n/a           n/a          060-06F
DMA page register (74LS612)          n/a         080-083        080-09F
NMI mask register                  0A0-0A7         0A           070-07F
Interrupt controller 2 (8259)        n/a           n/a          0A0-0BF
Sound generator (SN76496N)         0C0-0C7         n/a            n/a
DMA controller 2 (8237)              n/a           n/a          0C0-0DF
Clear/reset math coprocessor         n/a           n/a          0F0-0F1
Math coprocessor                     n/a           n/a          0F8-0FF
Joystick (game controller)         200-207       200-20F        200-207
Expansion unit                       n/a         210-217          n/a
Parallel printer (secondary)         n/a           n/a          278-27F
Serial port (primary)              2F8-2FF       3F8-3FF        3F8-3FF
Serial port (secondary)              n/a         2F8-2FF        2F8-2FF
Prototype card                       n/a         300-31F        300-31F
Fixed disk                           n/a         320-32F        1F0-1F8
Parallel printer (primary)           n/a         378-37F        378-37F
SDLC (secondary BISYNC in AT only)   n/a         380-38F        380-38F
BISYNC (primary)                     n/a           n/a          3A0-3AF
Monochrome adapter/printer           n/a         3B0-3BF        3B0-3BF
Color/graphics adapter               n/a         3D0-3DF        3D0-3DF
Diskette controller                0F0-0FF       3F0-3F7        3F0-3F7

----
       ... I never saw the morning until I stayed up all night ...
                               Tom Waits

Marc Guyott                                         mguyott@mirror.TMC.COM
{mit-eddie, pyramid, harvard!wjh12, xait, datacube}!mirror!mguyott
Mirror Systems	Cambridge, MA  02140                617/661-0777