summaryrefslogtreecommitdiff
path: root/src/drivers/elog/elog_internal.h
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-08-04 14:25:59 -0500
committerMartin Roth <martinroth@google.com>2016-08-08 22:04:31 +0200
commit281c994ce27df242ad516cf723da22c9a00c4143 (patch)
tree706b5ff048eb30e6a55c1f74e759cc9970867e26 /src/drivers/elog/elog_internal.h
parent422c440fa67d003a65196edac56318cd0da81bf6 (diff)
drivers/elog: use region_device for mirroring into ram
A region_device can be used to represent the in-memory mirror of the event log. The region_device infrastructure has builtin bounds checking so there's no need to duplicate that. In addition, it allows for removing much of the math juggling for the buffer size, etc. BUG=chrome-os-partner:55932 Change-Id: Ic7fe9466019640b449257c5905ed919ac522bb58 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16097 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/drivers/elog/elog_internal.h')
-rw-r--r--src/drivers/elog/elog_internal.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/drivers/elog/elog_internal.h b/src/drivers/elog/elog_internal.h
index d4fae4fe71..ef21bf0f3f 100644
--- a/src/drivers/elog/elog_internal.h
+++ b/src/drivers/elog/elog_internal.h
@@ -61,9 +61,4 @@ typedef enum elog_event_buffer_state {
ELOG_EVENT_BUFFER_CORRUPTED,
} elog_event_buffer_state;
-struct elog_area {
- struct elog_header header;
- u8 data[0];
-} __attribute__((packed));
-
#endif /* ELOG_INTERNAL_H_ */