coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ecfw_ptr.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <endian.h>
4 #include "ecfw_ptr.h"
5 
6 /*
7  * Address info for EC SMSC KBC1098/KBC1126 to find their firmware blobs,
8  * linked to CONFIG_ECFW_PTR_ADDR via src/arch/x86/bootblock.ld
9  */
10 __attribute__((used, __section__(".ecfw_ptr")))
11 const struct ecfw_ptr ecfw_ptr = {
12  .fw1.off = cpu_to_be16((uint16_t)(CONFIG_KBC1126_FW1_OFFSET >> 8)),
13  .fw1.inv = cpu_to_be16((uint16_t)~(CONFIG_KBC1126_FW1_OFFSET >> 8)),
14  .fw2.off = cpu_to_be16((uint16_t)(CONFIG_KBC1126_FW2_OFFSET >> 8)),
15  .fw2.inv = cpu_to_be16((uint16_t)~(CONFIG_KBC1126_FW2_OFFSET >> 8)),
16 };
unsigned short uint16_t
Definition: stdint.h:11
uint16_t off
Definition: ecfw_ptr.h:10
struct ecfw_addr fw1
Definition: ecfw_ptr.h:16