I/O端口地址分配表(转)

(转)http://blog.csdn.net/zeflove/article/details/7337012

端口地址范围                     分配说明
0x000-0x01f                       8237A DMA控制器1
0x020-0x03f                       8259A 可编程中断控制器1
0x040-0x05f                       8253/8254|A 定时计数器
0x060-0x06f                       8042键盘控制器
0x070-0x07f                       访问CMOS RAM/实时时钟RTC(Real Time Clock)端口
0x080-0x09f                       DMA页面寄存器访问端口
0x0a0-0x0bf                       8259 可编程中断控制器2
0x0c0-0x0df                       8237A DMA控制器2
0x0f0-0x0ff                         协处理器访问端口
0x170-0x177                       IDE硬盘控制器1
0x1f0-0x1f7                        IDE硬盘控制器2
0x278-ox27f                       并行打印机端口2
0x2f8-0x2ff                         串行控制器2
0x378-0x38f                       并行打印机端口1 
0x3b0-0x3bf                       单色MDA显示控制器
0x3c0-0x3cf                        彩色CGA显示控制器
0x3d0-0x3df                       彩色EGA/VGA显示控制器
0x3f0-0x3f7                        软盘控制器
0x3f8-0x3ff                        串行控制器1

000-00F 8237 DMA controller:

000 Channel 0 address register
001 Channel 0 word count
002 Channel 1 address register
003 Channel 1 word count
004 Channel 2 address register
005 Channel 2 word count
006 Channel 3 address register
007 Channel 3 word count
008 Status/command register
009 Request register
00A Mask register
00B Mode register
00C Clear MSB/LSB flip flop
00D Master clear temp register
00E Clear mask register
00F Multiple mask register

010-01F 8237 DMA Controller (PS2 model 60 & 80), reserved (AT)

020-02F 8259A Master Programmable Interrupt Controller:

020 8259 Command port (see 8259)
021 8259 Interrupt mask register (see 8259)

030-03F 8259A Slave Programmable Interrupt Controller (AT,PS2)

040-05F 8253 or 8254 Programmable Interval Timer:

040 8253 channel 0, counter divisor
041 8253 channel 1, RAM refresh counter
042 8253 channel 2, Cassette and speaker functions
043 8253 mode control (see 8253)
044 8254 PS/2 extended timer
047 8254 Channel 3 control byte

060-067 8255 Programmalbe Peripheral Interface (PC,XT,PCjr):

060 8255 Port A keyboard input/output buffer (output PCjr)
061 8255 Port B output
062 8255 Port C input
063 8255 Command/Mode control register

060-06f 8042 Keyboard Controller (AT,PS2):

060 8042 Keyboard input/output buffer register
061 8042 system control port (for compatability with 8255)
064 8042 Keyboard command/status register

070 CMOS RAM/RTC, also NMI enable/disable (AT,PS2, see RTC)
071 CMOS RAM data (AT,PS2)

080 Manufacturer checkpoint port
080-090 DMA Page Registers:

081 High order 4 bits of DMA channel 2 address
082 High order 4 bits of DMA channel 3 address
083 High order 4 bits of DMA channel 1 address

090-097 POS/Programmable Option Select (PS2):

090 Central arbitration control Port
091 Card selection feedback
092 System control and status register
094 System board enable/setup register
095 Reserved
096 Adapter enable/setup register
097 Reserved

0A0 NMI Mask Register (PC,XT) (write 80h to enable NMI, 00h disable)
0A0-0BF Second 8259 Programmalbe Interrupt Controller (AT,PS2):

0A0 Second 8259 Command port (see 8259)
0A1 Second 8259 Interrupt mask register (see 8259)

0C0 TI SN76496 Programmable Tone/Noise Generator (PCjr)
0C0-0DF 8237 DMA Controller 2 (AT):

0C2 DMA channel 3 selector (see ports 6 & 82)

0E0-0EF Reserved

0F0-0FF Math Coprocessor (AT,PS2)
0F0-0F5 PCjr Disk Controller:

0F0 Disk Controller
0F2 Disk Controller control port
0F4 Disk Controller status register
0F5 Disk Controller data port

0F8-0FF Reserved for future microprocessor extensions

100-10F POS Programmable Option Select (PS2):

