diff options
Diffstat (limited to 'src/dev/pci/device.hh')
-rw-r--r-- | src/dev/pci/device.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dev/pci/device.hh b/src/dev/pci/device.hh index ba783a6b1..d1545262e 100644 --- a/src/dev/pci/device.hh +++ b/src/dev/pci/device.hh @@ -116,6 +116,15 @@ class PciDevice : public DmaDevice bool legacyIO[6]; /** + * Does the given BAR represent 32 lower bits of a 64-bit address? + */ + bool + isLargeBAR(int bar) const + { + return bits(config.baseAddr[bar], 2, 1) == 0x2; + } + + /** * Does the given address lie within the space mapped by the given * base address register? */ |