mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45:38 +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)
|
||||
{
|
||||
case 0x00: // Device ID and Vendor ID
|
||||
d = 0x00011000; // 0x1000 = LSI Logic
|
||||
d = FLIPENDIAN32(0x00011000); // 0x1000 = LSI Logic, 0x0001 = 53c810a
|
||||
switch (bits)
|
||||
{
|
||||
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;
|
||||
break;
|
||||
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;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue