summaryrefslogtreecommitdiff
path: root/sys/arch/algor
AgeCommit message (Collapse)Author
2022-06-07This kernels have no midi configured, so comment out pseudo-device sequencermartin
2021-08-20fix various typos in comments and log messages.andvar
2021-08-07Merge thorpej-cfargs2.thorpej
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-06-06Don't reset MACHINE_ARCH; it can be mipsn64el now, and we need to be ablechristos
to find the compiler.
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?).
2020-11-14malloc(9) -> kmem(9)thorpej
2020-08-17Add some compile time asserts for endianness on boards/systems thatsimonb
only support a single endianness.
2020-08-17remove duplicate symbol now published in shared mips.mrg
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-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-25Retire "le* at pci?" from the shipped kernel configs:thorpej
- If the config had both an le@pci and a pcn, simply remove le@pci (pcn would match at a higher priority anyway). - If the config had le@pci enabled, but no pcn, change le@pci to pcn. - If the config had le@pci commented out, but no pcn, change le@pci to pcn and leave it commented out. The pcn driver supports more chips than le@pci and does DMA directly to/from mbufs rather than memory copies.
2020-01-20Remove FDDI support.thorpej
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-04-13Add drvctl to kernel which has audio device.isaki
audiocfg(1) requires drvctl(4).
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-27Merge the [pgoyette-compat] branchpgoyette
2019-01-07move DEV_BSIZE, DEV_BSHIFT out of MD param.h, they are same on all portsjdolecek
also move BLKDEV_IOSIZE, MAXPHYS, but allow override since some ports have different value (powerpc uses NBPG for BLKDEV_IOSIZE, sun2/sun3 have lower MAXPHYS)
2018-12-08Clean up initialization of com_regs structure, in preparation forthorpej
some additional changers.
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-06Retire the 'midway' driver. Discussed on tech-net@ recently and also threemaxv
years ago, part of removing the network ATM code.
2018-08-25Add (commented out) mue(4) to where appropriate.rin
Also add MII/PHY drivers for USB NICs if missing.
2018-08-01Unreference IPF/PF from all the config files, and enable NPF instead whenmaxv
wanted. This also fixes some inconsistencies I saw in several files (eg IPF options while IPF was not compiled, IPF+PF enabled by default, etc).
2018-07-12Remove the kernel PMC code. Sent yesterday on tech-kern@.maxv
This change: * Removes "options PERFCTRS", the associated includes, and the associated ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is good. * Removes the PMC code of ARM XSCALE. * Removes all the pmc.h files. They were all empty, except for ARM XSCALE. * Reorders the x86 PMC code not to rely on the legacy pmc.h file. The definitions are put in sysarch.h. * Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control and sys_pmc_get_info syscalls. They are marked as OBSOL in kern, netbsd32 and rump. * Removes the pmc_evid_t and pmc_ctr_t types. * Removes all the associated man pages. The sets are marked as obsolete.
2017-09-14clean up COMPAT_* options for native netbsd code:mrg
- new series of files that are useful for saying "i want everything since netbsd 1.4", etc. - use the fact COMPAT_* options have future dependancies to remove many redundant options. removes about 3000 lines total across kernel configuration files. tested about 30 random kernels in the changed list.
2017-01-26provide __HAVE_COMPAT_NETBSD32 and fix multiple include protection consistently.christos
2016-12-22switch all ports to use uvm_init.c:uvm_md_init()cherry
uvm_setpagesize() is now subsumed within this funciton.
2016-12-13wildcard speaker attachments, now that we can handle many of them.christos
2016-12-08Add a synthesized pc beeper and keyboard bell for platforms with an audionat
device.
2016-08-26Adjust evbmips_iointr to pass a clockframe pointer and use it forskrll
pwmclock @ voyager. Suggested by matt@ Hi macallan!
2016-05-31If ALGOR_P6032 is not defined, set sc_bonito to NULL instead of usingdholland
random garbage off the stack. PR 51012 from David Binderman.
2015-12-21Add mips fenv.h (From FreeBSD)christos
2015-10-02PCI Extended Configuration stuff written by nonaka@:msaitoh
- Add PCI Extended Configuration Space support into x86. - Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1 if it isn't accessible. - Decode Extended Capability in PCI Extended Configuration Space. Currently the following extended capabilities are decoded: - Advanced Error Reporting - Virtual Channel - Device Serial Number - Power Budgeting - Root Complex Link Declaration - Root Complex Event Collector Association - Access Control Services - Alternative Routing-ID Interpretation - Address Translation Services - Single Root IO Virtualization - Page Request - TPH Requester - Latency Tolerance Reporting - Secondary PCI Express - Process Address Space ID - LN Requester - L1 PM Substates The following extended capabilities are not decoded yet: - Root Complex Internal Link Control - Multi-Function Virtual Channel - RCRB Header - Vendor Unique - Configuration Access Correction - Multiple Root IO Virtualization - Multicast - Resizable BAR - Dynamic Power Allocation - Protocol Multiplexing - Downstream Port Containment - Precision Time Management - M-PCIe - Function Reading Status Queueing - Readiness Time Reporting - Designated Vendor-Specific
2015-08-21Add `pseudo-device ksyms' where `options DDB' is used, becauseuebayasi
config(1)/config(5) can't handle module dependency correctly at this moment. (This is another proof that shared file definition (`file xxx.c a|b') is a bad idea.)
2015-06-30Use cpu_startup_common()matt
2015-06-09#include <mips/cpuregs.h>matt
2014-08-23Systematize (and in many cases, fix) the comments on options COMPAT_NN.dholland
There are quite a few configs that are missing some COMPAT_NN options in ways that don't make sense; this should probably get cleaned up too, but for the time being I've not added or removed anything.
2014-08-17Reorganize symbol table embedding. The existing option SYMTAB_SPACE isjoerg
replaced by the make option COPY_SYMTAB set to any value. The copy of the symbol table is no longer put into a buffer in kern_ksyms.o, but a small helper object. This object is build first with a dummy size, then the kernel is linked to compute the real dimension of the symbol table buffer. After that, the helper object is rebuild and the kernel linked again.
2014-07-20Include sljit files.alnsn
2014-07-20Add commented out bpfjit options to mips kernels.alnsn
While here, add 2 missing RCS ids.
2014-03-29make pci_intr_string and eisa_intr_string take a buffer and a lengthchristos
instead of relying in local static storage.
2014-03-24use cpu_{g,s}etmodelchristos
2013-06-05remove obsolete networking optionschristos
2013-04-27more bogus number removalchristos