summaryrefslogtreecommitdiff
path: root/sys/modules
AgeCommit message (Collapse)Author
2023-06-03adapt to ${CC_WNO_MAYBE_UNINITIALIZED}lukem
Use ${CC_WNO_MAYBE_UNINITIALIZED} instead of the older style more complex expressions. Remove workarounds if they were for a specific version of gcc < 10.
2023-06-03adapt to ${CC_WNO_IMPLICIT_FALLTHROUGH}lukem
Use ${CC_WNO_IMPLICIT_FALLTHROUGH} instead of the older style more complex expressions.
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-06-03bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBERlukem
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-05-29bsd.own.mk: rename NO_ADDR_OF_PACKED_MEMBER to CC_NO_ADDR_OF_PACKED_MEMBERlukem
Add "CC_" prefix to NO_ADDR_OF_PACKED_MEMBER. We now have the following convention: GCC_NO_*: Disable specific warnings from GCC. CLANG_NO_*: Disable specific warnings from Clang. CC_NO_*: Disable specific warnings from both Clang and GCC. This reserves "NO_*" Makefile variables to disable other features. Some space->tab fixes.
2023-05-07RISC-V support that works on QEMU with a single hart.skrll
Thanks for Simon Burge for plic(4).
2023-04-16Resolve conflicts for lua 5.4.4 import.nikita
Adjust various files for lua 5.4.4.
2023-04-13sys/modules/Makefile: Use MACHINE_CPU, not MACHINE_ARCH, for aarch64.riastradh
This way it covers both little-endian and big-endian.
2023-04-11aarch64: Build drm modules.riastradh
2023-02-18the HDAUDIO_ENABLE_HDMI option is obsolete. don't define here..mrg
2023-02-01ddbping - restore the original narration of the example, NFCIuwe
Adjust previous change so that it only replaces my home-grown define for the end marker with the new official DDB_END_CMD marker that it introduced. Undo the rest of that last change. As the author of this example I'm pretty sure what example I wanted to set and this narration order is an important part of it.
2023-01-31sys/modules/drmkms_pci: Remove drm_agpsupport.c.riastradh
This was moved to a separate drmkms_agp module. XXX pullup-10 XXX pullup-9, maybe (not sure any of modularized drmkms works in 9, though)
2023-01-31sys/modules/drmkms: Remove GPU scheduler files.riastradh
These have been moved out to drmkms_sched.kmod. XXX pullup-10
2022-12-19Create compat_100 module infrastructure now that we have branchedpgoyette
for NetBSD-10
2022-12-03Split the BMP280 / BME280 driver into common code and create I2C andbrad
SPI attachments.
2022-11-21A driver for the Bosch BMP280 / BME280 temperature, humidity andbrad
atmospheric pressure sensor. This is an inexpensive to moderately expensive chip available from a large number of places. The driver supports all aspects of the two chips, except for the repeating read mode which would allow for sub-second queries, such as fall detection or perhaps even as an altimeter. This driver also only supports the I2C interface and not the SPI interface. The BME280, the one with humidity, is not fully tested at this point, awaiting upon a breakout board and may not show proper humidity.
2022-11-17A driver for the Aosong AHT20 temperature and humidity sensor. Whilebrad
slow for an I2C sensor it is inexpensive and should work well enough in most indoor conditions. All features of the chip are supported.
2022-09-07Move emuxki from i386/amd64 specific modules to attachment specificmartin
modules (effectively disabling it for the build for now, as it needs setlist fixes and breaks the build).
2022-09-07emuxki(4): import a list of board definitionskhorben
This is inspired by the cxdtv(4) driver. Tested on NetBSD/amd64 with a Sound Blaster Live! Value (CT4870, PCI) and with a Sound Blaster Audigy Rx 7.1 (SB1550, PCIe). Additional sound cards sponsored by the NetBSD Foundation; thanks!
2022-09-07emuxki(4): allow building as a modulekhorben
Tested on NetBSD/amd64 with a Sound Blaster Live! Value (CT4870) Note that this required setting outputs.master to the maximum value allowed (255) to get sound out, and then cranking the volume pretty high. Additional sound cards sponsored by the NetBSD Foundation; thanks!
2022-08-11subr_prf.c & luasystm.c: s/panicing/panicking/ in commentsgutteridge
2022-08-09Now that UFS_DIRHASH is default for biuilt-in file system modules, wepgoyette
need to update the loadable module builds, too.
2022-08-07dtrace_sdt: Register sdt providers and probes in loaded modules too.riastradh
2022-07-30COPTS -> CWARNFLAGStnn
2022-07-30amdgpu: add some more CWARNFLAGS to appease clangtnn
XXX backport this change to files.amdgpu
2022-07-30amdgpu: don't set -mhard-float for clangtnn
clang complains that the option has no effect and it generates hard float instructions without the option. soft-float not really supported on x86_64 with clang from what I can tell.
2022-07-28drm: Hook up the drmkms modules to the build.riastradh
2022-07-28drmkms_sched: Remove duplicate module definition.riastradh
2022-07-28drmkms_sched: Revert previous MKLDSCRIPT, red herring.riastradh
2022-07-28drmkms_sched: Fix link sets in module.riastradh
2022-07-27Enable amdgpu module & firmware on x86maya
Make it easier to test this one out, add `load amdgpu` before boot netbsd. XXX there should probably be a drm block in sys/modules/Makefile which includes aarch64.
2022-07-24amdgpu: Sprinkle missing COPTS.amdgpu_float options.riastradh
For some reason x86 didn't need these but aarch64 does.
2022-07-23drm: Split scheduler into separate module.riastradh
Used only by amdgpu, and it uses something that is currently broken from the gcc update on aarch64, so let's make it a little more optional.
2022-07-20drm: Undefine `alpha' in the module build too.riastradh
2022-07-17drm: Modularize ttm.riastradh
2022-07-17drm: Include GPU scheduler in drmkms.kmod.riastradh
Could be split into a separate module, but whatever.
2022-07-17drm: Sync module/drmkms/Makefile with files.drmkms.riastradh
Unconditionally include legacy APIs for viadrmums.
2022-07-17drm: Dust off module build a little.riastradh
2022-06-04Combine the midi and sequencer modules into a single midi_seq modulepgoyette
to avoid a circular dependency as noted in kern/56772. Retain minimal modules of the original names to accomodate auto-loading upon access to the /dev/xxx nodes.
2022-06-01add now required pci.h / NPCI. (the ia64 version builds with PCImrg
enabled, but i guess it won't be usable.) XXX: enable this on evbarm*? it is x86/ia64 only currently.
2022-04-14Split some common stuff into scsi_subr module. This enables loadingpgoyette
of the iscsi module whether or not there are any scsi things built into the kernel. Addresses the iscsi portion of kern/56772
2022-04-01Create a loaable adiantum module, and make cgd require it.pgoyette
This enablees use of a loadable cgd module, rather thtan requiring it to be built-in. Partially resolves kern/56772
2022-04-01Split i2c_subr.c into a separate module rather than including it inpgoyette
the iic module. There are valid configurations where i2c_subr code can be both built-in and part of a loaded module (eg, piixpm is in the kernel, but the iic module is loaded later). This causes the in-kernel linker to detect a duplicate symbol.
2022-03-31For device modules that provide both auto-config and /dev/xxxpgoyette
interfaces, make sure that initialization and destruction follow the proper sequence. This is triggered by the recent changes to the devsw stuff; per riastradh@ the required call sequence is: devsw_attach() config_init_component() or config_cf*_attach() ... config_fini_component() or config_cf*_detach() devsw_detach() While here, add a few missing calls to some of the detach routines. Testing of these changes has been limited to: 1. compile without build break 2. no related test failures from atf 3. modload/modunload work as well as before. No functional device testing done, since I don't have any of these devices. Let me know of any damage I might cause here! XXX Some of the modules affected by this commit are already XXX broken; see kern/56772. This commit does not break any additional modules (as far as I know).
2022-03-28driver(9): devsw_detach never fails. Make it return void.riastradh
Prune a whole lotta dead branches as a result of this. (Some logic calling this is also wrong for other reasons; devsw_detach is final -- you should never have any reason to decide to roll it back. To be cleaned up in subsequent commits...) XXX kernel ABI change to devsw_detach signature requires bump
2022-01-27Turn off ALTQ in if_wg module, to match default kernel configsjakllsch
2022-01-08Use += for SRCS listpgoyette
2022-01-08Remove extra blank linepgoyette
2022-01-08Use \t for pre-comment white-spacepgoyette
2022-01-06Fix previous and actually disable UFS_DIRHASHpgoyette