msrtool: add support for printing string values
The VIA CPUs allow setting the CPUID vendor, which is best read as a character string. Change-Id: I67f77ca75f7d77e47b3ba09bad904df5805e373a Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-on: https://review.coreboot.org/18257 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
committed by
Philipp Deppenwiese
parent
199a23cd8a
commit
38686f15dd
@ -45,7 +45,8 @@ enum {
|
||||
PRESENT_BIN,
|
||||
PRESENT_OCT,
|
||||
PRESENT_HEX,
|
||||
PRESENT_HEXDEC
|
||||
PRESENT_HEXDEC,
|
||||
PRESENT_STR,
|
||||
} PresentTypes;
|
||||
|
||||
struct msr {
|
||||
@ -162,6 +163,7 @@ struct pci_dev *pci_dev_find(uint16_t vendor, uint16_t device);
|
||||
|
||||
/* msrutils.c */
|
||||
void hexprint(FILE *f, const struct msr val, const uint8_t bits);
|
||||
void strprint(FILE *f, const struct msr val, const uint8_t bits);
|
||||
int msr_eq(const struct msr a, const struct msr b);
|
||||
struct msr msr_shl(const struct msr a, const uint8_t bits);
|
||||
struct msr msr_shr(const struct msr a, const uint8_t bits);
|
||||
|
Reference in New Issue
Block a user