coreboot/util/amdtool/smn.h
Michał Żygowski 8f3626c4b5 util/amdtool: Add utility to dump useful information on AMD CPUs
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>
2025-11-18 13:30:21 +00:00

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