Edward O'Callaghan has uploaded this change for review.
drkaiser.c: Reshuffle to remove forward declarations
BUG=none
BRANCH=none
TEST=builds
Change-Id: Iee550dc8055eabfe8c7c4ad32003b6eec4f1e496
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
---
M drkaiser.c
1 file changed, 10 insertions(+), 14 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/50/54850/1
diff --git a/drkaiser.c b/drkaiser.c
index fa562b4..4858b35 100644
--- a/drkaiser.c
+++ b/drkaiser.c
@@ -38,9 +38,17 @@
static uint8_t *drkaiser_bar;
static void drkaiser_chip_writeb(const struct flashctx *flash, uint8_t val,
- chipaddr addr);
+ chipaddr addr)
+{
+ pci_mmio_writeb(val, drkaiser_bar + (addr & DRKAISER_MEMMAP_MASK));
+}
+
static uint8_t drkaiser_chip_readb(const struct flashctx *flash,
- const chipaddr addr);
+ const chipaddr addr)
+{
+ return pci_mmio_readb(drkaiser_bar + (addr & DRKAISER_MEMMAP_MASK));
+}
+
static const struct par_master par_master_drkaiser = {
.chip_readb = drkaiser_chip_readb,
.chip_readw = fallback_chip_readw,
@@ -81,15 +89,3 @@
return 0;
}
-
-static void drkaiser_chip_writeb(const struct flashctx *flash, uint8_t val,
- chipaddr addr)
-{
- pci_mmio_writeb(val, drkaiser_bar + (addr & DRKAISER_MEMMAP_MASK));
-}
-
-static uint8_t drkaiser_chip_readb(const struct flashctx *flash,
- const chipaddr addr)
-{
- return pci_mmio_readb(drkaiser_bar + (addr & DRKAISER_MEMMAP_MASK));
-}
To view, visit change 54850. To unsubscribe, or for help writing mail filters, visit settings.