diff options
author | Nico Huber <nico.huber@secunet.com> | 2014-07-07 16:33:59 +0200 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-07-10 20:55:41 +0200 |
commit | 6e23066d7ac31bd29b328824ec11e7d1252cf41c (patch) | |
tree | 0f30f1245394dcc4205bb58fdc0b8a1d4ef345b5 /payloads/libpayload/drivers/usb/ehci.h | |
parent | 322794243a98a47fe6e3b270277dd049e7d4f22e (diff) | |
download | coreboot-6e23066d7ac31bd29b328824ec11e7d1252cf41c.tar.xz |
libpayload: Use unsigned long for BARs in *hci_init()
Using void* for physical addresses leads to much casting and confuses
developers when to convert from physical to virtual addresses or
the other way around. When using plain integers for physical addresses
and pointers for virtual addresses things become much cleaner and we
won't ever end up dereferencing a physical address.
Change-Id: I24cd53b81c7863b6d14f0cbb4ce8937728b37c1c
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: http://review.coreboot.org/6244
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'payloads/libpayload/drivers/usb/ehci.h')
-rw-r--r-- | payloads/libpayload/drivers/usb/ehci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/usb/ehci.h b/payloads/libpayload/drivers/usb/ehci.h index c1b1fa9f70..aa1bcf770e 100644 --- a/payloads/libpayload/drivers/usb/ehci.h +++ b/payloads/libpayload/drivers/usb/ehci.h @@ -34,7 +34,7 @@ #include <usb/usb.h> hci_t *ehci_pci_init (pcidev_t addr); -hci_t *ehci_init (void *bar); +hci_t *ehci_init (unsigned long physical_bar); void ehci_rh_init (usbdev_t *dev); |