coreboot/src/include/cpu/intel
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
..
hyperthreading.h
l2_cache.h src/include: Wrap lines at 80 columns 2017-03-13 17:23:37 +01:00
microcode.h cpu/intel/microcode: Add helper functions to get microcode info 2018-07-30 18:49:47 +00:00
reset.h soc/intel/common/block: Common ACPI 2017-09-08 19:01:04 +00:00
romstage.h cpu/intel/car: Prepare for some POSTCAR_STAGE support 2018-06-02 21:57:51 +00:00
speedstep.h intel: Use MSR_EBC_FREQUENCY_ID instead of 0x2c 2017-12-11 01:10:51 +00:00
turbo.h cpu/intel/turbo: Add option to disable turbo 2017-05-16 17:43:28 +02:00