summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author yz70s <yz70s@users.noreply.github.com>2019-06-08 17:19:05 +0200
committer yz70s <yz70s@users.noreply.github.com>2019-06-08 17:49:45 +0200
commitf2fa0427610fe52d7ed87cd8735eca521a51c358 (patch)
tree9a399e5c441402112046a89932e6e3f730085a8e
parent63080baef6c54a996cdb363ff82d76115ff49ac2 (diff)
i82439hx.cpp: corrections to pci configuration data (nw)
-rw-r--r--src/devices/machine/i82439hx.cpp10
-rw-r--r--src/devices/machine/i82439hx.h1
2 files changed, 10 insertions, 1 deletions
diff --git a/src/devices/machine/i82439hx.cpp b/src/devices/machine/i82439hx.cpp
index c13ce0d8a59..db689808e03 100644
--- a/src/devices/machine/i82439hx.cpp
+++ b/src/devices/machine/i82439hx.cpp
@@ -8,6 +8,7 @@ DEFINE_DEVICE_TYPE(I82439HX, i82439hx_host_device, "i82439hx", "Intel 82439HX no
void i82439hx_host_device::config_map(address_map &map)
{
pci_host_device::config_map(map);
+ map(0x10, 0x4f).noprw();
map(0x50, 0x50).rw(FUNC(i82439hx_host_device::pcon_r), FUNC(i82439hx_host_device::pcon_w));
map(0x52, 0x52).rw(FUNC(i82439hx_host_device::cc_r), FUNC(i82439hx_host_device::cc_w));
map(0x56, 0x56).rw(FUNC(i82439hx_host_device::dramec_r), FUNC(i82439hx_host_device::dramec_w));
@@ -46,7 +47,9 @@ void i82439hx_host_device::device_start()
io_window_start = 0;
io_window_end = 0xffff;
io_offset = 0;
- status = 0x0010;
+ command = 0x0006;
+ command_mask = 0x0106;
+ status = 0x0200;
ram.resize(ram_size/4);
}
@@ -160,6 +163,11 @@ void i82439hx_host_device::map_extra(uint64_t memory_window_start, uint64_t memo
}
+READ8_MEMBER (i82439hx_host_device::header_type_r)
+{
+ return 0x00; // from datasheet
+}
+
READ8_MEMBER (i82439hx_host_device::pcon_r)
{
return pcon;
diff --git a/src/devices/machine/i82439hx.h b/src/devices/machine/i82439hx.h
index e05e2c49101..93af4629096 100644
--- a/src/devices/machine/i82439hx.h
+++ b/src/devices/machine/i82439hx.h
@@ -47,6 +47,7 @@ private:
uint8_t drt, drat, smram, errcmd, errsts, errsyn;
int smiact_n;
+ virtual DECLARE_READ8_MEMBER(header_type_r) override;
DECLARE_READ8_MEMBER (pcon_r);
DECLARE_WRITE8_MEMBER(pcon_w);
DECLARE_READ8_MEMBER (cc_r);