newbus: replace leftover device unit wildcardsReviewed by: imp, jhbApproved by: imp (mentor)Differential Revision: https://reviews.freebsd.org/D50913
machine/stdarg.h -> sys/stdarg.hSwitch to using sys/stdarg.h for va_list type and va_* builtins.Make an attempt to insert the include in a sensible place. Wherestyle(9) was followed this is eas
machine/stdarg.h -> sys/stdarg.hSwitch to using sys/stdarg.h for va_list type and va_* builtins.Make an attempt to insert the include in a sensible place. Wherestyle(9) was followed this is easy, where it was ignored, aim for thefirst block of sys/*.h headers and don't get too fussy or try to fixother style bugs.Reviewed by: impExp-run by: antoine (PR 286274)Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
show more ...
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
bus_delayed_attach_children: Switch return type to voidThis function never fails similar to bus_attach_children.Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D47677
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
i2c: Add cadence iic driverThis IP is found in Xilinx SoC, it only been tested on ZynqMP (arm64)so only enable it there for now.Differential Revision: https://reviews.freebsd.org/D41994