aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-22 13:55:05 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-22 13:55:05 +0000
commit0fd0eb2161b5559b41e419734f1141258289ef73 (patch)
tree8937e1da805c727319cbe7b53fe6e5c7e3ea1aa4
parent5e1e0a3bb9ae875f32c1f605e50c4766b93e6032 (diff)
ESP: implement Transfer Pad
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--hw/esp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/esp.c b/hw/esp.c
index 6412744896..53310224ff 100644
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -115,6 +115,7 @@ struct ESPState {
#define CMD_TI 0x10
#define CMD_ICCS 0x11
#define CMD_MSGACC 0x12
+#define CMD_PAD 0x18
#define CMD_SATN 0x1a
#define CMD_SEL 0x41
#define CMD_SELATN 0x42
@@ -531,6 +532,12 @@ static void esp_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
s->rregs[ESP_RINTR] = INTR_DC;
s->rregs[ESP_RSEQ] = 0;
break;
+ case CMD_PAD:
+ DPRINTF("Transfer padding (%2.2x)\n", val);
+ s->rregs[ESP_RSTAT] = STAT_TC;
+ s->rregs[ESP_RINTR] = INTR_FC;
+ s->rregs[ESP_RSEQ] = 0;
+ break;
case CMD_SATN:
DPRINTF("Set ATN (%2.2x)\n", val);
break;