mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 03:12:27 +00:00
pci: handle extended configuration space properly
This is critical to support extended capabilitiy list. Signed-off-by: Qiu Wenbo <qiuwenbo@phytium.com.cn>
This commit is contained in:
parent
f6b9445be7
commit
4cf89d373d
@ -9,8 +9,8 @@ use crate::{MsixConfig, PciInterruptPin};
|
|||||||
use byteorder::{ByteOrder, LittleEndian};
|
use byteorder::{ByteOrder, LittleEndian};
|
||||||
use std::fmt::{self, Display};
|
use std::fmt::{self, Display};
|
||||||
|
|
||||||
// The number of 32bit registers in the config space, 256 bytes.
|
// The number of 32bit registers in the config space, 4096 bytes.
|
||||||
const NUM_CONFIGURATION_REGISTERS: usize = 64;
|
const NUM_CONFIGURATION_REGISTERS: usize = 1024;
|
||||||
|
|
||||||
const STATUS_REG: usize = 1;
|
const STATUS_REG: usize = 1;
|
||||||
const STATUS_REG_CAPABILITIES_USED_MASK: u32 = 0x0010_0000;
|
const STATUS_REG_CAPABILITIES_USED_MASK: u32 = 0x0010_0000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user