blob: a84cd71e3fb8de41c214d6f79e1a99e18a6440f2 [file] [log] [blame]
Patrick Georgiea063cb2020-05-08 19:28:13 +02001/* inteltool - dump all registers on an Intel CPU + chipset based system */
Patrick Georgi7333a112020-05-08 20:48:04 +02002/* SPDX-License-Identifier: GPL-2.0-only */
Nico Huber99b02a12017-04-05 17:39:57 +02003
4#ifndef INTELTOOL_PCR_H
5#define INTELTOOL_PCR_H 1
6
7#include <stdint.h>
8#include "inteltool.h"
9
10#define SBBAR_SIZE (16 * MiB)
11#define PCR_PORT_SIZE (64 * KiB)
12
13uint32_t read_pcr32(uint8_t port, uint16_t offset);
14
Youness Alaouid8214d7e2018-03-13 16:58:52 -040015void print_pcr_ports(struct pci_dev *sb, const uint8_t *ports, size_t count);
16
Nico Huber99b02a12017-04-05 17:39:57 +020017void pcr_init(struct pci_dev *sb);
18void pcr_cleanup(void);
19
20#endif