summaryrefslogtreecommitdiff
path: root/sys/arch/ofppc
AgeCommit message (Collapse)Author
2023-02-12Add optoion GENERIC.local include to the end of ~all GENERIC configsabs
This excludes atari, sgimips, evbmips, evbppc, evbsh3, and hpcarm all of which have somewhat specific kernel config file layouts
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-07-05s/odly/oddly/ in comments.andvar
2022-05-24fix various typos in comments, docs and log messages.andvar
2021-12-12s/Miscellanous/Miscellaneous/ in copypasta comments.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-05-17include libkern.h for moved dkcksum().mrg
2021-05-12- Define a device call for PCI bus instances to fetch a direct child'sthorpej
device handle given the device's device/function #s (extracted from a pcitag_t). Use it to associate the handle with the child device at config_found() time. - Implement this device call for ACPI and OpenFirmware. - Enable the OpenFirmware variant for evbarm FDT, macppc, ofppc, sparc64. - Obsolete acpi_device_register(); it is no longer needed. - Obsolete setting the OpenFirmware handle in PCI devices in the sparc64 device_register(); it is no longer needed.
2021-05-12Pass along our device handle to the PCI bus instance we attach.thorpej
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-14more -fcommon.mrg
2021-04-12remove shadowed (common) declarations of various libsa variablesmrg
from various boot programs. for macppc and zaurus, avoid building with -fcommon any more.
2021-03-05Move ofppc-specific CPU spinup code to ofppc/machdep.cthorpej
2021-03-05Don't include mvgbe in this kernel config; that driver has an explicitthorpej
warning for the MULTIPROCESSOR case.
2021-02-27Un-do a bunch of misguided code sharing. It's not really shared if it'sthorpej
full of platform-specific #ifdefs: - ofwoea_batinit() is gone; just do what's needed early in macppc / ofppc initppc() functions. - Get a bunch of Mac-specific stuff out of ofwoea_initppc().
2021-02-26Declare oeacpufeat once, in powerpc/oea/cpu_subr.c, rather than inthorpej
N different locore.S files.
2021-02-17Document the register state on entry per the OpenFirmware PowerPC CPUthorpej
bindings. Ensure we save off %r6 and %r7 before calling any other functions.
2021-01-23Document via __HAVE_BUS_SPACE_8 platforms that implement bus_space_*_8christos
2021-01-21add a commented out compat_ossaudio wherever there's compat_linuxnia
requested by mrg
2020-11-29Message buffer is too small, since timestamps were enforced.phx
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-15partial port to powerpc64.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-07-07It turned out that using some Open Firmware routines causes the systemrin
freeze after calling OF_quiesce(). This is why setting color palette crash the system for some Power Mac G5 models, like PowerMac11,2. Therefore, stop using color-palette and backlight callbacks for genfb(4) in this case. Also, postpone OF_quiesce() after rascons_init_rasops(), and initialize color palette there if OF is going to be quiesced and color depth is 8. Now, color palette for wscons is initialized correctly for PowerMac11,2.
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
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-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-04-03centralize setdisklabel(9)christos
2019-02-06Add ure(4) to kernel config files. Also add PHY drivers where necessary.rin
2019-01-08workaround a problem with the pegasos firmware interface:mrg
attempting to use /dev/openfirm on this machine hangs hard. this isn't a new problem, and i've been meaning to try to figure it out for years, but it's become a problem since the xf86-video-radeon driver gained code to look for the macppc model using this interface. this is why xorg-server 1.18 and 1.20 hang recently on the pegasosII. this change is fairly ugly but i couldn't think of a less ugly method to avoid /dev/openfirm working just on this one platform. introduce new __OPENFIRMIO_OPEN_CHECK_BROKEN macro and associated __openfirmio_open_check_broken(), and use them in the new openfirmopen() to fail opens. include proplib.h in macppc and ofppc autoconf.h since they use it.
2018-10-23remove the 'wd* at umass?' for the non-standardized and rare (extinct?)jdolecek
In-System Design ATA protocol over Bulk-Only devices from most kernels, leave only in i386/amd64 ALL; it's unmaintained and likely currently broken, lack of test hardware makes it impossible to support
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-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-15Retire ipkdb entirely. The option was removed from the config filesmaxv
yesterday. ok kamil christos
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-12-18Generalise FDT and OFWskrll
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-09-13Remove support for VERIFIED_EXEC_FP_RMD160, VERIFIED_EXEC_FP_SHA1, and ↵sevan
VERIFIED_EXEC_FP_MD5 options. These algorithms are either broken or on their way to being broken. Discussed on tech-security http://mail-index.netbsd.org/tech-security/2017/08/21/msg000936.html ok riastradh
2017-07-29Remove TCP_COMPAT_42 from the config files. Pass 3.maxv
2017-04-08centralize vers.c building for standalone programs.christos
2017-03-05fix some printf formats in DIAGNOSTIC code.mrg
2017-02-26Add DKWEDGE_METHOD_RDB option, which is enabled for x86, commented out forrin
other platforms by default.
2017-01-26provide __HAVE_COMPAT_NETBSD32 and fix multiple include protection consistently.christos
2017-01-11PR/51827: David Binderman: delete pointless local variablechristos