Patrick Georgi | ea063cb | 2020-05-08 19:28:13 +0200 | [diff] [blame] | 1 | /* inteltool - dump all registers on an Intel CPU + chipset based system */ |
Patrick Georgi | 7333a11 | 2020-05-08 20:48:04 +0200 | [diff] [blame] | 2 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Nico Huber | 99b02a1 | 2017-04-05 17:39:57 +0200 | [diff] [blame] | 3 | |
| 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 | |
| 13 | uint32_t read_pcr32(uint8_t port, uint16_t offset); |
| 14 | |
Youness Alaoui | d8214d7e | 2018-03-13 16:58:52 -0400 | [diff] [blame] | 15 | void print_pcr_ports(struct pci_dev *sb, const uint8_t *ports, size_t count); |
| 16 | |
Nico Huber | 99b02a1 | 2017-04-05 17:39:57 +0200 | [diff] [blame] | 17 | void pcr_init(struct pci_dev *sb); |
| 18 | void pcr_cleanup(void); |
| 19 | |
| 20 | #endif |