> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man4/tpm.4.md).

# tpm.4

`tpm` — 可信平台模块

## 名称

`tpm`

## 概要

`要将此驱动编译进内核，请在你的内核配置文件中加入以下行：`

> device tpm

`或者，要在引导时以模块形式加载该驱动，请在 loader.conf(5) 中加入以下行：`

```sh
tpm_load="YES"
```

`在 /boot/device.hints 中： hint.tpm.0.at="isa" hint.tpm.0.maddr="0xfed40000" hint.tpm.0.msize="0x5000" hint.tpm.1.at="isa" hint.tpm.1.maddr="0xfed40000" hint.tpm.1.msize="0x1000"`

## 描述

`tpm` 驱动为各种可信平台模块（TPM）提供支持，这些模块可以存储加密密钥。

支持的模块：

* Atmel 97SC3203
* Broadcom BCM0102
* Infineon IFX SLD 9630 TT 1.1 和 IFX SLB 9635 TT 1.2
* Intel INTC0102
* Sinosun SNS SSX35
* STM ST19WP18
* Winbond WEC WPCT200

可以通过在 **`/boot/device.hints`** 中提供空闲 ISA 中断向量来配置驱动使用 IRQ。

## 参见

[intro(4)](/man/man4/intro.4.md), [device.hints(5)](/man/man5/device.hints.5.md), [config(8)](/man/man8/config.8.md)

BSSSD 项目的首页，该项目开发了原始 `tpm` 驱动：Lk <http://bsssd.sourceforge.net/> 。

TPM 主规范可在以下位置找到：Lk <https://trustedcomputinggroup.org/resource/tpm-main-specification/> 。

## 标准

TPM 主规范级别 2 版本 1.2：

> ISO/IEC, "11889-1:2009, Information technology -- Trusted Platform Module -- Part 1: Overview".

> ISO/IEC, "11889-2:2009, Information technology -- Trusted Platform Module -- Part 2: Design principles".

> ISO/IEC, "11889-3:2009, Information technology -- Trusted Platform Module -- Part 3: Structures".

*
*
*

## 历史

`tpm` 驱动首次出现于 FreeBSD 8.2，后来添加到 OpenBSD 6.1。

## 作者

`tpm` 驱动由 Michael Shalayeff 和 Hans-Joerg Hoexer 编写。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man4/tpm.4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
