Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
sys: Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
sys/modules: normalize .CURDIR-relative paths to SRCTOPThis simplifies make output/logicTested with: `cd sys/modules; make ALL_MODULES=` on amd64MFC after: 1 monthSponsored by: Dell EMC Isilon
Revert r308107Requested by: jhb
- Fix `make` in sys/modules/bhndApproved by: landonfDifferential Revision: https://reviews.freebsd.org/D7774
bhnd(4): Initial PMU/PWRCTL power and clock management support.- Added bhnd_pmu driver implementations for PMU and PWRCTL chipsets, derived from Broadcom's ISC-licensed HND code.- Added bhnd bu
bhnd(4): Initial PMU/PWRCTL power and clock management support.- 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: mizhkaApproved by: adrian (mentor)Differential Revision: https://reviews.freebsd.org/D7492
show more ...
[bhnd] Implement pass-through resource management for ChipCommon.This patchset adds support to bhnd_chipc for sharing SYS_RES_MEMORYresources with its children, allowing us to hang devices off of
[bhnd] Implement pass-through resource management for ChipCommon.This patchset adds support to bhnd_chipc for sharing SYS_RES_MEMORYresources with its children, allowing us to hang devices off ofbhnd_chipc that rely on access to a subset of the device register spacethat bhnd_chipc itself must also allocate.We could avoid most of this heavy lifting if RF_SHAREABLE+SYS_RES_MEMORYwasn't limited to use with allocations at the same size/offset.As a work-around, I implemented something similar to vga_pci.c, whichimplements similar reference counting of of PCI BAR resources for itschildren.With these changes, chipc will use reference counting of SYS_RES_MEMORYallocation/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'srman, pointing to (possibly a subregion of) the refcounted bhnd resourcesallocated 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 thisnow allows me to hang simple subclasses off of a common driver off of bothbhndb_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.comDifferential Revision: https://reviews.freebsd.org/D6471
[bhnd] Finish bhnd(4) PCI/PCIe-G1 hostb support.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
[bhnd] Finish bhnd(4) PCI/PCIe-G1 hostb support.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 pcibdrivers, required by fullmac and newer softmac devices.Submitted by: Landon Fuller <landonf@landonf.org>Differential Revision: https://reviews.freebsd.org/D6377
[bhnd] Initial bhnd(4) SPROM/NVRAM support.This adds support for the NVRAM handling and the basic SPROMhardware used on siba(4) and bcma(4) devices, including:* SPROM directly attached to the PC
[bhnd] Initial bhnd(4) SPROM/NVRAM support.This adds support for the NVRAM handling and the basic SPROMhardware 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 willbe required, but this changeset stands alone as workingcheckpoint.Submitted by: Landon Fuller <landonf@landonf.org>Reviewed by: Michael Zhilin <mizkha@gmail.com> (Broadcom MIPS support)Differential Revision: https://reviews.freebsd.org/D6196
[bhnd] Add a common bhnd_pci driver shared by both bhnd_pcib and bhnd_pci_hostbThis extracts common code from bhndb_pci, bhnd_pcib, and bhnd_pci_hostb into asimpler shared bhnd_pci base driver, an
[bhnd] Add a common bhnd_pci driver shared by both bhnd_pcib and bhnd_pci_hostbThis extracts common code from bhndb_pci, bhnd_pcib, and bhnd_pci_hostb into asimpler shared bhnd_pci base driver, and should enable SoC-side implementationof bhnd_pcib root complex support.Submitted by: Landon Fuller <landonf@landonf.org>Differential Revision: https://reviews.freebsd.org/D5763
Add modules support for the bhnd code.Submitted by: Landon Fuller <landonf@landonf.org>Obtained from: https://github.com/landonf/freebsd/compare/user/landonf/bcm4331-CURRENT