Nico Huber | 99b02a1 | 2017-04-05 17:39:57 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 25 | uint32_t read_pcr32(uint8_t port, uint16_t offset); |
| 26 | |
Youness Alaoui | d8214d7e | 2018-03-13 16:58:52 -0400 | [diff] [blame] | 27 | void print_pcr_ports(struct pci_dev *sb, const uint8_t *ports, size_t count); |
| 28 | |
Nico Huber | 99b02a1 | 2017-04-05 17:39:57 +0200 | [diff] [blame] | 29 | void pcr_init(struct pci_dev *sb); |
| 30 | void pcr_cleanup(void); |
| 31 | |
| 32 | #endif |