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
Unknown Object (File)
Thu, Nov 6, 4:09 AM
Unknown Object (File)
Wed, Nov 5, 9:08 PM
Unknown Object (File)
Wed, Nov 5, 5:38 PM
Unknown Object (File)
Wed, Nov 5, 12:44 PM
Unknown Object (File)
Wed, Nov 5, 11:31 AM
Unknown Object (File)
Tue, Oct 28, 8:34 PM
Unknown Object (File)
Tue, Oct 28, 8:34 PM
Unknown Object (File)
Tue, Oct 28, 8:34 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 Not Applicable
Unit
Tests Not Applicable

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.