ESP: Implement select without ATN, fix comments
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 22 Aug 2009 13:54:31 +0000 (13:54 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 22 Aug 2009 13:54:31 +0000 (13:54 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/esp.c

index 146a73a0e1d4db4e2a48da5ec1b59cb6249fa0d4..6412744896e53fa21275187202989af42baea130 100644 (file)
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -116,6 +116,7 @@ struct ESPState {
 #define CMD_ICCS     0x11
 #define CMD_MSGACC   0x12
 #define CMD_SATN     0x1a
+#define CMD_SEL      0x41
 #define CMD_SELATN   0x42
 #define CMD_SELATNS  0x43
 #define CMD_ENSEL    0x44
@@ -533,12 +534,16 @@ static void esp_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
         case CMD_SATN:
             DPRINTF("Set ATN (%2.2x)\n", val);
             break;
+        case CMD_SEL:
+            DPRINTF("Select without ATN (%2.2x)\n", val);
+            handle_satn(s);
+            break;
         case CMD_SELATN:
-            DPRINTF("Set ATN (%2.2x)\n", val);
+            DPRINTF("Select with ATN (%2.2x)\n", val);
             handle_satn(s);
             break;
         case CMD_SELATNS:
-            DPRINTF("Set ATN & stop (%2.2x)\n", val);
+            DPRINTF("Select with ATN & stop (%2.2x)\n", val);
             handle_satn_stop(s);
             break;
         case CMD_ENSEL: