From 281c994ce27df242ad516cf723da22c9a00c4143 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 4 Aug 2016 14:25:59 -0500 Subject: 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 Reviewed-on: https://review.coreboot.org/16097 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/drivers/elog/elog_internal.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/drivers/elog/elog_internal.h') 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_ */ -- cgit v1.2.3