|
@@ -1,7 +1,6 @@
|
|
|
use crate::{handler::PhysicalMapping, sdt::SdtHeader, Acpi, AcpiError};
|
|
|
use alloc::vec::Vec;
|
|
|
use core::{mem, slice};
|
|
|
-use log::info;
|
|
|
|
|
|
/// Describes a set of regions of physical memory used to access the PCI-E configuration space. A
|
|
|
/// region is created for each entry in the MCFG. Given the segment group, bus, device number, and
|
|
@@ -50,12 +49,6 @@ pub(crate) struct Mcfg {
|
|
|
impl Mcfg {
|
|
|
fn entries(&self) -> &[McfgEntry] {
|
|
|
let length = self.header.length() as usize - mem::size_of::<Mcfg>();
|
|
|
- info!(
|
|
|
- "(raw length = {}, header length = {}, length of entries = {})",
|
|
|
- self.header.length(),
|
|
|
- mem::size_of::<SdtHeader>(),
|
|
|
- length
|
|
|
- );
|
|
|
assert!(length % mem::size_of::<McfgEntry>() == 0);
|
|
|
let num_entries = length / mem::size_of::<McfgEntry>();
|
|
|
|