summaryrefslogtreecommitdiff
path: root/sys/dev/isa/spkr_pcppi.c
AgeCommit message (Collapse)Author
2022-09-25Remove unnecessary include of <sys/malloc.h>.thorpej
2021-04-03Rework about the rest note in speaker(4).isaki
- Obsolete the sc_rest callback. The rest note operation can be done by the common spkr layer. This also fixes PR kern/56060. This work-in-progress patch was left in my local tree for years. :( - Improve calculations of tone and rest length.
2021-04-03Improve SPKRDEBUG code.isaki
- Replace wrong aprint_debug_dev() with device_printf(). By this, it no longer need to print dev_t. - Improve some messages.
2017-06-14Instead of directly referencing a parent device's code (ie, pcppi_bell()pgoyette
routine), let the parent device pass a pointer to the code (in the aux config data). This allows us to load the spkr module without requiring the pcppi parent device to exist. (The spkr device can also have an audio as parent.)
2017-06-11Implement xxx_rescan() and xxx_childdet() functions; these will bepgoyette
needed when child device wsbell(4) becomes a separately-loadable module.
2017-01-06Implement a common spkr_detach() function and call it from thepgoyette
attachment-specific detach functions. Returns EBUSY if the device instance is busy, based on whether or not a sc->sc_inbuf is allocated. The buffer is malloc()d at spkropen time, and is free()d in spkrclose(). Now we can actually implement the MODULE_CMD_FINI command and unload the driver at will. Addresses my PR kern/51785
2016-12-15Create a single combined module for spkr_pcppi and spkr_audio, andpgoyette
build it for all architectures. By doing this, we can handle pcppi, audio, or both attachments with non-built-in modules. XXX Still to do: the module currently cannot be unloaded, and the XXX spkr device(s) currently cannot be detached. (Really, two XXX sides of the same problem.)
2016-12-14print more info during autoconfigchristos
2016-12-14correct spkr softc.christos
2016-12-13Restructure speaker devices so that there can be multiple of them, and havechristos
proper softc's.
2016-12-09fix module buildchristos
XXX: spkr module is the pcppi version.
2016-12-09move spkrio.h out of isachristos
2016-12-09more spkr rework.christos
2016-12-09split out the pcppi attachment of the speakerchristos
XXX: needs more work