> 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/ig4.4.md).

# ig4.4

`ig4` — Synopsys DesignWare I2C 控制器

## 名称

`ig4`

## 概要

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

> device ig4 device iicbus

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

```sh
ig4_load="YES"
```

## 描述

`ig4` 驱动提供对连接到 I2C 控制器的外设的访问。

## 硬件

`ig4` 支持基于 Synopsys DesignWare IP 的 I2C 控制器，这些控制器可见于自第四代起的 Intel(R) Core(TM) 处理器、Intel(R) Bay Trail、Apollo Lake SoC 系列以及部分 AMD 系统。

## SYSCTL 变量

以下 [sysctl(8)](/man/man8/sysctl.8.md) 变量可用：

**`debug.ig4_dump`** 此 sysctl 是一个从零开始的位掩码。当任何位被置位时，对于具有相同单元号的 `ig4` 设备，每次 I2C 传输都会打印一次寄存器转储。

## 参见

[iic(4)](/man/man4/iic.4.md), [iicbus(4)](/man/man4/iicbus.4.md)

## 作者

`ig4` 驱动最初由 Matthew Dillon 为 Dx 编写，随后由 Michael Gmelin <freebsd@grem.de> 移植到 FreeBSD。

本手册页由 Michael Gmelin <freebsd@grem.de> 编写。


---

# 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/ig4.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.
