blob: 4c272ff3a415fb04ca4882b13291a98dfa888b65 [file] [log] [blame]
Nico Huber99b02a12017-04-05 17:39:57 +02001/*
2 * inteltool - dump all registers on an Intel CPU + chipset based system.
3 *
4 * Copyright (C) 2017 secunet Security Networks AG
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#ifndef INTELTOOL_PCR_H
17#define INTELTOOL_PCR_H 1
18
19#include <stdint.h>
20#include "inteltool.h"
21
22#define SBBAR_SIZE (16 * MiB)
23#define PCR_PORT_SIZE (64 * KiB)
24
25uint32_t read_pcr32(uint8_t port, uint16_t offset);
26
Youness Alaouid8214d7e2018-03-13 16:58:52 -040027void print_pcr_ports(struct pci_dev *sb, const uint8_t *ports, size_t count);
28
Nico Huber99b02a12017-04-05 17:39:57 +020029void pcr_init(struct pci_dev *sb);
30void pcr_cleanup(void);
31
32#endif