diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2017-06-26 21:24:38 +0200 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2017-06-27 19:43:15 +0000 |
commit | 47916fbef272ece6655c9bc76e2eb081593175e0 (patch) | |
tree | bf63fe5449a9c46039249fd0468b721875316ddd /payloads/libpayload | |
parent | 037dbe42d744f5d581fc3a1df99b0ad2f55ae5f2 (diff) |
libpayload/drivers/usb/xhci_private.h: Add parentheses around macro
Change-Id: I0347594e9480dedc4845b6863733a67fc5e47e1c
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/20371
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r-- | payloads/libpayload/drivers/usb/xhci_private.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/payloads/libpayload/drivers/usb/xhci_private.h b/payloads/libpayload/drivers/usb/xhci_private.h index 47a464f4e2..3b4e7bb78b 100644 --- a/payloads/libpayload/drivers/usb/xhci_private.h +++ b/payloads/libpayload/drivers/usb/xhci_private.h @@ -387,25 +387,25 @@ typedef struct xhci { making bitfields unusable for MMIO register blocks. Yay C :-( */ volatile struct opreg { u32 usbcmd; -#define USBCMD_RS 1<<0 -#define USBCMD_HCRST 1<<1 -#define USBCMD_INTE 1<<2 +#define USBCMD_RS (1 << 0) +#define USBCMD_HCRST (1 << 1) +#define USBCMD_INTE (1 << 2) u32 usbsts; -#define USBSTS_HCH 1<<0 -#define USBSTS_HSE 1<<2 -#define USBSTS_EINT 1<<3 -#define USBSTS_PCD 1<<4 -#define USBSTS_CNR 1<<11 +#define USBSTS_HCH (1 << 0) +#define USBSTS_HSE (1 << 2) +#define USBSTS_EINT (1 << 3) +#define USBSTS_PCD (1 << 4) +#define USBSTS_CNR (1 << 11) #define USBSTS_PRSRV_MASK ((1 << 1) | 0xffffe000) u32 pagesize; u8 res1[0x13-0x0c+1]; u32 dnctrl; u32 crcr_lo; u32 crcr_hi; -#define CRCR_RCS 1<<0 -#define CRCR_CS 1<<1 -#define CRCR_CA 1<<2 -#define CRCR_CRR 1<<3 +#define CRCR_RCS (1 << 0) +#define CRCR_CS (1 << 1) +#define CRCR_CA (1 << 2) +#define CRCR_CRR (1 << 3) u8 res2[0x2f-0x20+1]; u32 dcbaap_lo; u32 dcbaap_hi; |