coreboot/src/include/device
Shuo Liu bd33b6ab9f include/device: Fix IO resource handling covering 0xFFFF
IO resource creation utils taking 'from' and 'to' as parameters
use uint16_t for them, where 'to' equals the resource limit plus
1. When a resource is with a limit of 0xFFFF, the value of 'to'
will be clipped to 0x0000 by uint16_t. Fix this problem by use
uint32_t and checks the effective range to make sure it no larger
than UINT16_MAX + 1.

TEST=Build and boot on intel/archercity CRB
TEST=Build on intel/avenuecity CRB

Change-Id: Ie83045683094d6330c1676809f83acf30175cc90
Signed-off-by: Shuo Liu <shuo.liu@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82192
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
2024-05-28 09:46:08 +00:00
..
dram dram/ddr3: Use the same naming convention as DDR4 2024-05-07 10:53:31 +00:00
azalia_device.h include/device/azalia_device.h: Merge location1 and location2 2024-02-29 03:13:08 +00:00
cardbus.h
device.h include/device: Fix IO resource handling covering 0xFFFF 2024-05-28 09:46:08 +00:00
gpio.h
i2c.h
i2c_bus.h
i2c_simple.h
mdio.h
mmio.h
path.h acpi: Add functions to declare ARM GIC V3 hardware 2023-09-18 13:34:47 +00:00
pci.h tree: Drop duplicated <device/{path,resource}.h> 2024-04-12 04:24:20 +00:00
pci_def.h device: Add support for multiple PCI segment groups 2024-01-16 22:59:55 +00:00
pci_ehci.h
pci_ids.h include/device/pci_ids.h: Update TWL device IDs 2024-05-16 11:29:40 +00:00
pci_mmio_cfg.h include/device/pci_mmio_cfg: assert CONFIG_ECAM_MMCONF_BUS_NUMBER != 0 2024-01-15 21:15:36 +00:00
pci_ops.h device/device.h: Rename busses for clarity 2024-01-31 10:36:39 +00:00
pci_rom.h device: drop unnecessary CHECK_REV_IN_OPROM_NAME option 2024-05-23 21:54:26 +00:00
pci_type.h
pciexp.h
pcix.h
pnp.h
pnp_def.h
pnp_ops.h
pnp_type.h
resource.h include/device/resource: drop unused IORESOURCE_* definitions 2023-08-10 21:48:46 +00:00
smbus.h
smbus_def.h
smbus_host.h
soundwire.h acpi/soundwire.[ch]: Fix dpn entry array overrun 2023-09-13 15:26:01 +00:00
spi.h
usbc_mux.h ec/google/chromeec: Split wait-loop for DP and HPD flags 2023-07-15 12:47:51 +00:00
xhci.h device/xhci: Add struct for capability registers 2023-03-07 17:11:58 +00:00