linux/drivers/char/tpm/eventlog/common.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2005, 2012 IBM Corporation
 *
 * Authors:
 *	Kent Yoder <[email protected]>
 *	Seiji Munetoh <[email protected]>
 *	Stefan Berger <[email protected]>
 *	Reiner Sailer <[email protected]>
 *	Kylene Hall <[email protected]>
 *	Nayna Jain <[email protected]>
 *
 * Access to the event log created by a system's firmware / BIOS
 */

#include <linux/seq_file.h>
#include <linux/fs.h>
#include <linux/security.h>
#include <linux/module.h>
#include <linux/tpm_eventlog.h>

#include "../tpm.h"
#include "common.h"

static int tpm_bios_measurements_open(struct inode *inode,
					    struct file *file)
{}

static int tpm_bios_measurements_release(struct inode *inode,
					 struct file *file)
{}

static const struct file_operations tpm_bios_measurements_ops =;

static int tpm_read_log(struct tpm_chip *chip)
{}

/*
 * tpm_bios_log_setup() - Read the event log from the firmware
 * @chip: TPM chip to use.
 *
 * If an event log is found then the securityfs files are setup to
 * export it to userspace, otherwise nothing is done.
 */
void tpm_bios_log_setup(struct tpm_chip *chip)
{}

void tpm_bios_log_teardown(struct tpm_chip *chip)
{}