100 POS Register 0, Adapter ID byte (LSB)
101 POS Register 1, Adapter ID byte (MSB)
102 POS Register 2, Option select data byte 1
        Bit 0 is card enable (CDEN)
103 POS Register 3, Option select data byte 2
104 POS Register 4, Option select data byte 3
105 POS Register 5, Option select data byte 4
        Bit 7 is (-CHCK)
        Bit 6 is reserved
106 POS Register 6, subaddress extension (LSB)
107 POS Register 7, subaddress extension (MSB)

110-1EF System I/O channel

170-17F Fixed disk 1 (AT):

170 disk 1 data
171 disk 1 error
172 disk 1 sector count
173 disk 1 sector number
174 disk 1 cylinder low
175 disk 1 cylinder high
176 disk 1 drive/head
177 disk 1 status

1F0-1FF Fixed disk 0 (AT):

1F0 disk 0 data
1F1 disk 0 error
1F2 disk 0 sector count
1F3 disk 0 sector number
1F4 disk 0 cylinder low
1F5 disk 0 cylinder high
1F6 disk 0 drive/head
1F7 disk 0 status

200-20F Game Adapter

210-217 Expansion Card Ports (XT):

210 Write: latch expansion bus data
    read: verify expansion bus data
211 Write: clear wait,test latch
    Read: MSB of data address
212 Read: LSB of data address
213 Write: 0=enable, 1=/disable expansion unit
214-215 Receiver Card Ports
214 write: latch data, read: data
215 read: MSB of address, next read: LSB of address

21F Reserved

220-26F Reserved for I/O channel

270-27F Third parallel port (see PARALLEL PORT):

278 data port
279 status port
27A control port

280-2AF Reserved for I/O channel

2A2-2A3 MSM58321RS clock

2B0-2DF Alternate EGA, or 3270 PC video (XT, AT)

2E0 Alternate EGA/VGA

E1 GPIB Adapter (AT)

2E2-2E3 Data acquisition adapter (AT)

2E8-2EF COM4 non PS2 UART (Reserved by IBM) (see UART)

2F0-2F7 Reserved

2F8-2FF COM2 Second Asynchronous Adapter
Primary Asynchronous Adapter for PCjr

300-31F Prototype Experimentation Card
Periscope hardware debugger

320-32F Hard Disk Controller (XT):

320 Read from/Write to controller
321 Read: Controller Status, Write: controller reset
322 Write: generate controller select pulse
323 Write: Pattern to DMA and interrupt mask register
324 disk attention/status

330-33F Reserved for XT/370

340-35F Reserved for I/O channel

360-36F PC Network

370-377 Floppy disk controller (except PCjr):

372 Diskette digital output
374 Diskette controller status
375 Diskette controller data
376 Diskette controller data
377 Diskette digital input

378-37F Second Parallel Printer (see PARALLEL PORT):

378 data port
379 status port
37A control port

380-38F Secondary Binary Synchronous Data Link Control (SDLC) adapter:

380 On board 8255 port A, internal/external sense
381 On board 8255 port B, external modem interface
382 On board 8255 port C, internal control and gating
383 On board 8255 mode register
384 On board 8253 channel square wave generator
385 On board 8253 channel 1 inactivity time-out
386 On board 8253 channel 2 inactivity time-out
387 On board 8253 mode register
388 On board 8273 read: status; Write: Command
389 On board 8273 write: parameter; read: response
38A On board 8273 transmit interrupt status
38B On board 8273 receiver interrupt status
38C On board 8273 data

390-39F Cluster Adapter

3A0-3AF Primary Binary Synchronous Data Link Control (SDLC) adapter:

3A0 On board 8255 port A, internal/external sense
3A1 On board 8255 port B, external modem interface
3A2 On board 8255 port C, internal control and gating
3A3 On board 8255 mode register
3A4 On board 8253 counter 0 unused
3A5 On board 8253 counter 1 inactivity time-outs
3A6 On board 8253 counter 2 inactivity time-outs
3A7 On board 8253 mode register
3A8 On board 8251 data
3A9 On board 8251 command/mode/status register

3B0-3BF Monochrome Display Adapter (write only, see 6845):

3B0 port address decodes to 3B4
3B1 port address decodes to 3B5
3B2 port address decodes to 3B4
3B3 port address decodes to 3B5
3B4 6845 index register, selects which register [0-11h]
    is to be accessed through port 3B5
3B5 6845 data register [0-11h] selected by port 3B4,
    registers 0C-0F may be read. If a read occurs without
    the adapter installed, FFh is returned. (see 6845)
3B6 port address decodes to 3B4
3B7 port address decodes to 3B5
3B8 6845 Mode control register
3B9 reserved for color select register on color adapter
3BA status register (read only)
3BB reserved for light pen strobe reset

3BC-3BF Primary Parallel Printer Adapter (see PARALLEL PORT):

3BC parallel 1, data port
3BD parallel 1, status port
3BE parallel 1, control port

3C0-3CF EGA/VGA:

3C0 VGA attribute and sequencer register
3C1 Other video attributes
3C2 EGA, VGA, CGA input status 0
3C3 Video subsystem enable
3C4 CGA, EGA, VGA sequencer index
3C5 CGA, EGA, VGA sequencer
3C6 VGA video DAC PEL mask
3C7 VGA video DAC state
3C8 VGA video DAC PEL address
3C9 VGA video DAC
3CA VGA graphics 2 position
3CC VGA graphics 1 position
3CD VGA feature control
3CE VGA graphics index
3CF Other VGA graphics

3D0-3DF Color Graphics Monitor Adapter (ports 3D0-3DB are write only, see 6845):

3D0 port address decodes to 3D4
3D1 port address decodes to 3D5
3D2 port address decodes to 3D4
3D3 port address decodes to 3D5
3D4 6845 index register, selects which register [0-11h]
    is to be accessed through port 3D5
3D5 6845 data register [0-11h] selected by port 3D4,
    registers 0C-0F may be read. If a read occurs without
    the adapter installed, FFh is returned. (see 6845)
3D6 port address decodes to 3D4
3D7 port address decodes to 3D5
3D8 6845 Mode control register (CGA, EGA, VGA, except PCjr)
3D9 color select palette register (CGA, EGA, VGA, see 6845)
3DA status register (read only, see 6845, PCjr VGA access)
3DB Clear light pen latch (any write)
3DC Preset Light pen latch
3DF CRT/CPU page register (PCjr only)

3E8-3EF COM3 non PS2 UART (Reserved by IBM) (see UART)

3F0-3F7 Floppy disk controller (except PCjr):

3F0 Diskette controller status A
3F1 Diskette controller status B
3F2 controller control port
3F4 controller status register
3F5 data register (write 1-9 byte command, see INT 13)
3F6 Diskette controller data
3F7 Diskette digital input

3F8-3FF COM1 Primary Asynchronous Adapter (see UART)3F0 Diskette controller status A:

3220-3227 PS2 COM3
3228-322F PS2 COM4
4220-4227 PS2 COM5
4228-422F PS2 COM6
5220-5227 PS2 COM7
5228-522F PS2 COM8

时间: 2024-10-13 14:27:44

I/O端口地址分配表(转)的相关文章

著名端口对应表

著名端口 端口号码 / 层 名称 注释 1 tcpmux TCP 端口服务多路复用 5 rje 远程作业入口 7 echo Echo 服务 9 discard 用于连接测试的空服务 11 systat 用于列举连接了的端口的系统状态 13 daytime 给请求主机发送日期和时间 17 qotd 给连接了的主机发送每日格言 18 msp 消息发送协议 19 chargen 字符生成服务:发送无止境的字符流 20 ftp-data FTP 数据端口 21 ftp 文件传输协议(FTP)端口:有时被

windows常用端口对应表

端口概念 在网络技术中,端口(Port)大致有两种意思:一是物理意义上的端口,比如,ADSL Modem.集线器.交换机.路由器用于连接其他网络设备的接口,如RJ-45端口.SC端口等等.二是逻辑意义上的端口,一般是指TCP/IP协议中的端口,端口号的范围从0到65535,比如用于浏览网页服务的80端口,用于FTP服务的21端口等等.我们这里将要介绍的就是逻辑意义上的端口. 查看端口 在Windows 2000/XP/Server 2003中要查看端口,可以使用Netstat命令: 依次点击“开

20150222 IO端口映射和IO内存映射(详解S3C24XX_GPIO驱动)

