bhnd: clean up empty lines in .c and .h files
SPDX: license IDs for some ISC-related files.
bhnd(4): Fix bcma/siba core reset behaviorAdd missing support for specifying I/O control flags during core reset,and resolve a number of siba(4)-specific reset issues:- Add missing check for tar
bhnd(4): Fix bcma/siba core reset behaviorAdd missing support for specifying I/O control flags during core reset,and resolve a number of siba(4)-specific reset issues:- Add missing check for target reject flags in siba_is_hw_suspended().- Remove incorrect wait on SIBA_TMH_BUSY when modifying any target state register; this should only be done when waiting for initiated transactions to clear.- Add missing wait on SIBA_IM_BY when asserting SIBA_IM_RJ.- Overwrite any previously set SIBA_TML_REJ flag when bringing the core out of reset. This fixes a lockup that occured when we brought up a core (after reboot) that had previously been placed into RESET by siba_bwn(4).Approved by: adrian (mentor, implicit)Sponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D13039
show more ...
bhnd(4): implement MIPS and PCI(e) interrupt supportOn BHND MIPS SoCs, this replaces the use of hard-coded MIPS IRQ#s in thecommon bhnd(4) core drivers; we now register an INTRNG child PIC thatha
bhnd(4): implement MIPS and PCI(e) interrupt supportOn BHND MIPS SoCs, this replaces the use of hard-coded MIPS IRQ#s in thecommon bhnd(4) core drivers; we now register an INTRNG child PIC thathandles routing of backplane interrupt vectors via the MIPS core.On BHND PCI devices, backplane interrupt vectors are now routed to thePCI/PCIe host bridge core when bus_setup_intr() is called, where they aredispatched by the PCI core via a host interrupt (e.g. INTx/MSI).The bhndb(4) bridge driver tracks registered interrupt handlers for thebridged bhnd(4) devices and manages backplane interrupt routing, whiledelegating actual bus interrupt setup/teardown to the parent bus on behalfof the bridged cores.Approved by: adrian (mentor, implicit)Sponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D12518
bhnd: Remove unsupported USB core IDs from the bhnd_usb device table.This resolves a SoC reset triggered by attempting to attach to theBCM5365's USB 1.1 controller.Approved by: adrian (mentor, i
bhnd: Remove unsupported USB core IDs from the bhnd_usb device table.This resolves a SoC reset triggered by attempting to attach to theBCM5365's USB 1.1 controller.Approved by: adrian (mentor, implicit)
bhnd: initialize variable before useReported by: ClangMFC after: 1 weekSponsored by: The FreeBSD Foundation
sys/dev: Replace zero with NULL for pointers.Makes things easier to read, plus architectures may set NULL to somethingdifferent than zero.Found with: devel/coccinelleMFC after: 3 weeks
Fix device delete child function.When detaching device trees parent devices must be detached prior todetaching its children. This is because parent devices can havepointers to the child devices i
Fix device delete child function.When detaching device trees parent devices must be detached prior todetaching its children. This is because parent devices can havepointers to the child devices in their softcs which are notinvalidated by device_delete_child(). This can cause use after freeissues and panic().Device drivers implementing trees, must ensure its detach functiondetaches or deletes all its children before returning.While at it remove now redundant device_detach() calls beforedevice_delete_child() and device_delete_children(), mostly inthe USB controller drivers.Tested by: Jan Henrik Sylvester <[email protected]>Reviewed by: jhbDifferential Revision: https://reviews.freebsd.org/D8070MFC after: 2 weeks
bhnd(4): Implement common API for IOST/IOCTL register access and core reset- Added bhnd(4) bus APIs for per-core ioctl/iost register access.- Updated reset/suspend bhnd(4) APIs for compatibility
bhnd(4): Implement common API for IOST/IOCTL register access and core reset- Added bhnd(4) bus APIs for per-core ioctl/iost register access.- Updated reset/suspend bhnd(4) APIs for compatibility with ioctl/iost changes.- Implemented core reset/suspend support for both bcma(4) and siba(4).- Implemented explicit release of all outstanding PMU requests at the bus level when putting a core into reset.Approved by: adrian (mentor, implicit)Differential Revision: https://reviews.freebsd.org/D8009
[BHND/USB] Port of EHCI/OHCI support from ZRouterThis patch adds driver implementation for BHND USB core. Driver has beenimported from ZRouter project with small adaptions for FreeBSD 11.Also it
[BHND/USB] Port of EHCI/OHCI support from ZRouterThis patch adds driver implementation for BHND USB core. Driver has beenimported from ZRouter project with small adaptions for FreeBSD 11.Also it's enabled for BroadCom MIPS74k boards by default. It's fully testedon Asus boards (RT-N16: external USB, RT-N53: USB bus between SoC and WiFichips).Reviewed by: adrian (mentor), rayApproved by: adrian (mentor)Obtained from: ZRouterDifferential Revision: https://reviews.freebsd.org/D7781