]> git.proxmox.com Git - qemu.git/commitdiff
esp: implement Disable selection command
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 9 Jul 2012 10:02:24 +0000 (12:02 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 14 Jul 2012 10:11:49 +0000 (10:11 +0000)
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/esp.c
trace-events

index ac91f003518d2368889acd1770b6a30a19bf1665..985a2ee8b667c1282484f7c0dcfc25704e947631 100644 (file)
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -117,6 +117,7 @@ struct ESPState {
 #define CMD_SELATN   0x42
 #define CMD_SELATNS  0x43
 #define CMD_ENSEL    0x44
+#define CMD_DISSEL   0x45
 
 #define STAT_DO 0x00
 #define STAT_DI 0x01
@@ -649,6 +650,11 @@ static void esp_mem_write(void *opaque, target_phys_addr_t addr,
             trace_esp_mem_writeb_cmd_ensel(val);
             s->rregs[ESP_RINTR] = 0;
             break;
+        case CMD_DISSEL:
+            trace_esp_mem_writeb_cmd_dissel(val);
+            s->rregs[ESP_RINTR] = 0;
+            esp_raise_irq(s);
+            break;
         default:
             ESP_ERROR("Unhandled ESP command (%2.2x)\n", (unsigned)val);
             break;
index 1f9fc98c898ecc37dd9d1c244a202994f86bdc58..ba893898a1c501624bd36e2294cb78e7375fd6f6 100644 (file)
@@ -755,6 +755,7 @@ esp_mem_writeb_cmd_sel(uint32_t val) "Select without ATN (%2.2x)"
 esp_mem_writeb_cmd_selatn(uint32_t val) "Select with ATN (%2.2x)"
 esp_mem_writeb_cmd_selatns(uint32_t val) "Select with ATN & stop (%2.2x)"
 esp_mem_writeb_cmd_ensel(uint32_t val) "Enable selection (%2.2x)"
+esp_mem_writeb_cmd_dissel(uint32_t val) "Disable selection (%2.2x)"
 
 # monitor.c
 handle_qmp_command(void *mon, const char *cmd_name) "mon %p cmd_name \"%s\""