chore: replace {0, 0} with {DEV,KOBJ}METHOD_ENDBoth of the aforementioned macros have been present in FreeBSDfor well over a decade: 2009 for `KOBJMETHOD_END`; 2011 for`DEVMETHOD_END`.Adapt all
chore: replace {0, 0} with {DEV,KOBJ}METHOD_ENDBoth of the aforementioned macros have been present in FreeBSDfor well over a decade: 2009 for `KOBJMETHOD_END`; 2011 for`DEVMETHOD_END`.Adapt all hardcoded references of `{0, 0}` with `DEVMETHOD_END`and `KOBJMETHOD_END` as appropriate. This helps ensure thatfuture adaptations to drivers following patterns documentedin driver(9) can be made more easily/without issue.MFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D55414
show more ...
a10_twsi: Add H616 compat stringReviewed by: manuSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D54914
newbus: replace leftover device unit wildcardsReviewed by: imp, jhbApproved by: imp (mentor)Differential Revision: https://reviews.freebsd.org/D50913
bus_generic_detach: Delete children after detaching themThis provides better semantics as a standalone DEVMETHOD fordevice_attach as bus drivers should remove child devices they createdas part of
bus_generic_detach: Delete children after detaching themThis provides better semantics as a standalone DEVMETHOD fordevice_attach as bus drivers should remove child devices they createdas part of detach cleanup. The implementation callsbus_detach_children() first to permit child devices an opportunity toveto the detach operation. If that succeeds, device_delete_children()is used to delete the child devices.This requires fixing various drivers that were deleting devicesexplicitly (via a device_t pointer cached in the softc) after callingbus_generic_detach to stop doing that and just rely onbus_generic_detach to remove child devices.Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D47959
Replace calls to bus_generic_attach with bus_attach_childrenReviewed by: impDifferential Revision: https://reviews.freebsd.org/D47675
hwreset: Move reset code in dev/hwresetWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a
hwreset: Move reset code in dev/hwresetWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of consumer of it and we made it mandatoryso no need to have it under a cryptic name.Reviewed by: impSponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D43192
clk: Move clock code in dev/clkWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of
clk: Move clock code in dev/clkWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of consumer of it and we made it mandatoryso no need to have it under a cryptic name.Reviewed by: mhorneSponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D43191
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remov
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/Remove /\n+#if.*\n#endif.*\n+/Remove /^#if.*\n#endif.*\n/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/Sponsored by: Netflix
iicbus: Move twsi under a new controller subdirectoryThe folder is a mess so start moving stuff into sub-directories.Sponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https:/
iicbus: Move twsi under a new controller subdirectoryThe folder is a mess so start moving stuff into sub-directories.Sponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D41907