1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:08:12 +00:00

Kernel: Mark E1000NetworkAdapter is_valid_device_id(..) UNMAP_AFTER_INIT

This commit is contained in:
Brian Gianforcaro 2021-06-09 00:50:21 -07:00 committed by Andreas Kling
parent f124affc8e
commit e9add0bb80

View file

@ -119,7 +119,7 @@ namespace Kernel {
#define INTERRUPT_SRPD (1 << 16)
// https://www.intel.com/content/dam/doc/manual/pci-pci-x-family-gbe-controllers-software-dev-manual.pdf Section 5.2
static bool is_valid_device_id(u16 device_id)
UNMAP_AFTER_INIT static bool is_valid_device_id(u16 device_id)
{
// FIXME: It would be nice to distinguish which particular device it is.
// Especially since it's needed to determine which registers we can access.