summaryrefslogtreecommitdiff
path: root/sys/arch/prep
AgeCommit message (Collapse)Author
2023-06-19Fix typo. unknwon -> unknownmsaitoh
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-06s/regster/register/ in comments and error messages.andvar
2023-02-09Adjust _all_ cinclude of *.local filesabs
- Ensure always at end - Use tab rather than spaces - Add consistent comment "Pull in optional local configuration - always at end" The only functional change is that a local file which tried to override an existing setting (eg with "no foo") would have failed in some cases before, but now will work
2023-02-09Ensure GENERIC.local is always at the end of GENERICabs
Where a GENERIC config had an existing inclusion of GENERIC.local, ensure it is always at the end of the file, with a consistent comment: # Pull in optional local configuration cinclude "arch/landisk/conf/GENERIC.local" This allows GENERIC.local to correctly override all options (This pass does not affect any GENERIC which did not already have an include of GENERIC.local)
2022-09-29swwdog(4): Add to GENERIC kernels.riastradh
Plus a handful of others that I'm familiar with. Lots of special- purpose kernels should probably have this too but I'm not going through all the arm, mips, and ppc evaluation board kernels to see which ones are relevant. Omitted from systems I know to be very small: - sun2/GENERIC - dreamcast/GENERIC Feel free to remove it from others that need to be kept smaller. Compile-tested a few of these just in case: - alpha/GENERIC - amd64/GENERIC - evbmips/OCTEON - i386/GENERIC - riscv/GENERIC PR kern/29702
2022-08-07UFS/LFS dirhash:simonb
- Enable UFS_DIRHASH if the architecture or kernel model specific config file can use 128MB of RAM or more. - Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel and by a number of NetBSD developers for years. - Add LFS_DIRHASH if LFS was enabled. - Be somewhat consistent with FS options order.
2022-06-18fix typos in word "functions" in comments, mainly s/fuctions/functions/.andvar
2022-06-03fix folloing->following typos in more files.andvar
also s/begginning/beginning/.
2022-05-22fix various small typos, mainly in comments.andvar
2022-04-30Fix fallout from libsa change; stand.h includes <sys/param.h> now.rin
Use '\0' instead of NULL for NUL-character.
2022-04-29Fix fallout from libsa change; stand.h includes <sys/param.h> now.rin
SCANWAIT and PWAIT are renamed to SCANDELAY and SCANWAIT, respectively, in order not to redefine PWAIT. XXX Too many copies for tgets.c...
2022-02-16powerpc: Sprinkle "memory" clobbers on eieio and nearby asm blocks.riastradh
Otherwise the compiler may reorder these around loads and stores, which mostly defeats the purpose. `asm volatile' just ensures the instruction isn't _deleted_; it may still move around.
2021-12-12fix various typos in comments.andvar
2021-12-12s/Miscellanous/Miscellaneous/ in copypasta comments.andvar
2021-11-01fix typos, mainly in words minimum and maximum, but also few others.andvar
2021-08-21fix mainly same typos as in my previous commit but outside sys/dev/dm.andvar
2021-08-07Merge thorpej-cfargs2.thorpej
2021-07-24Fix all remaining typos, mainly in comments but also in few definitions and ↵andvar
log messages, reported by me in PR kern/54889. Also fixed some additional typos in comments, found on review of same files or typos.
2021-06-29Remove uscanner(4) drivernia
This exists for compatibility with a Linux interface which was apparently deprecated in Linux 2.6. There are various mailing list threads going back to 2004 where the usefulness of this driver is discussed, but the conclusion is that scanner software has all moved to using ugen(4) instead, and enabling this driver will not help you scan things.
2021-04-24Merge thorpej-cfargs branch:thorpej
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments. Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.) Remove unnecessary or redundant interface attributes where they're not needed. There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles) ...and a sentinel value CFARG_EOL. Add some extra sanity checking to ensure that interface attributes aren't ambiguous. Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
2021-04-01Whitespace: #define<tab>simonb
2021-02-27Don't put #ifdefs in prep_initppc(). Instead, let callers specify thethorpej
additional BAT-mapped regions they care about.
2021-02-26Declare oeacpufeat once, in powerpc/oea/cpu_subr.c, rather than inthorpej
N different locore.S files.
2021-01-21add a commented out compat_ossaudio wherever there's compat_linuxnia
requested by mrg
2020-11-21malloc(9) -> kmem(9)thorpej
2020-09-27vether: Add to kernel configurationsroy
It's only enabled if the kernel enabled bridge AND tap. Otherwise it's commented out.
2020-09-15bump bebox and prep image sizes for GCC 9.mrg
2020-09-07apply some GCC_NO_ADDR_OF_PACKED_MEMBER.mrg
2020-08-01Remove references to BRIDGE_IPF, it is now compiled in by default.maxv
2020-07-07Overhaul the interface to pci_configure_bus():thorpej
- Don't expose how PCI bus configuration resource management is implemented. Provide a new resource provider API: ==> pciconf_resource_init() -- Initialize a PCI configuration resources container. ==> pciconf_resource_add() -- Add a PCI configuration resource to the container (I/O, MEM, or prefetchable MEM). Multiple resources of each type may be added. ==> pciconf_resource_fini() -- Tear down the PCI configurtation resources container once the bus has been configured. This is much easier to use than the previous method of providing an extent map for each kind of resource, and works better for e.g. ACPI platforms that provide potentially multiple PCI resources in tables provided by firmware. - Re-implement PCI configuration resource management using vmem arenas, rather than extent maps.
2020-06-14replace EX_NOWAIT with EX_WAITOK in device attach methods.chs
remove checks for failures that can no longer occur.
2020-05-16Remove uyap, USB YAP phone firmware loader.maya
And the associated ezload EZ-USB code, which is only used by uyap. It could theoretically be used by other drivers, but none of them are in tree. I suspect that this device isn't in use, as phone technology has improved a lot since 2001 when uyap(4) was added to the tree. Proposed with no objections on netbsd-users on 13 April 2020
2020-04-04mark nsmb major obsoletejdolecek
2020-02-29Remove rounding by 4 bytes on round_blocksize().isaki
For drivers which supports only 16bit * 2channels sampling, rounding by 4 bytes no longer meaningful.
2020-01-29remove urio(4), a driver for the Rio500 MP3 player.maya
At this point it is highly unlikely this 1999 device still has users, but it still comes up in the context of maxv's USB-fuzzing (and any device could pretend to be a urio(4)), so it's best to get rid of it. Renamed all major entries to obsolete, as was done in previous removals. This still requires an update to sanitizers, but they're located in "external", perhaps it should be first committed upstream? Proposed on tech-kern a month ago.
2020-01-19Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It isthorpej
long since obsolete.
2019-11-10in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAITchs
and remove code to handle failures that can no longer happen.
2019-09-03PR 54394: do not compile in experimental SCSI support by default,martin
#ifdef it out as it breaks some machines. Based on a patch by Ulrich Teichert, with #ifdef instead of comments suggested by nonaka@.
2019-05-08Merge isaki-audio2 branch, the overhaul of audio subsystem.isaki
- Interrupt-oriented system rather than thread-oriented. - Improve stability, quality and performance. - Split playback and record cleanly. Improve halfduplex support. - Many bugs are fixed including deadlocks, resource leaks, abuses, etc. - Simplify audio filter mechanism. The encoding/channels/frequency conversions are completely handled in the upper layer. So the hard- ware driver only converts its hardware encoding (if necessary). - audio_hw_if changes: - Obsoletes query_encoding and add query_format instead. - Obsoletes set_params and add set_format instead. - Remove drain, setfd, mappage. - The call sequences are changed. - ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted. - ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced. - cleanup config attributes: au*conv and mulaw. - All hardware drivers should follow it (I've done as much as possible). Some file paths are changed: - dev/audio.c -> dev/audio/audio.c (rewritten) - dev/audiovar.h -> dev/audio/audiovar.h - dev/audio_dai.h -> dev/audio/audio_dai.h - dev/audio_if.h -> dev/audio/audio_if.h - dev/audiobell.c -> dev/audio/audiobell.c - dev/audiobellvar.h -> dev/audio/audiobellvar.h - dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
2019-04-26Enable BUFQ_PRIOCSCAN, CARP, Veriexec by default in GENERIC kernel configs.sevan
On ports without a GENERIC kernel config enable in individul files, e.g evbmips. Omit on: atari, dreamcast, emips, epoc32, evbppc/VIRTEX*, ia64, luna68x, mvme68k, mvmeppc, playstation2, riscv, sun2, sun3, x68k, zaurus due to resource constraints or port infancy.
2019-03-16Use C99 style struct initializer to audio_hw_if.isaki
2019-02-06Add ure(4) to kernel config files. Also add PHY drivers where necessary.rin
2019-01-28Systematize handling of removed drivers.dholland
- Every driver that was removed and whose number hasn't already been reused is now listed with a commented-out "obsolete" line. - The format of these has been systematized. Future format changes can probably be safely done with a script. - This does not include a few cases of assignments that only lasted a couple days, or stuff from before major reorgs. Some of these may be included nonetheless, because there was a lot of ground to cover and therefore not a lot of time to dig into history in detail. Note that the obsolete listings do not mean the major numbers can never be reused; that's up to portmasters and/or core. It does mean that they won't be reused by accident, however, which in some cases (depending on the driver, how widely used it was, its family of device nodes, their default permissions, etc.) can be quite dangerous. Note that some of the things now explicitly listed as obsolete are really ancient history. My scan went back as far as when the majors files were added. (But not before that.)
2019-01-27Restore satlink's majors entries commented out and marked obsolete.dholland
Otherwise they might accidentally get reused later and cause a security problem.
2019-01-27Remove the satlink driver. It was disabled everywhere, had no man page andmaxv
no use either. Spotted by thorpej in PR/21345, ok christos.
2019-01-08no need to include <machine/param.h> if <sys/param.h> already includedjdolecek
2018-09-23Remove ISDN from the kernel. It has remained unmaintained for a long time,maxv
is of poor quality, and is now an obstacle to MP-ification. It was removed ten years ago from FreeBSD for the same reason. This retires a big user of the mbuf API, and will ease maintenance of the kernel.
2018-09-03Rename min/max -> uimin/uimax for better honesty.riastradh
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended. HOWEVER! Some subsystems have #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b)) even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation. To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it. I have left a handful of bootloaders that are too annoying to compile-test, and some dead code: cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4)) It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them. Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
2018-08-27Fix initialization order so we can boot again on IBM PPS Model 6015martin
(which needs pci interrupt fixup quirks). From Artyom Tarasenko.