Skip to content

Commit

Permalink
And the PCI device ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
OBattler committed Apr 28, 2024
1 parent dde745d commit 2e4366d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/vid_bochs_vbe.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,16 +623,16 @@ bochs_vbe_pci_read(const int func, const int addr, void *priv)
default:
break;
case 0x00:
ret = 0x34;
ret = (dev->id5_val == VBE_DISPI_ID5) ? 0x34 : 0xee;
break;
case 0x01:
ret = 0x12;
ret = (dev->id5_val == VBE_DISPI_ID5) ? 0x12 : 0x80;
break;
case 0x02:
ret = 0x11;
ret = (dev->id5_val == VBE_DISPI_ID5) ? 0x11 : 0xef;
break;
case 0x03:
ret = 0x11;
ret = (dev->id5_val == VBE_DISPI_ID5) ? 0x11 : 0xbe;
break;
case 0x04:
ret = (dev->pci_conf_status & 0b11100011) | 0x80;
Expand Down

0 comments on commit 2e4366d

Please sign in to comment.