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>
This commit is contained in:
Stefan Reinauer
2017-07-14 20:25:05 +02:00
committed by Martin Roth
parent b8534f767c
commit 0e660873bf
2 changed files with 6 additions and 38 deletions

View File

@@ -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)
{