mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
pci: fix PCIe extended capability definition
Also removed the warning about unhandled capability IDs. Ref genodelabs/genode#4578
This commit is contained in:
@@ -375,7 +375,7 @@ struct Pci::Config : Genode::Mmio
|
|||||||
|
|
||||||
struct Pci_express_extended_capability : Genode::Mmio
|
struct Pci_express_extended_capability : Genode::Mmio
|
||||||
{
|
{
|
||||||
struct Id : Register<0,16>
|
struct Id : Register<0x0, 16>
|
||||||
{
|
{
|
||||||
enum {
|
enum {
|
||||||
INVALID = 0x0,
|
INVALID = 0x0,
|
||||||
@@ -388,7 +388,7 @@ struct Pci::Config : Genode::Mmio
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Next_and_version : Register<16, 8>
|
struct Next_and_version : Register<0x2, 16>
|
||||||
{
|
{
|
||||||
struct Offset : Bitfield<4, 12> {};
|
struct Offset : Bitfield<4, 12> {};
|
||||||
};
|
};
|
||||||
@@ -462,19 +462,8 @@ struct Pci::Config : Genode::Mmio
|
|||||||
case Pci_capability::Id::PCI_E:
|
case Pci_capability::Id::PCI_E:
|
||||||
pci_e_cap.construct(base()+off); break;
|
pci_e_cap.construct(base()+off); break;
|
||||||
|
|
||||||
case Pci_capability::Id::AGP:
|
|
||||||
case Pci_capability::Id::VITAL_PRODUCT:
|
|
||||||
case Pci_capability::Id::SATA:
|
|
||||||
case Pci_capability::Id::VENDOR:
|
|
||||||
case Pci_capability::Id::ADVANCED:
|
|
||||||
case Pci_capability::Id::BRIDGE_SUB:
|
|
||||||
case Pci_capability::Id::DEBUG:
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
warning("Found unhandled capability ",
|
/* ignore unhandled capability */ ;
|
||||||
cap.read<Pci_capability::Id>(),
|
|
||||||
" at offset ", Hex(base()+off));
|
|
||||||
}
|
}
|
||||||
off = cap.read<Pci_capability::Pointer>();
|
off = cap.read<Pci_capability::Pointer>();
|
||||||
}
|
}
|
||||||
@@ -491,15 +480,8 @@ struct Pci::Config : Genode::Mmio
|
|||||||
case Pci_express_extended_capability::Id::ADVANCED_ERROR_REPORTING:
|
case Pci_express_extended_capability::Id::ADVANCED_ERROR_REPORTING:
|
||||||
adv_err_cap.construct(base() + off); break;
|
adv_err_cap.construct(base() + off); break;
|
||||||
|
|
||||||
case Pci_express_extended_capability::Id::VENDOR:
|
|
||||||
case Pci_express_extended_capability::Id::VIRTUAL_CHANNEL:
|
|
||||||
case Pci_express_extended_capability::Id::MULTI_ROOT_IO_VIRT:
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
warning("Found unhandled extended capability ",
|
/* ignore unhandled extended capability */ ;
|
||||||
cap.read<Pci_express_extended_capability::Id>(),
|
|
||||||
" at offset ", Hex(base()+off));
|
|
||||||
}
|
}
|
||||||
off = cap.read<Pci_express_extended_capability::Next_and_version::Offset>();
|
off = cap.read<Pci_express_extended_capability::Next_and_version::Offset>();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user