qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] ESP: misc fixes


From: Hervé Poussineau
Subject: [Qemu-devel] [PATCH] ESP: misc fixes
Date: Sat, 29 Nov 2008 16:54:19 +0100
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)

Hi,

Attached patches fix a few problems with ESP scsi card emulation.


Misc fixes (esp_1_misc.diff)
- Fix internal fifo size (16 bytes), according to http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR53C9X.txt
- Fix values of STAT_MI and STAT_MO
- Give a scsi ID to adapter, and prevent this ID to be used by devices
- Prevent fifo overrun in esp_mem_writeb
- Add a ESP_ERROR macro, and use it where appropriate


Fix configuration 2 register (esp_2_cfg2.diff):
According to http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR53C9X.txt , "Any bit pattern written to this register
may be read back and should be identical"


Fix command len detection (esp_3_cmdlen.diff)
When command is not DMA, TCMID and TCLO registers are not filled. Use command buffer len instead


Fix 'enable selection' command (esp_4_ensel.diff)
Indicate success after 'enable selection' command


Signed-off-by: Hervé Poussineau <address@hidden>


These patches have been tested on Sparc SS-5 and on Mips Magnum emulations.

Hervé

Attachment: esp_4_ensel.diff
Description: plain/text

Attachment: esp_1_misc.diff
Description: plain/text

Attachment: esp_2_cfg2.diff
Description: plain/text

Attachment: esp_3_cmdlen.diff
Description: plain/text


reply via email to

[Prev in Thread] Current Thread [Next in Thread]