20150222 IO端口映射和IO内存映射(详解S3C24XX_GPIO驱动) 2015-02-22 李海沿 刚刚我们实现了linux系统内存的分配,读写,释放功能,下面,我们一鼓作气将IO端口映射及IO内存映射搞定,加油! (一)地址的概念 1)物理地址:CPU地址总线传来的地址,由硬件电路控制其具体含义.物理地址中很大一部分是留给内存条中的内存的,但也常被映射到其他存储器上(如显存.BIOS等).在程序指令中的虚拟地址经过段映射和页面映射后,就生成了物理地址,这个物理地址被放到CPU的地址

[转]io端口和io内存

(一)地址的概念 1)物理地址:CPU地址总线传来的地址,由硬件电路控制其具体含义.物理地址中很大一部分是留给内存条中的内存的,但也常被映射到其他存储器上 (如显存.BIOS等).在程序指令中的虚拟地址经过段映射和页面映射后,就生成了物理地址,这个物理地址被放到CPU的地址线上.        物理地址空间,一部分给物理RAM(内存)用,一部分给总线用,这是由硬件设计来决定的,因此在32 bits地址线的x86处理器中,物理地址空间是2的32次方,即4GB,但物理RAM一般不能上到4GB,因为还

物理地址与虚拟地址、统一编址与独立编址以及 I/O 端口与 I/O 内存

[摘要]从CPU连出来一把线:数据总线.地址总线.控制总线,这把线上挂着N个接口,有相同的,有不同的,名字叫做存储器接口.中断控制接口.DMA接口.并行接口.串行接口.AD接口--一个设备要想接入,就用自己的接口和总线上的某个匹配接口对接--于是总线上出现了各种设备:内存.硬盘,鼠标.键盘,显示器-- 对于CPU而言,如果它要发数据到某个设备,其实是发到对应的接口,接口电路里有多个寄存器(也称为端口),访问设备实际上是访问相关的端口,所有的信息会由接口转给它的设备.那么CPU会准备数据到数据总线

<摘录>io端口和io内存

linux中的 IO端口映射和IO内存映射 (一)地址的概念 1)物理地址:CPU地址总线传来的地址,由硬件电路控制其具体含义.物理地址中很大一部分是留给内存条中的内存的,但也常被映射到其他存储器上 (如显存.BIOS等).在程序指令中的虚拟地址经过段映射和页面映射后,就生成了物理地址,这个物理地址被放到CPU的地址线上.        物理地址空间,一部分给物理RAM(内存)用,一部分给总线用,这是由硬件设计来决定的,因此在32 bits地址线的x86处理器中,物理地址空间是2的32次方,即4

【转】Linux设备驱动之I/O端口与I/O内存

原文网址:http://www.cnblogs.com/geneil/archive/2011/12/08/2281367.html 一.统一编址与独立编址 该部分来自于:http://blog.chinaunix.net/space.php?uid=21347954&do=blog&id=443670,感谢mason_hu的分享. 从CPU连出来一把线:数据总线.地址总线.控制总线,这把线上挂着N个接口,有相同的,有不同的,名字叫做存储器接口.中断控制接口.DMA接口.并行接口.串行接口

根据端口查找占用进程——API方法

转自http://blog.csdn.net/tht2009/article/details/40458425 在开发联网应用时,常常需要申请.绑定端口,这时就需判断哪些端口可用或指定端口是否被占用.在命令行窗口下,输入"netstat -ano"命令可以显示查看当前端口占用情况.如何在程序代码中实现这个功能呢? 当然也可以执行cmd命令,通过分析返回文本来判断.其实,Windows已经提供了获取当前网络连接状态的API,这些API都位于动态库Iphlpapi.dll中.跟查看端口情况

关于端口

在网络技术中,端口的英文是Port,它有有两种解释: 一是物理意义上的端口,比如,ADSL Modem.集线器.交换机.路由器用于连接其他网络设备的接口,如RJ-45端口.SC端口等等. 二是逻辑意义上的端口,一般是指TCP/IP协议中的端口,端口号的范围从0到65535,比浏览网页服务的80端口,用于FTP服务的21端口等. 比如21端口--FTP服务,25端口--SMTP(简单邮件传输协议)服务,80端口--HTTP服务,135端口--RPC(远程过程调用)服务,23端口--Telnet服务