aboutsummaryrefslogtreecommitdiffstats
path: root/programmer.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-10-30 15:53:18 +1100
committerFelix Singer <felixsinger@posteo.net>2022-11-12 16:40:10 +0000
commitc0813e7eddc553c5f8348ed1e1e4c8b00db93857 (patch)
tree21b0719fef191c664a504bf7b837093d886dc5c0 /programmer.c
parent801e7c16742a29656ca5f7690a2486d5de49ab73 (diff)
downloadflashrom-c0813e7eddc553c5f8348ed1e1e4c8b00db93857.tar.gz
flashrom-c0813e7eddc553c5f8348ed1e1e4c8b00db93857.tar.bz2
flashrom-c0813e7eddc553c5f8348ed1e1e4c8b00db93857.zip
programmer: Drop dead fallback_map() boilerplate
The fallback_{un}map() boilerplate code doesn't do anything, merely distracts away from otherwise linear control flow. Just drop it as anything in the future that could need such a thing is free to implement it when required. Change-Id: Ibb7760f807fae040416cef2797a7dbf6572f7df9 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/68963 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'programmer.c')
-rw-r--r--programmer.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/programmer.c b/programmer.c
index 939d8c2d..d4f15a13 100644
--- a/programmer.c
+++ b/programmer.c
@@ -17,23 +17,6 @@
#include "flash.h"
#include "programmer.h"
-/* Fallback map() for programmers which don't need special handling */
-void *fallback_map(const char *descr, uintptr_t phys_addr, size_t len)
-{
- /* A result of NULL causes mapped addresses to be chip physical
- * addresses, assuming only a single region is mapped (the entire flash
- * space). Chips with a second region (like a register map) require a
- * real memory mapping to distinguish the different ranges. Those chips
- * are FWH/LPC, so the bus master provides a real mapping.
- */
- return NULL;
-}
-
-/* No-op/fallback unmap() for programmers which don't need special handling */
-void fallback_unmap(void *virt_addr, size_t len)
-{
-}
-
/* Little-endian fallback for drivers not supporting 16 bit accesses */
void fallback_chip_writew(const struct flashctx *flash, uint16_t val,
chipaddr addr)