Page MenuHomeFreeBSD

siba(4): Adopt a bcma-compatible mapping of bhnd(4) port/region identifiers.
ClosedPublic

Authored by landonf on Jun 15 2016, 12:15 AM.
Tags
None
Referenced Files
F131803248: D6850.diff
Sat, Oct 11, 7:16 AM
Unknown Object (File)
Aug 14 2025, 9:14 PM
Unknown Object (File)
Aug 14 2025, 9:04 PM
Unknown Object (File)
Aug 2 2025, 4:07 PM
Unknown Object (File)
Jul 12 2025, 11:43 PM
Unknown Object (File)
Jun 27 2025, 3:34 PM
Unknown Object (File)
Jun 25 2025, 3:58 AM
Unknown Object (File)
Jun 22 2025, 8:10 PM
Subscribers

Details

Summary

For compatibility with bcma(4), map Sonics/OCP per-core address
spaces to bhnd(4) port/region identifiers as follows:

[port]	[addrspace]
device0.0	0
device1.0	1
device1.1	2
device1.2	3

This allows the use of common (port,region) address map identifiers
across both bus types.

Depends on D6849

Test Plan

Tested on:

  • BCM4312 (WiFi)
  • WGT634U (SoC)

With these changes, the WGT634U can successfully attach CFI flash
using the existing bcma(4)-compatible resource spec.

Tinderbox kernel build is pending.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4232
Build 4276: arc lint + arc unit

Event Timeline

landonf retitled this revision from to siba(4): Adopt a bcma-compatible mapping of bhnd(4) port/region identifiers..
landonf updated this object.
landonf edited the test plan for this revision. (Show Details)
landonf added a reviewer: adrian.
adrian edited edge metadata.

looks good. email re@freebsd.org with a patch and a description of it so they can approve committing it to -head.

This revision is now accepted and ready to land.Jun 15 2016, 12:21 AM
This revision was automatically updated to reflect the committed changes.