Add an utility similar to inteltool, which dumps useful information for porting a board to coreboot. TEST=Use amdtool on Gigabyte MZ33-AR1 with vendor BIOS and coreboot. Change-Id: I34405897d0f5670038e7923f3680a28090d92821 Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89492 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michał Kopeć <michal.kopec@3mdeb.com>
15 lines
355 B
C
15 lines
355 B
C
/* amdtool - dump all registers on an AMD CPU + chipset based system */
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef AMDTOOL_SMN_H
|
|
#define AMDTOOL_SMN_H 1
|
|
|
|
#include <stdint.h>
|
|
#include "amdtool.h"
|
|
|
|
uint32_t smn_read32(uint32_t addr);
|
|
uint16_t smn_read16(uint32_t addr);
|
|
uint8_t smn_read8(uint32_t addr);
|
|
void init_smn(struct pci_dev *nb);
|
|
|
|
#endif
|