aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/bhnd/cores
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-234-4/+0
| | | | | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/ Similar commit in current: (cherry picked from commit 031beb4e239b)
* sys/modules: normalize .CURDIR-relative paths to SRCTOPEnji Cooper2017-03-043-6/+6
| | | | | | | | | | | This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314651
* Revert r308107Li-Wen Hsu2016-10-303-3/+3
| | | | | | | Requested by: jhb Notes: svn path=/head/; revision=308115
* - Fix `make` in sys/modules/bhndLi-Wen Hsu2016-10-303-3/+3
| | | | | | | | Approved by: landonf Differential Revision: https://reviews.freebsd.org/D7774 Notes: svn path=/head/; revision=308107
* bhnd(4): Initial PMU/PWRCTL power and clock management support.Landon J. Fuller2016-08-272-13/+1
| | | | | | | | | | | | | | | | - Added bhnd_pmu driver implementations for PMU and PWRCTL chipsets, derived from Broadcom's ISC-licensed HND code. - Added bhnd bus-level support for routing per-core clock and resource power requests to the PMU device. - Lift ChipCommon support out into the bhnd module, dropping bhnd_chipc. Reviewed by: mizhka Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D7492 Notes: svn path=/head/; revision=304870
* [bhnd] Implement pass-through resource management for ChipCommon.Adrian Chadd2016-05-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patchset adds support to bhnd_chipc for sharing SYS_RES_MEMORY resources with its children, allowing us to hang devices off of bhnd_chipc that rely on access to a subset of the device register space that bhnd_chipc itself must also allocate. We could avoid most of this heavy lifting if RF_SHAREABLE+SYS_RES_MEMORY wasn't limited to use with allocations at the same size/offset. As a work-around, I implemented something similar to vga_pci.c, which implements similar reference counting of of PCI BAR resources for its children. With these changes, chipc will use reference counting of SYS_RES_MEMORY allocation/activation requests, to decide when to allocate/activate/ deactivate/release resources from the parent bhnd(4) bus. The requesting child device is allocated a new resource from chipc's rman, pointing to (possibly a subregion of) the refcounted bhnd resources allocated by chipc. Other resource types are just passed directly to the parent bhnd bus; RF_SHAREABLE works just fine with IRQs. I also lifted the SPROM device code out into a common driver, since this now allows me to hang simple subclasses off of a common driver off of both bhndb_pci and bhnd_chipc. Tested: * (landonf) Tested against BCM4331 and BCM4312, confirmed that SPROM still attaches and can be queried. Submitted by: Landon Fuller <landonf@landonf.org> Reviewed by: mizkha@gmail.com Differential Revision: https://reviews.freebsd.org/D6471 Notes: svn path=/head/; revision=300548
* [bhnd] Finish bhnd(4) PCI/PCIe-G1 hostb support.Adrian Chadd2016-05-173-5/+10
| | | | | | | | | | | | | | | Now that we've got access to SPROM and can access board identification, this implements all known remaining hardware work-arounds for the bhnd(4) PCI and PCIe-G1 cores operating endpoint mode. Additionally, this adds an initial set of skeleton PCIe-G2 hostb and pcib drivers, required by fullmac and newer softmac devices. Submitted by: Landon Fuller <landonf@landonf.org> Differential Revision: https://reviews.freebsd.org/D6377 Notes: svn path=/head/; revision=300015
* [bhnd] Initial bhnd(4) SPROM/NVRAM support.Adrian Chadd2016-05-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | This adds support for the NVRAM handling and the basic SPROM hardware used on siba(4) and bcma(4) devices, including: * SPROM directly attached to the PCI core, accessible via PCI configuration space. * SPROM attached to later ChipCommon cores. * SPROM variables vended from the parent SoC bus (e.g. via a directly-attached flash device). Additional improvements to the NVRAM/SPROM interface will be required, but this changeset stands alone as working checkpoint. Submitted by: Landon Fuller <landonf@landonf.org> Reviewed by: Michael Zhilin <mizkha@gmail.com> (Broadcom MIPS support) Differential Revision: https://reviews.freebsd.org/D6196 Notes: svn path=/head/; revision=299241
* [bhnd] Add a common bhnd_pci driver shared by both bhnd_pcib and bhnd_pci_hostbAdrian Chadd2016-04-221-4/+2
| | | | | | | | | | | | This extracts common code from bhndb_pci, bhnd_pcib, and bhnd_pci_hostb into a simpler shared bhnd_pci base driver, and should enable SoC-side implementation of bhnd_pcib root complex support. Submitted by: Landon Fuller <landonf@landonf.org> Differential Revision: https://reviews.freebsd.org/D5763 Notes: svn path=/head/; revision=298479
* Add modules support for the bhnd code.Adrian Chadd2016-02-265-0/+47
Submitted by: Landon Fuller <landonf@landonf.org> Obtained from: https://github.com/landonf/freebsd/compare/user/landonf/bcm4331-CURRENT Notes: svn path=/head/; revision=296078