mirror of
https://github.com/holub/mame
synced 2025-05-18 11:39:29 +03:00
i82439hx.cpp: corrections to pci configuration data (nw)
This commit is contained in:
parent
63080baef6
commit
f2fa042761
@ -8,6 +8,7 @@ DEFINE_DEVICE_TYPE(I82439HX, i82439hx_host_device, "i82439hx", "Intel 82439HX no
|
|||||||
void i82439hx_host_device::config_map(address_map &map)
|
void i82439hx_host_device::config_map(address_map &map)
|
||||||
{
|
{
|
||||||
pci_host_device::config_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(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(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));
|
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_start = 0;
|
||||||
io_window_end = 0xffff;
|
io_window_end = 0xffff;
|
||||||
io_offset = 0;
|
io_offset = 0;
|
||||||
status = 0x0010;
|
command = 0x0006;
|
||||||
|
command_mask = 0x0106;
|
||||||
|
status = 0x0200;
|
||||||
|
|
||||||
ram.resize(ram_size/4);
|
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)
|
READ8_MEMBER (i82439hx_host_device::pcon_r)
|
||||||
{
|
{
|
||||||
return pcon;
|
return pcon;
|
||||||
|
@ -47,6 +47,7 @@ private:
|
|||||||
uint8_t drt, drat, smram, errcmd, errsts, errsyn;
|
uint8_t drt, drat, smram, errcmd, errsts, errsyn;
|
||||||
int smiact_n;
|
int smiact_n;
|
||||||
|
|
||||||
|
virtual DECLARE_READ8_MEMBER(header_type_r) override;
|
||||||
DECLARE_READ8_MEMBER (pcon_r);
|
DECLARE_READ8_MEMBER (pcon_r);
|
||||||
DECLARE_WRITE8_MEMBER(pcon_w);
|
DECLARE_WRITE8_MEMBER(pcon_w);
|
||||||
DECLARE_READ8_MEMBER (cc_r);
|
DECLARE_READ8_MEMBER (cc_r);
|
||||||
|
Loading…
Reference in New Issue
Block a user