Reduce the default case to a set of explicit types. This synchronizesConsolidate add_efi_map_entry() and exclude_efi_map_entry() into a
the total set of types handled bysingle function, handle_efi_map_entry(), so that the switch statements inexact set of entry
exclude_efi_map_entry() andtypes handled is the same in the add_efi_map_entry(). Logically,ition or exclusion cases. we do notBefore,
need to exclude a range that could not possibly be added to physmem, ande_efi_map_entry() had a 'default' case that would exclude all
we do not need to exclude bus ranges that are not physentry types that were not listed explicitly in the switch statement.
Logical memoryly, forwe do not need to exclude a range that could not possibly be
added to physmem, and we do not need to exclude bus ranges that are not
physical memory, for example EFI_MD_TYPE_IOMEM.
Since physmem's ram0 device will reserve bus memory resources for its
owned ranges, this was preventing attachment of the watchdog device on
the RPI4B. For some reason its region of memory-mapped I/O appeared in
the EFI memory map (with the aformentioned EFI_MD_TYPE_IOMEM type). This
change fixes the attachment issue, as we prevent the physmem API from
messing with this range of bus space.
PR: 270044
Reported by: karels, Mark Millard