summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-08-09 14:04:27 +0930
committerAndrew Jeffery <andrew@aj.id.au>2018-09-12 15:05:51 +0930
commitc48d07020273abbbb76817f3be899807aba020c3 (patch)
tree75d439237ee0ff13f9fcf67b4332db1de7c9d147
parentf21c81c7190e47bd0d5753a5ea3531bcb57c74de (diff)
downloadphosphor-mboxbridge-c48d07020273abbbb76817f3be899807aba020c3.tar.gz
phosphor-mboxbridge-c48d07020273abbbb76817f3be899807aba020c3.zip
flash: Move access rate estimate from transport header
Change-Id: Ie20b2cadf1a7eea2ea00bc1c134b2dbb1a23a69d Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
-rw-r--r--flash.h3
-rw-r--r--protocol.c1
-rw-r--r--transport_mbox.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/flash.h b/flash.h
index b86ec7d..f646908 100644
--- a/flash.h
+++ b/flash.h
@@ -7,6 +7,9 @@
#define FLASH_DIRTY 0x00
#define FLASH_ERASED 0x01
+/* Estimate as to how long (milliseconds) it takes to access a MB from flash */
+#define FLASH_ACCESS_MS_PER_MB 8000
+
#include "mbox.h"
int flash_dev_init(struct mbox_context *context);
diff --git a/protocol.c b/protocol.c
index c66f2df..4160e6e 100644
--- a/protocol.c
+++ b/protocol.c
@@ -5,6 +5,7 @@
#include <errno.h>
#include <stdint.h>
+#include "flash.h"
#include "mbox.h"
#include "lpc.h"
#include "transport_mbox.h" /* TODO: Remove dependency on transport_mbox.h */
diff --git a/transport_mbox.h b/transport_mbox.h
index aebf3bd..8f65f7d 100644
--- a/transport_mbox.h
+++ b/transport_mbox.h
@@ -7,9 +7,6 @@
#include "common.h"
#include "mbox.h"
-/* Estimate as to how long (milliseconds) it takes to access a MB from flash */
-#define FLASH_ACCESS_MS_PER_MB 8000
-
#define NO_BMC_EVENT false
#define SET_BMC_EVENT true
OpenPOWER on IntegriCloud