summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc/spapr_tpm_proxy.h
blob: 300c81b1f090e9349b65d352db5926c9c1bd7517 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * SPAPR TPM Proxy/Hypercall
 *
 * Copyright IBM Corp. 2019
 *
 * Authors:
 *  Michael Roth      <mdroth@linux.vnet.ibm.com>
 *
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
 * See the COPYING file in the top-level directory.
 */

#ifndef HW_SPAPR_TPM_PROXY_H
#define HW_SPAPR_TPM_PROXY_H

#include "qom/object.h"
#include "hw/qdev-core.h"

#define TYPE_SPAPR_TPM_PROXY "spapr-tpm-proxy"
typedef struct SpaprTpmProxy SpaprTpmProxy;
DECLARE_INSTANCE_CHECKER(SpaprTpmProxy, SPAPR_TPM_PROXY,
                         TYPE_SPAPR_TPM_PROXY)

struct SpaprTpmProxy {
    /*< private >*/
    DeviceState parent;

    char *host_path;
    int host_fd;
};

#endif /* HW_SPAPR_TPM_PROXY_H */