⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qemu_ioport.txt

📁 本资料解释了部分Qemu和kvm的IO port指令
💻 TXT
📖 第 1 页 / 共 5 页
字号:
010F	w	leftmost character on display010E	w	second character....	w0108	w	eighth character-------------------------------------------------------------------------------0130-013F ----	CompaQ SCSI adapter. alternate address at 0330-------------------------------------------------------------------------------0130-0133 ----	Adaptec 154xB/154xC SCSI adapter.		alternate address at 0134, 0230, 0234, 0330 and 0334-------------------------------------------------------------------------------0134-0137 ----	Adaptec 154xB/154xC SCSI adapter.		alternate address at 0130, 0230, 0234, 0330 and 0334-------------------------------------------------------------------------------0138-013F ----	PC radio by CoZet Info Systems		The I/O address range is dipswitch selectable from:		   038-03F and 0B0-0BF		   078-07F and 0F0-0FF		   138-13F and 1B0-1BF		   178-17F and 1F0-1FF		   238-23F and 2B0-2BF		   278-27F and 2F0-2FF		   338-33F and 3B0-3BF		   378-37F and 3F0-3FF		All of these addresses show a readout of FF in initial state.		Once started, all of the addresses show	 FB, whatever might		happen.-------------------------------------------------------------------------------0140-014F ----	SCSI (alternate Small Computer System Interface) adapter		(1st at 0340-034F)-------------------------------------------------------------------------------0140-0157 ----	RTC (alternate Real Time Clock for XT)	 (1st at 0340-0357)-------------------------------------------------------------------------------015F	  ----	ARTEC Handyscanner A400Z.  alternate address at 35F.-------------------------------------------------------------------------------0170-0177 ----	HDC 2	(2nd Fixed Disk Controller)   same as 01Fx (ISA, EISA)-------------------------------------------------------------------------------0178-0179 ----	Power Management0178	w	index selection for data port0179	r/w	power management data-------------------------------------------------------------------------------0178-017F ----	PC radio by CoZet Info Systems		The I/O address range is dipswitch selectable from:		   038-03F and 0B0-0BF		   078-07F and 0F0-0FF		   138-13F and 1B0-1BF		   178-17F and 1F0-1FF		   238-23F and 2B0-2BF		   278-27F and 2F0-2FF		   338-33F and 3B0-3BF		   378-37F and 3F0-3FF		All of these addresses show a readout of FF in initial state.		Once started, all of the addresses show	 FB, whatever might		happen.-------------------------------------------------------------------------------01E8-01EF ----	System Control. Laptop chipset: Headland HL21 & Acer M510501ED	r/w	select internal register. Data to/from 01EF01EE	r01EF	r/w	reg.		5  = 1000xxxx  for low CPU clock speed (4MHz on Morse/Mitac)		   = 0xxxxxxx  for high CPU clock speed (16MHz on Morse/Mitac)-------------------------------------------------------------------------------01F0-01F7 ----	HDC 1	(1st Fixed Disk Controller)   same as 017x (ISA, EISA)01F0	r/w	data register01F1	r	error register		diagnostic mode errors:		 bit 7-3	reserved		 bit 2-1 = 001	no error detected			 = 010	formatter device error			 = 011	sector buffer error			 = 100	ECC circuitry error			 = 101	controlling microprocessor error		 operation mode:		  bit 7	 = 1  bad block detected			 = 0  block OK		  bit 6	 = 1  uncorrectable ECC error			 = 0  no error		  bit 5	      reserved		  bit 4	 = 1  ID found			 = 0  ID not found		  bit 3	      reserved		  bit 2	 = 1  command completed			 = 0  command aborted		  bit 1	 = 1  track 000 not found			 = 0  track 000 found		  bit 0	 = 1  DAM not found			 = 0  DAM found (CP-3022 always 0)01F1	w	WPC/4  (Write Precompensation Cylinder divided by 4)01F2	r/w	sector count01F3	r/w	sector number01F4	r/w	cylinder low01F5	r/w	cylinder high01F6	r/w	drive/head		 bit 7	 = 1		 bit 6	 = 0		 bit 5	 = 1		 bit 4	 = 0  drive 0 select			 = 1  drive 1 select		 bit 3-0      head select bits01F7	r	status register		 bit 7 = 1  controller is executing a command		 bit 6 = 1  drive is ready		 bit 5 = 1  write fault		 bit 4 = 1  seek complete		 bit 3 = 1  sector buffer requires servicing		 bit 2 = 1  disk data read successfully corrected		 bit 1 = 1  index - set to 1 each disk revolution		 bit 0 = 1  previous command ended in an error01F7	w	command register		commands:		 98 E5	 check power mode	(IDE)		 90	 execute drive diagnostics		 50	 format track		 EC	 identify drive		(IDE)		 97 E3	 idle			(IDE)		 95 E1	 idle immediate		(IDE)		 91	 initialize drive parameters		 1x	 recalibrate		 E4	 read buffer		(IDE)		 C8	 read DMA with retry	(IDE)		 C9	 read DMA without retry (IDE)		 C4	 read multiplec		(IDE)		 20	 read sectors with retry		 21	 read sectors without retry		 22	 read long with retry		 23	 read long without retry		 40	 read verify sectors with retry		 41	 read verify sectors without retry		 7x	 seek		 EF	 set features		(IDE)		 C6	 set multiple mode	(IDE)		 99 E6	 set sleep mode		(IDE)		 96 E2	 standby		(IDE)		 94 E0	 standby immediate	(IDE)		 E8	 write buffer		(IDE)		 CA	 write DMA with retry	(IDE)		 CB	 write DMA with retry	(IDE)		 C5	 write multiple		(IDE)		 E9	 write same		(IDE)		 30	 write sectors with retry		 31	 write sectors without retry		 32	 write long with retry		 33	 write long without retry		 3C	 write verify		(IDE)		 9A	 vendor unique		(IDE)		 C0-C3	 vendor unique		(IDE)		 8x	 vendor unique		(IDE)		 F0-F4	 EATA standard		(IDE)		 F5-FF	 vendor unique		(IDE)-------------------------------------------------------------------------------01F8	  ----	???01F8	r/w	???		bit 0: A20 gate control (set = A20 enabled, clear = disabled)-------------------------------------------------------------------------------01F9-01FF ----	PC radio by CoZet Info Systems		The I/O address range is dipswitch selectable from:		   038-03F and 0B0-0BF		   078-07F and 0F0-0FF		   138-13F and 1B0-1BF		   178-17F and 1F0-1FF		   238-23F and 2B0-2BF		   278-27F and 2F0-2FF		   338-33F and 3B0-3BF		   378-37F and 3F0-3FF		All of these addresses show a readout of FF in initial state.		Once started, all of the addresses show	 FB, whatever might		happen.-------------------------------------------------------------------------------0200-020F ----	Game port reserved I/O address space  0200-0207 ----	Game port, eight identical addresses on some boards0201	r	read joystick position and status		 bit 7	status B joystick button 2 / D paddle button		 bit 6	status B joystick button 1 / C paddle button		 bit 5	status A joystick button 2 / B paddle button		 bit 4	status A joystick button 1 / A paddle button		 bit 3	B joystick Y coordinate	   / D paddle coordinate		 bit 2	B joystick X coordinate	   / C paddle coordinate		 bit 1	A joystick Y coordinate	   / B paddle coordinate		 bit 0	A joystick X coordinate	   / A paddle coordinate	w	fire joysticks four one-shots-------------------------------------------------------------------------------0200-02FF ----	Sunshine uPW48, programmer for EPROM version CPU's 8748/8749		(4 bit DIP switch installable in the range 20x-2Fx)0200-0203	adresses of the 8255 on the uPW480208-020B	adresses of ??? on the uPW48 (all showing zeros)-------------------------------------------------------------------------------0210-0217 ----	Expansion unit (XT)0210	w	latch expansion bus data	r	verify expansion bus data0211	w	clear wait, test latch	r	High byte data address0212	r	Low byte data address0213	w	0=enable,  1=disable expansion unit0214	w	latch data  (receiver card port)	r	read data   (receiver card port)0215	r	High byte of address, then Low byte   (receiver card port)------------------------------------------------------------------------------0220-0223 ---- Sound Blaster / Adlib port0220	r/w	Left speaker -- Status / Address port0221	w	Left speaker -- Data port0222	r/w	Right speaker -- Status / Address port		Address:		    01 -- Enable waveform control		    02 -- Timer #1 data		    03 -- Timer #2 data		    04 -- Timer control flags		    08 -- Speech synthesis mode		 20-35 -- Amplitude Modulation / Vibrato		 40-55 -- Level key scaling / Total level		 60-75 -- Attack / Decay rate		 80-95 -- Sustain / Release rate		 A0-B8 -- Octave / Frequency Number		 C0-C8 -- Feedback / Algorithm		 E0-F5 -- Waveform Selection0223	w	Right speaker -- Data portSeeAlso: 0388-0389-------------------------------------------------------------------------------0220-0227 ----	Soundblaster PRO and SSB 16 ASP-------------------------------------------------------------------------------0220-022F ----	Soundblaster PRO 2.0-------------------------------------------------------------------------------0220-022F ----	Soundblaster PRO 4.00220	r	left FM status port0220	w	left FM music register address port (index)0221	r/w	left FM music data port0222	r	right FM status port0222	w	right FM music register address port (index)0223	r/w	right FM music data port0224	w	mixer register address port (index)0225	r/w	mixer data port0226	w	DSP reset0228	r	FM music status port0228	w	FM music register address port (index)0229	w	FM music data port022A	r	DSP read data (voice I/O and Midi)022C	w	DSP write data / write command022C	r	DSP write buffer status (bit 7)022E	r	DSP data available status (bit 7)		The FM music is accessible on 0388/0389 for compatibility.-------------------------------------------------------------------------------0230-0233 ----	Adaptec 154xB/154xC SCSI adapter.		alternate address at 0130, 0134, 0230, 0330 and 0334-------------------------------------------------------------------------------0234-0237 ----	Adaptec 154xB/154xC SCSI adapter.		alternate address at 0130, 0134, 0230, 0330 and 0334-------------------------------------------------------------------------------0240-024F ----	Gravis Ultra Sound by Advanced Gravis	 The I/O address range is dipswitch selectable from:	   0200-020F and 0300-030F	   0210-021F and 0310-031F	   0220-022F and 0320-032F	   0230-023F and 0330-033F	   0240-024F and 0340-034F	   0250-025F and 0350-035F	   0260-026F and 0360-036F	   0270-027F and 0370-037F0240	w	Mix Control register		 bit 6	   Control Register Select (see 024B)		 bit 5	   Enable MIDI Loopback		 bit 4	   Combine GF1 IRQ with MIDI IRQ		 bit 3	   Enable Latches		 bit 2	   Enable MIC IN		 bit 1	   Disable LINE OUT		 bit 0	   Disable LINE IN0241	r	Read Data	w	Trigger Timer0246	r	IRQ Status Register		 bit 7	   DMA TC IRQ		 bit 6	   Volume Ramp IRQ		 bit 5	   WaveTable IRQ		 bit 3	   Timer 2 IRQ		 bit 2	   Timer 1 IRQ		 bit 1	   MIDI Receive IRQ		 bit 0	   MIDI Transmit IRQ0248	r/w	Timer Control Reg		 Same a ADLIB Board (look at 0200)0249	w	Timer Data		 bit 7	   Reset Timr IRQ		 bit 6	   Mask Timer 1		 bit 5	   Mask Timer 2		 bit 1	   Timer 2 Start		 bit 0	   Timer 1 Start024B	w	IRQ Control Register (0240 bit 6 = 1)		 bit 6	   Combine Both IRQ		 bit 5-3   MIDI IRQ Selector			   = 000  No IRQ			   = 001  IRQ 2			   = 010  IRQ 5			   = 011  IRQ 3			   = 100  IRQ 7			   = 101  IRQ 11			   = 110  IRQ 12			   = 111  IRQ 15		 bit 2-0   GF1 IRQ Selector			   = 000  No IRQ			   = 001  IRQ 2			   = 010  IRQ 5			   = 011  IRQ 3			   = 100  IRQ 7			   = 101  IRQ 11			   = 110  IRQ 12			   = 111  IRQ 15		DMA Control Register (0240 bit 6 = 0)		 bit 6	   Combine Both IRQ		 bit 5-3   DMA Select Register 2			   = 000  No DMA			   = 001  DMA 1			   = 010  DMA 3			   = 011  DMA 5			   = 100  DMA 6			   = 101  DMA 7 		 bit 2-0   DMA Select Register 1			   = 000  No DMA			   = 001  DMA 1			   = 010  DMA 3			   = 011  DMA 5			   = 100  DMA 6			   = 101  DMA 7 024F	r/w	Register Controls (rev 3.4+)SeeAlso: 0340-034F, 0746   -------------------------------------------------------------------------------0240-0257 ----	RTC (alternate Real Time Clock for XT)	 (1st at 0340-0357)		(used by TIMER.COM v1.2 which is the 'standard' timer program)-------------------------------------------------------------------------------0258-025F ----	Intel Above Board

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -