coreboot/src/include
Julius Werner 98eeb96135 commonlib: Add commonlib/bsd
This patch creates a new commonlib/bsd subdirectory with a similar
purpose to the existing commonlib, with the difference that all files
under this subdirectory shall be licensed under the BSD-3-Clause license
(or compatible permissive license). The goal is to allow more code to be
shared with libpayload in the future.

Initially, I'm going to move a few files there that have already been
BSD-licensed in the existing commonlib. I am also exracting most
contents of the often-needed <commonlib/helpers.h> as long as they have
either been written by me (and are hereby relicensed) or have an
existing equivalent in BSD-licensed libpayload code. I am also
relicensing <commonlib/compression.h> (written by me) and
<commonlib/compiler.h> (same stuff exists in libpayload).

Finally, I am extracting the cb_err error code definitions from
<types.h> into a new BSD-licensed header so that future commonlib/bsd
code can build upon a common set of error values. I am making the
assumption here that the enum constants and the half-sentence fragments
of documentation next to them by themselves do not meet the threshold of
copyrightability.

Change-Id: I316cea70930f131e8e93d4218542ddb5ae4b63a2
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38420
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
2020-01-28 06:36:13 +00:00
..
boot
console src/include: Fix typos 2020-01-18 10:55:45 +00:00
cpu src: Use '#include <smp/node.h>' when appropriate 2019-12-19 05:23:25 +00:00
device soc/intel/common: Add Elkhartlake Device IDs 2020-01-22 15:42:26 +00:00
efi
pc80 drivers/pc80/rtc: Move sanitize_cmos() 2020-01-10 15:28:41 +00:00
smp
superio
sys
adainit.h src/include: Fix typos 2020-01-08 12:57:31 +00:00
assert.h
b64_decode.h src/include: Fix typos 2020-01-08 12:57:31 +00:00
base3.h
bcd.h
boardid.h
boot_device.h
bootblock_common.h AGESA,binaryPI: Add compatibility wrapper for romstage entry 2019-11-30 08:15:30 +00:00
bootmem.h src/include: Fix typos 2020-01-18 10:55:45 +00:00
bootmode.h
bootsplash.h
bootstate.h src/include: Remove unused <stdlib.h> 2020-01-02 09:05:44 +00:00
cbfs.h cbfs: Remove locator concept 2020-01-18 10:51:04 +00:00
cbmem.h lib/cbmem: Remove the cbmem_top_init() hook 2019-11-10 15:39:00 +00:00
cper.h
crc_byte.h lib/crc_byte: Add CRC32 implementation 2020-01-07 08:38:58 +00:00
ctype.h
delay.h
device_tree.h src/include: Fix typos 2020-01-18 10:55:45 +00:00
dimm_info_util.h
edid.h
elog.h ELOG: Introduce elog_gsmi variants 2019-11-09 10:49:47 +00:00
endian.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
fallback.h drivers/pc80/rtc: Clean up some headers 2020-01-07 18:40:02 +00:00
fit.h
fit_payload.h
fmap.h commonlib: Add commonlib/bsd 2020-01-28 06:36:13 +00:00
gic.h
gpio.h
halt.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
imd.h
inttypes.h
ip_checksum.h
kconfig.h
lib.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
list.h
main_decl.h
memlayout.h fmap: Make FMAP_CACHE mandatory if it is configured in 2019-12-11 11:42:26 +00:00
memory_info.h
memrange.h
mrc_cache.h
nhlt.h
option.h drivers/pc80/rtc: Move sanitize_cmos() 2020-01-10 15:28:41 +00:00
program_loading.h bootblock: Support normal/fallback mechanism again 2019-12-27 08:59:20 +00:00
ramdetect.h
random.h
reg_script.h soc/intel/fsp_baytrail: Drop support 2019-11-21 06:41:09 +00:00
region_file.h
reset.h
rmodule.h
romstage_handoff.h
rtc.h
rules.h kill CAR_GLOBAL_MIGRATION leftovers 2019-11-30 16:12:04 +00:00
sar.h
sdram_mode.h
smbios.h SMBIOS: Add 'CXL FLexbus 1.0' memory array location 2019-11-11 22:36:55 +00:00
smmstore.h
spd.h
spd_bin.h lib/spd_bin.c: Drop CAR_GLOBAL_MIGRATION support 2019-11-29 09:09:19 +00:00
spd_ddr2.h src/include: Fix typos 2020-01-18 10:55:45 +00:00
spi-generic.h src/include: Fix typos 2020-01-18 10:55:45 +00:00
spi_bitbang.h
spi_flash.h drivers/spi/spi_flash: organize spi flash by sector topology 2020-01-17 05:49:09 +00:00
spi_sdcard.h drivers/spi: add drivers for sdcard mounted on the spi bus 2019-11-14 11:38:38 +00:00
stage_cache.h
stdbool.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
stddef.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
stdint.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
stdlib.h lib/malloc: Implement a simple free() only for last malloc() 2020-01-02 18:22:53 +00:00
string.h src/include: Remove unused <stdlib.h> 2020-01-02 09:05:44 +00:00
swab.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
symbols.h lib/fmap: Add optional pre-RAM cache 2019-11-14 03:30:11 +00:00
thread.h
timer.h src/include: Fix typos 2020-01-18 10:55:45 +00:00
timestamp.h
trace.h
types.h commonlib: Add commonlib/bsd 2020-01-28 06:36:13 +00:00
uuid.h lib/uuid: Add UUID parsing function 2019-11-01 11:38:22 +00:00
vbe.h
version.h
watchdog.h
wrdd.h