diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2017-07-14 20:25:05 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-07-16 23:57:21 +0000 |
commit | 0e660873bf2466bd8a1f73332b58253f231c2f85 (patch) | |
tree | d95ee051eb17fd30e8837c4d4969a671c38646ac /src/drivers/xgi/common | |
parent | b8534f767c4b81fb11376e9d7ffb48ace6889539 (diff) |
drivers: Drop level of indirection for MMIO HW access
We don't need another level of indirection for these
hardware accesses.
Change-Id: Ic567d8272e5dd943ce19babbd7ad57ba5d86c354
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/20580
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/drivers/xgi/common')
-rw-r--r-- | src/drivers/xgi/common/xgi_coreboot.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/drivers/xgi/common/xgi_coreboot.h b/src/drivers/xgi/common/xgi_coreboot.h index 57475d2450..dd5178219c 100644 --- a/src/drivers/xgi/common/xgi_coreboot.h +++ b/src/drivers/xgi/common/xgi_coreboot.h @@ -228,14 +228,6 @@ typedef u64 phys_addr_t; #define pr_debug(format, arg...) printk(BIOS_INFO, "XGI VGA: " format, ##arg) #define pr_err(format, arg...) printk(BIOS_ERR, "XGI VGA: " format, ##arg) -static inline void writel(u32 val, volatile void *addr) { - *(u32*)addr = val; -} - -static inline u32 readl(const volatile void *addr) { - return *(u32*)addr; -} - static inline int pci_read_config_dword(struct pci_dev *dev, int where, u32 *val) { |