Commit Graph

881 Commits

Author SHA1 Message Date
mrg 00473bc1c0 the HDAUDIO_ENABLE_HDMI option is obsolete. don't define here.. 2023-02-18 05:25:59 +00:00
uwe 9e9fc3f711 ddbping - restore the original narration of the example, NFCI
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-02-01 10:22:20 +00:00
riastradh 72bf6c3073 sys/modules/drmkms_pci: Remove drm_agpsupport.c.
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-31 13:09:54 +00:00
riastradh 551ca113e1 sys/modules/drmkms: Remove GPU scheduler files.
These have been moved out to drmkms_sched.kmod.

XXX pullup-10
2023-01-31 13:09:04 +00:00
pgoyette 189762b34e Create compat_100 module infrastructure now that we have branched
for NetBSD-10
2022-12-19 23:19:51 +00:00
brad 50bb9ed19f Split the BMP280 / BME280 driver into common code and create I2C and
SPI attachments.
2022-12-03 01:04:42 +00:00
brad 068b504f95 A driver for the Bosch BMP280 / BME280 temperature, humidity and
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-21 21:24:00 +00:00
brad 50bf6d2dfd A driver for the Aosong AHT20 temperature and humidity sensor. While
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-11-17 19:20:05 +00:00
martin 6e81fb1ea4 Move emuxki from i386/amd64 specific modules to attachment specific
modules (effectively disabling it for the build for now, as it needs
setlist fixes and breaks the build).
2022-09-07 11:26:23 +00:00
khorben 664760effc emuxki(4): import a list of board definitions
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-07 03:34:43 +00:00
khorben 347306b26e emuxki(4): allow building as a module
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-09-07 00:29:23 +00:00
gutteridge a7992fb1de subr_prf.c & luasystm.c: s/panicing/panicking/ in comments 2022-08-11 23:53:03 +00:00
pgoyette a52ee8aacd Now that UFS_DIRHASH is default for biuilt-in file system modules, we
need to update the loadable module builds, too.
2022-08-09 20:05:14 +00:00
riastradh 81efaf9e90 dtrace_sdt: Register sdt providers and probes in loaded modules too. 2022-08-07 20:47:05 +00:00
tnn 3810c27940 COPTS -> CWARNFLAGS 2022-07-30 03:29:52 +00:00
tnn f899d637c6 amdgpu: add some more CWARNFLAGS to appease clang
XXX backport this change to files.amdgpu
2022-07-30 03:26:45 +00:00
tnn 0d2f884dc0 amdgpu: don't set -mhard-float for clang
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-30 03:12:00 +00:00
riastradh 709f669d54 drm: Hook up the drmkms modules to the build. 2022-07-28 22:00:23 +00:00
riastradh 70b674691d drmkms_sched: Remove duplicate module definition. 2022-07-28 10:42:45 +00:00
riastradh abf396b457 drmkms_sched: Revert previous MKLDSCRIPT, red herring. 2022-07-28 10:41:07 +00:00
riastradh d223d7a6fc drmkms_sched: Fix link sets in module. 2022-07-28 10:24:46 +00:00
maya 895e74fe94 Enable amdgpu module & firmware on x86
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-27 18:29:35 +00:00
riastradh 2c5cf2455f amdgpu: Sprinkle missing COPTS.amdgpu_float options.
For some reason x86 didn't need these but aarch64 does.
2022-07-24 20:05:00 +00:00
riastradh 29ed65e473 drm: Split scheduler into separate module.
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-23 12:52:09 +00:00
riastradh c086332808 drm: Undefine `alpha' in the module build too. 2022-07-20 01:11:39 +00:00
riastradh 76f861686f drm: Modularize ttm. 2022-07-17 15:36:05 +00:00
riastradh 84936b9b9e drm: Include GPU scheduler in drmkms.kmod.
Could be split into a separate module, but whatever.
2022-07-17 15:35:42 +00:00
riastradh fa2fa0c741 drm: Sync module/drmkms/Makefile with files.drmkms.
Unconditionally include legacy APIs for viadrmums.
2022-07-17 15:05:09 +00:00
riastradh 2f7fddcfb3 drm: Dust off module build a little. 2022-07-17 14:11:40 +00:00
pgoyette d2d4d4364b Combine the midi and sequencer modules into a single midi_seq module
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-04 03:31:10 +00:00
mrg 612bc22b90 add now required pci.h / NPCI. (the ia64 version builds with PCI
enabled, but i guess it won't be usable.)

XXX:  enable this on evbarm*?  it is x86/ia64 only currently.
2022-06-01 00:50:24 +00:00
pgoyette 9dda5c7f82 Split some common stuff into scsi_subr module. This enables loading
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-14 16:50:26 +00:00
pgoyette bb82a354ac Create a loaable adiantum module, and make cgd require it.
This enablees use of a loadable cgd module, rather thtan requiring
it to be built-in.

Partially resolves kern/56772
2022-04-01 21:09:24 +00:00
pgoyette 7694d68911 Split i2c_subr.c into a separate module rather than including it in
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-04-01 15:49:11 +00:00
pgoyette 97f8debd62 For device modules that provide both auto-config and /dev/xxx
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-31 19:30:15 +00:00
riastradh e7bed28911 driver(9): devsw_detach never fails. Make it return void.
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-03-28 12:33:20 +00:00
jakllsch bedff5a9ab Turn off ALTQ in if_wg module, to match default kernel configs 2022-01-27 14:18:40 +00:00
pgoyette be1f2c719a Use += for SRCS list 2022-01-08 02:00:49 +00:00
pgoyette c8c2d0fce9 Remove extra blank line 2022-01-08 01:58:16 +00:00
pgoyette 80c3d1e53d Use \t for pre-comment white-space 2022-01-08 01:50:54 +00:00
pgoyette 2cd8b844be Fix previous and actually disable UFS_DIRHASH 2022-01-06 20:41:30 +00:00
pgoyette 67f139e20e Since UFS_DIRHASH is explicitly disabled in GENERIC kernels (due to
being suspected of memory corruption), it should not be enabled in
the default module configurations either.
2022-01-06 15:08:56 +00:00
riastradh 20728f1657 Fix i386 modules build: viadrmums requires CONFIG_DRM_LEGACY. 2021-12-19 16:01:29 +00:00
riastradh dbe27f2b6c amdgpu: New kernel module build goo. 2021-12-19 12:39:09 +00:00
riastradh 5f08c807aa drm: Sync (device-independent) drmkms*.kmod makefiles. 2021-12-19 11:54:24 +00:00
riastradh eafdbb6951 Suppress some harmless clang warnings. 2021-12-19 01:03:42 +00:00
riastradh 28f48067ac Rename fence -> dma_fence, step 2: files files. 2021-12-19 00:27:09 +00:00
brad bf53d44167 A driver and user land utility for the Sparkfun Serial Controlled Motor
Driver module as illustrated here:

https://www.sparkfun.com/products/13911

A SCMD module is a ARM SOC simular to a Arduino in front of a motor
driver chip.  The single SCMD module can control two motors and up to
16 additional modules can be chained together using an internal I2C
bus.  One can interface with the SCMD using tty uart commands, SPI or
I2C.  The driver in this commit adds a kernel driver for the I2C and
SPI interfaces.  The command line utility provides a set of
convenience commands that support most of the functions of the SCMD
and is able to use the tty uart mode, SPI user land or the included
kernel driver in a uniform manor.

The use of the SCMD module is mostly for small robots and the like,
but it can control anything that is controllable by voltage.
2021-12-07 17:39:53 +00:00
ryo dc1714c87d fix build for aarch64eb 2021-11-27 05:36:39 +00:00
ryo 2f5e5e7356 add support COMPAT_LINUX32 for aarch64 2021-11-25 03:08:03 +00:00