coreboot-kgpe-d16/src/include
Rizwan Qureshi 0d3915714c cpu/intel/microcode: Add helper functions to get microcode info
Add 4 helper functions to get microcode info.
* get_current_microcode_rev
	return the the version of the currently running microcode.
* get_microcode_rev
	extract microcode revision from the given patch.
* get_microcode_size
	extract microcode size from the given patch.
* get_microcode_checksum
	extract checksum from the given patch.

The simpler thing would be to just move the struct microcode
to microcode.h so that the structure members can be dereferenced.
To encapsulate the structure details added the helper functions.

This information will be used in future to compare microcodes for update.

Change-Id: I67a08ba40b393874d8cc17363fefe21e2ea904f3
Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Reviewed-on: https://review.coreboot.org/27365
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-07-30 18:49:47 +00:00
..
boot write_tables: return a pointer to the table 2018-07-20 03:26:46 +00:00
console arch/x86: Drop leftover ROMCC console support 2018-06-08 03:31:12 +00:00
cpu cpu/intel/microcode: Add helper functions to get microcode info 2018-07-30 18:49:47 +00:00
device device: add child traversal helper function 2018-07-26 15:35:44 +00:00
pc80 Port cmos.default handling to C environment bootblock 2017-07-26 19:30:01 +00:00
smp arch/x86: Clean up CONFIG_SMP and MAX_CPUS test 2017-08-19 15:30:51 +00:00
superio
sys src/include: Add guards on all header files 2017-08-01 23:04:15 +00:00
adainit.h
assert.h assert: Add new dead_code() macro to assert dead code paths 2017-07-16 23:56:34 +00:00
b64_decode.h
base3.h
bcd.h
boardid.h boardid: Add helpers to read sku_id strapping into coreboot tables 2017-12-07 01:19:32 +00:00
boot_device.h
bootblock_common.h Introduce bootblock self-decompression 2018-05-22 02:44:14 +00:00
bootmem.h bootmem: Clarify usage with bounce-buffer 2018-06-12 07:43:37 +00:00
bootmode.h vboot: Remove get_sw_write_protect_state callback 2017-07-18 23:24:01 +00:00
bootstate.h src: Get rid of unneeded whitespace 2018-06-14 09:32:34 +00:00
cbfs.h cbfs: Add cbfs_boot_load_file() 2018-04-17 10:46:13 +00:00
cbmem.h lib/cbmem: provide optional cbmem top initialization hook 2017-08-04 04:29:57 +00:00
compiler.h compiler.h: add __weak macro 2018-04-24 14:37:59 +00:00
delay.h
device_tree.h devicetree: Add method to delete property by name 2018-06-28 09:01:26 +00:00
dimm_info_util.h src/lib/dimm_info_util.c: Add methods to convert from SMBIOS to SPD 2018-04-11 14:41:59 +00:00
edid.h lib/edid: Split out fill_lb_framebuffer() 2017-05-30 18:32:44 +02:00
elog.h elog: Allow calling boot_count_read() without CONFIG_ELOG_BOOT_COUNT 2018-05-25 16:40:08 +00:00
endian.h
fallback.h
fit.h lib: Add FIT payload support 2018-06-19 18:10:05 +00:00
fit_payload.h lib: Add FIT payload support 2018-06-19 18:10:05 +00:00
fmap.h
gic.h
gpio.h lib/gpio: constify array inputs 2017-10-20 22:49:27 +00:00
halt.h
imd.h
inttypes.h
ip_checksum.h
kconfig.h
lib.h
list.h lib/devicetree: Integrate flattened devicetree support 2018-04-30 09:33:32 +00:00
main_decl.h
memlayout.h Introduce bootblock self-decompression 2018-05-22 02:44:14 +00:00
memory_info.h include/memory_info.h: Change part number field from 19 bytes to 21 2018-04-24 17:12:40 +00:00
memrange.h lib/memrange: Introduce method to clone memrange 2018-04-11 15:11:04 +00:00
mrc_cache.h drivers/mrc_cache: Add missing include file to mrc_cache.h 2017-12-18 16:07:09 +00:00
nhlt.h lib/nhlt: add support for passing subsystem_id to endpoint's structure 2018-05-09 10:06:04 +00:00
option.h src/include: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:55:05 +00:00
program_loading.h lib/prog_loaders: Move argument selection into selfload 2018-06-19 14:28:01 +00:00
random.h
reg_script.h Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
region_file.h
reset.h Consolidate reset API, add generic reset_prepare mechanism 2017-06-13 20:53:09 +02:00
rmodule.h
romstage_handoff.h
rtc.h
rules.h Introduce bootblock self-decompression 2018-05-22 02:44:14 +00:00
sar.h intel/wifi: Add WGDS ACPI method for Geo Aware SAR 2018-07-13 10:42:04 +00:00
sdram_mode.h
smbios.h arch/x86/smbios: Add support for table 38 2018-07-19 13:50:28 +00:00
spd.h src/lib/dimm_info_util.c: Add methods to convert from SMBIOS to SPD 2018-04-11 14:41:59 +00:00
spd_bin.h lib/spd_bin: Use proper I2C addresses 2017-06-29 15:41:02 +00:00
spd_ddr2.h src/include: Add guards on all header files 2017-08-01 23:04:15 +00:00
spi-generic.h drivers/spi: reduce confusion in the API 2018-04-23 20:58:58 +00:00
spi_bitbang.h spi: Add helper functions for bit-banging 2018-04-03 00:34:52 +00:00
spi_flash.h drivers/spi: reduce confusion in the API 2018-04-23 20:58:58 +00:00
stage_cache.h lib/stage_cache: Add save/get raw storage 2018-02-07 16:22:40 +00:00
stddef.h src/include: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:55:05 +00:00
stdlib.h
string.h console: Expose vsnprintf 2018-04-09 08:18:16 +00:00
swab.h
symbols.h Introduce bootblock self-decompression 2018-05-22 02:44:14 +00:00
thread.h src/include: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:55:05 +00:00
timer.h include/timer.h: add NSECS_PER_SEC macro 2017-11-19 01:50:13 +00:00
timestamp.h src: Fix all Siemens copyrights 2017-11-07 12:33:51 +00:00
trace.h src/include: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:55:05 +00:00
types.h Reinvent I2C ops 2017-08-18 15:33:45 +00:00
vbe.h Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
version.h
watchdog.h src/include: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:55:05 +00:00
wrdd.h