// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2012 IBM Corporation * * Author: Ashley Lai <[email protected]> * Nayna Jain <[email protected]> * * Maintained by: <[email protected]> * * Read the event log created by the firmware on PPC64 */ #include <linux/device.h> #include <linux/slab.h> #include <linux/io.h> #include <linux/ioport.h> #include <linux/of.h> #include <linux/of_address.h> #include <linux/of_reserved_mem.h> #include <linux/tpm_eventlog.h> #include "../tpm.h" #include "common.h" static int tpm_read_log_memory_region(struct tpm_chip *chip) { … } int tpm_read_log_of(struct tpm_chip *chip) { … }