coreboot/src/commonlib/bsd
Subrata Banik d25a73d9a7 util/cbfstool/eventlog: Add low battery event type
This commit adds a new event type, `ELOG_TYPE_LOW_BATTERY_INDICATOR`,
to the event log. This event is logged when the system boots due to
a low battery condition.  It includes the reason for the shutdown,
currently only supporting "Power Off".

BUG=b:339673254
TEST=Able to capture the eventlog for low battery boot event.

```
> elogtool list
9 | 2025-02-03 09:44:19+0530 | Low Battery Boot  | Power Off
```

Change-Id: I5cc5e5f540657c7dfd174a4928e697a272da813a
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86223
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Dinesh Gehlot <digehlot@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
2025-02-10 15:14:13 +00:00
..
include/commonlib/bsd util/cbfstool/eventlog: Add low battery event type 2025-02-10 15:14:13 +00:00
cbfs_mcache.c commonlib/bsd, libpayload: Do not include helpers.h in stddef.h 2023-02-16 17:55:37 +00:00
cbfs_private.c commonlib/bsd, libpayload: Do not include helpers.h in stddef.h 2023-02-16 17:55:37 +00:00
elog.c
gcd.c commonlib: Change GCD function to always use 64 bits 2024-02-08 13:13:58 +00:00
ipchksum.c commonlib: Add generic word-at-a-time optimization to ipchksum() 2024-12-11 01:00:06 +00:00
lz4.c.inc
lz4_wrapper.c commonlib/bsd/lz4_wrapper.c: Fix misaligned access 2024-07-01 13:44:19 +00:00
string.c commonlib/bsd: Optimize strnlen() 2024-08-19 13:25:05 +00:00