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

# gem.4

`gem` — GEM/GMAC 以太网设备驱动程序

## 名称

`gem`

## 概要

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

> device miibus device gem

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

```sh
if_gem_load="YES"
```

## 描述

`gem` 驱动程序为 GMAC 以太网硬件提供支持，这些硬件主要见于最后一批 Apple PowerBook G3 和大多数基于 G4 的 Apple 硬件。

`gem` 驱动程序支持的所有控制器在接收和发送方面均具有 TCP 校验和卸载能力，支持 [vlan(4)](/man/man4/vlan.4.md) 的扩展帧接收和发送，以及 512 位多播哈希过滤器。

## 硬件

`gem` 驱动程序支持的芯片包括：

* Apple GMAC
* Sun GEM Gigabit Ethernet

目前已知可与 `gem` 驱动程序配合工作的附加卡如下：

* Sun Gigabit Ethernet PCI 2.0/3.0 (GBE/P)（部件号 501-4373）

## 参见

[altq(4)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man4/altq.4.md), [miibus(4)](/man/man4/miibus.4.md), [netintro(4)](/man/man4/netintro.4.md), [vlan(4)](/man/man4/vlan.4.md), [ifconfig(8)](/man/man8/ifconfig.8.md)

## 历史

`gem` 设备驱动程序出现于 NetBSD 1.6。第一个包含它的 FreeBSD 版本是 FreeBSD 5.0。

## 作者

`gem` 驱动程序由 Eduardo Horvath <eeh@NetBSD.org> 为 NetBSD 编写。由 Thomas Moestl <tmm@FreeBSD.org> 移植到 FreeBSD，后由 Marius Strobl <marius@FreeBSD.org> 改进。手册页由 Thomas Klausner <wiz@NetBSD.org> 编写。


---

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