coreboot/src/device
Patrick Georgi 9adcbfe486 device/pciexp_device: Set values numerically instead of as bitmask
As noted on linux-pci, we have a weird way to handling "value" and
"scale" fields that are supposed to contain numerical values: we encode
them as a bitfield.
Instead define the two fields (offset and mask) and use numbers.

Another issue, not fixed in this CL, is that we write hard-coded values
while these fields really need to contain the max() of acceptable delays
of the downstream devices. That way the controller can decide whether or
not to enter a deeper power management state. It's noted as a TODO.

Change-Id: I895b9fe2ee438d3958c2d787e70a84d73eaa49d2
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Found-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-on: https://review.coreboot.org/22740
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2017-12-08 11:38:05 +00:00
..
dram device/dram/ddr2.c: fix a hidden syntax error introduced earlier 2017-09-26 15:53:55 +00:00
oprom cpu/x86 asm: Just use the correct op suffix 2017-08-31 15:29:52 +00:00
azalia_device.c Correct some common spelling mistakes 2016-01-07 22:57:02 +01:00
cardbus_device.c
cpu_device.c src/device: Capitalize CPU, RAM and ROM 2016-07-31 18:33:30 +02:00
device.c arch/x86: Enable ebda library for romstage and postcar 2017-09-22 15:29:30 +00:00
device_simple.c lib: provide clearer devicetree semantics 2017-04-25 18:14:38 +02:00
device_util.c device: further untangle device_t from struct device 2017-11-15 05:19:42 +00:00
hypertransport.c
i2c.c Reinvent I2C ops 2017-08-18 15:33:45 +00:00
i2c_bus.c Reinvent I2C ops 2017-08-18 15:33:45 +00:00
Kconfig Kconfig: Move and rename ADD_VBT_DATA_FILE 2017-09-04 15:34:10 +00:00
Makefile.inc Reinvent I2C ops 2017-08-18 15:33:45 +00:00
pci_class.c
pci_device.c security/vboot: Move vboot2 to security kconfig section 2017-10-22 02:14:46 +00:00
pci_early.c src/device: add IS_ENABLED() around Kconfig symbol references 2017-06-28 17:48:57 +00:00
pci_ops.c PCI ops: MMCONF_SUPPORT_DEFAULT is required 2016-12-07 12:59:28 +01:00
pci_rom.c src/device: Fix checkpatch warning: no spaces at the start of a line 2017-07-25 14:26:20 +00:00
pciexp_device.c device/pciexp_device: Set values numerically instead of as bitmask 2017-12-08 11:38:05 +00:00
pcix_device.c
pnp_device.c device/pnp: remove struct io_info 2017-06-13 15:21:58 +02:00
root_device.c device: acpi_name() should take a const struct device 2017-09-14 14:34:27 +00:00
smbus_ops.c device/smbus: Reuse I2C bus operations where applicable 2017-08-18 15:34:15 +00:00
software_i2c.c include/device: Split i2c.h into three 2017-08-18 15:33:29 +00:00