summaryrefslogtreecommitdiff
path: root/sys/arch/evbppc/explora
AgeCommit message (Collapse)Author
2022-06-04- Use register prefix (%r).rin
- Remove workaround for old gas(1) bug. No binary changes.
2022-05-29le(4): Fix resource leaks for error paths.rin
XXX Compile test only (at least one arch per driver).
2021-12-08fix various typos in comments and log messages.andvar
2021-08-07Merge thorpej-cfargs2.thorpej
2021-08-03Switch evbppc/ibm4xx to generic evbppc (same as oea) kernel modules.rin
I've confirmed that kernels similar to amd64/conf/MODULAR work fine both on 403 and 405. XXX Unfortunately, we cannot immediately switch evbppc/booke to generic kernel modules yet; it has its own intr.h implementation.
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-03-30Sort headers. Fix style. No binary changes.rin
2021-03-30G/C misleading <evbppc/tlb.h>. Use <powerpc/ibm4xx/tlb.h> directly.rin
2021-03-30G/C unused. No binary changes (except for __LINE__ for KASSERT).rin
2021-03-30Move common global variables, i.e., phys_map, machine, and machine_arch torin
evbppc/evbppc_machdep.c (bad naming; used only for 4xx boards).
2021-03-30Centralize cpu_reboot().rin
2021-03-16Style. No binary changes.rin
2021-03-07Add initial support for Xorg server for wsfb(4):rin
- Fix WSDISPLAYIO_GTYPE ioctl. - Support WSDISPLAYIO_LINEBYTES, _{GET,PUT}CMAP, and _SMODE ioctl. As well as tiny improvements related to it: - Use actual size of framebuffer for bus_space_mmap(9), as well as upper bound for mmap(2). - Use base address obtained from autoconf(9) layer for mmap(2), instead of hard-coded one. - Use rasops_cmap as default color map, instead of our own ANSI color map. - Show monitor resolution and color depth instead of size as tty. I've confirmed that mlterm-fb from pkgsrc/x11/mlterm also works fine.
2021-03-07Misc cleanup for clarity. No functional changes.rin
- Group function declarations, and reorder function bodies accordingly. - Misc KNF.
2021-03-07No need to clear framebuffer here; rasops(4) takes care of it.rin
2021-03-07Reduce ifdef. No functional changes.rin
2021-03-07Revert this commit:rin
http://www.nerv.org/netbsd/?q=id:20210305T064016Z.410b0e33273c3a62110d09e8bb27939f6a8bab38 > Map framebuffer to virtual space when fb(4) is present, > even if it is not console. Direct mapping for framebuffer is required only if fb(4) is console. XXX It would be nice if we can remove reserved TLB entries after fb(4) is properly attached.
2021-03-05Identify oneself as ``Explora 450'' instead of 451.rin
There are models numbered 450 to 454. The differences b/w them are shapes of ethernet and audio connectors. Base model number 450 is displayed for (probably) all models by firmware.
2021-03-05Fix color map.rin
Almost all colors except *green* were wrong for the apparent reason ;).
2021-03-05Configure fb(4) appropriately also when it is not console.rin
Now, wsdisplay(4) can be used with serial console.
2021-03-05Map framebuffer to virtual space when fb(4) is present,rin
even if it is not console.
2021-03-05Call bus_space_mallocok() appropriately.rin
2021-03-05For very MD codes for Explora, reorder things, and use more common codes forrin
ibm4xx and ibm40x for clarity as well as better comparison with other boards. No functional changes intended.
2021-03-05Avoid doubly bus_space_map(9) when pckbc(4) is already attached as console.rin
2021-03-05pckbcintr() must be running with IPL_TTY, not IPL_SERIAL. Otherwise,rin
tty(4) routines are unexpectedly interrupted, which results in "locking against myself" errors for tty_lock.
2021-03-05For Explora 451, call calc_delayconst() before pckbc_cnattach(), whichrin
depends on delay() and DELAY(). Unfortunately, proplib(9) API is not available for MD codes, that are called before consinit() (since pool(9) is not initialized yet). Therefore, hard-code CPU frequency to calc_delayconst() in case "processor-frequency" is not initialized.
2021-03-02Convert to intr_establish_xname().rin
2021-03-02Stop registering same function twice, i.e., for pckbd(4) and pms(4),rin
via intr_establish().
2021-03-02Establish kernel MMU context before turning on MMU.rin
2021-03-02Switch to genppc_cpu_configure().rin
2020-11-21malloc(9) -> kmem(9)thorpej
2020-06-11uvm_availmem(): give it a boolean argument to specify whether a recentad
cached value will do, or if the very latest total must be fetched. It can be called thousands of times a second and fetching the totals impacts not only the calling LWP but other CPUs doing unrelated activity in the VM system.
2019-12-31Rename uvm_free() -> uvm_availmem().ad
2019-12-21uvmexp.free -> uvm_free()ad
2018-12-08Clean up initialization of com_regs structure, in preparation forthorpej
some additional changers.
2013-10-03Binutils 2.23.2 doesn't do the right thing HI16/LO16 reloc using .matt
So do it manually to appease gas.
2012-10-13Adapt to the changed signature of pckbc_cnattach().jdc
2012-07-29Do not call setroot() from MD code and from MI code, which hasmlelstv
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732. No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information as a side effect. Instead call MI rootconf() from MD code which makes rootconf() now a wrapper to setroot(). Adjust several MD routines to set the global booted_device,booted_partition variables instead of passing partial information to setroot(). Make cpu_rootconf(9) describe the calling order.
2012-07-27Fix some -fno-common falloutmatt
2011-12-12Fix hangs-up. Remove "wrteei 1" in board's cpu_configure(). Interruptkiyohara
is enabled in powerpc-layer.
2011-07-01#include <sys/bus.h> instead of <machine/bus.h>.dyoung
2011-06-20Don't include *pmap.h in assembly files. Get the needed definitionsmatt
from "assym.h".
2011-06-20Change IBM4xx to use the common powerpc PIC framework.matt
Consolidate most ibm4xx initppc function into ibm4xx_init and Make all IBM4xx use it. Change explora to use initppc instead of bootstrap.
2011-06-18split device/softc (CFATTACH_DECL_NEW)matt
struct device * -> device_t struct cfdata * -> cfdata_t Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
2011-06-15lcsplx is dead. remove last vestiges of it.matt
2011-06-12for booke and ibm4xx evbppc systems, set module_machine to to eithermrg
"powerpc-ibm4xx" or "powerpc-booke".
2011-06-06CFATTACH_DECL(..., sizeof(struct device), -> CFATTACH_DECL_NEW(..., 0matt
struct device * -> device_t struct cfdata * -> cfdata_t use bool when appropriate some constification
2011-06-06More device_t, cfdata, CFATTACH_DECL_NEW cleanup.matt
2011-01-17Kill _NOREGNAMES. Everything should be using %rX now. If it doesn't itmatt
soon will.
2011-01-14Retire struct user, remove sys/user.h inclusions. Note sys/user.h headerrmind
as obsolete. Remove USER_TO_UAREA/UAREA_TO_USER macros. Various #include fixes and review by matt@.