Page MenuHomeFreeBSD

rge: remove dead code left over from the OpenBSD import
AbandonedPublic

Authored by chris.longros_gmail.com on Mar 8 2026, 3:41 PM.
Referenced Files
Unknown Object (File)
Sat, Apr 11, 12:02 AM
Unknown Object (File)
Thu, Apr 9, 9:42 PM
Unknown Object (File)
Mon, Apr 6, 2:56 PM
Unknown Object (File)
Sun, Apr 5, 11:21 AM
Unknown Object (File)
Sat, Apr 4, 3:59 AM
Unknown Object (File)
Thu, Mar 19, 3:38 PM
Unknown Object (File)
Thu, Mar 19, 7:56 AM
Unknown Object (File)
Tue, Mar 17, 12:36 PM
Subscribers

Details

Reviewers
adrian
Summary

Remove several #if 0 blocks that have been dead since the initial import:

  • rge_activate() forward declaration and function body, which used OpenBSD's DVACT_POWERDOWN / struct device API
  • WOL forward declarations guarded by #ifndef SMALL_KERNEL, an OpenBSD-specific conditional that does not apply to FreeBSD
  • Commented-out PCI Express capability code that used OpenBSD's pci_get_capability() / pci_conf_read() API

None of this code could compile on FreeBSD.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 71262
Build 68145: arc lint + arc unit