mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 23:25:40 +00:00
return correct PCI ID
This commit is contained in:
parent
3dc69f89b8
commit
df02d6a753
|
@ -419,15 +419,15 @@ UINT32 C53C810::ReadPCIConfigSpace(unsigned device, unsigned reg, unsigned bits,
|
||||||
switch (reg)
|
switch (reg)
|
||||||
{
|
{
|
||||||
case 0x00: // Device ID and Vendor ID
|
case 0x00: // Device ID and Vendor ID
|
||||||
d = 0x00011000; // 0x1000 = LSI Logic
|
d = FLIPENDIAN32(0x00011000); // 0x1000 = LSI Logic, 0x0001 = 53c810a
|
||||||
switch (bits)
|
switch (bits)
|
||||||
{
|
{
|
||||||
case 8:
|
case 8:
|
||||||
d >>= (3-offset)*8; // offset will be 0-3; select appropriate byte
|
d >>= (3-offset)*8; // offset will be 0-3; select appropriate byte
|
||||||
d &= 0xFF;
|
d &= 0xFF;
|
||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
d >>= (2-offset)*8; // offset will be 0 or 2 only; select either high or low word
|
d >>= (2-offset)*8; // offset will be 0 or 2 only; select either high or low word
|
||||||
d &= 0xFFFF;
|
d &= 0xFFFF;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue