Xeon-SP boards: Factor out OCP VPD `get_cxl_mode()` impl
[coreboot2.git] / util / inteltool / pcr.h
bloba84cd71e3fb8de41c214d6f79e1a99e18a6440f2
1 /* inteltool - dump all registers on an Intel CPU + chipset based system */
2 /* SPDX-License-Identifier: GPL-2.0-only */
4 #ifndef INTELTOOL_PCR_H
5 #define INTELTOOL_PCR_H 1
7 #include <stdint.h>
8 #include "inteltool.h"
10 #define SBBAR_SIZE (16 * MiB)
11 #define PCR_PORT_SIZE (64 * KiB)
13 uint32_t read_pcr32(uint8_t port, uint16_t offset);
15 void print_pcr_ports(struct pci_dev *sb, const uint8_t *ports, size_t count);
17 void pcr_init(struct pci_dev *sb);
18 void pcr_cleanup(void);
20 #endif