summaryrefslogtreecommitdiff
path: root/sys/arch/evbppc/explora/dev
AgeCommit message (Collapse)Author
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-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-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-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-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-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().
2020-11-21malloc(9) -> kmem(9)thorpej
2018-12-08Clean up initialization of com_regs structure, in preparation forthorpej
some additional changers.
2011-07-01#include <sys/bus.h> instead of <machine/bus.h>.dyoung
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-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
2010-05-15Clear RI_NO_AUTO in actual attach functions during autoconf(9)tsutsui
for console devices that set the flag during consinit().
2010-05-15Set RI_NO_AUTO in ri_flg if fb_init() is invoked from cnattach.tsutsui
Tested on Explora451.
2008-08-08Make the console on com0 detection work again.hannken
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-04-04Split device_t/softc for le(4) and variants and misc cosmetic changes.tsutsui
2008-03-15Split device_t and softc for pckbc(4) and its attachments.cube
2008-03-14Split device_t and softc for all com(4) devices (well, everything thatcube
uses a com_softc backend). Use proper types and ansify where appropriate.
2008-03-07Split the softc from the device_t for all lpt(4) variants and attachmentscube
except the ppbus stuff (which doesn't compile) and ulpt(4) which is unrelated and can be dealt with separately. As usual, it comes with related cosmetic changes.
2007-11-27When using bus_space_map() on the ISA bus unstride the address. Sincehannken
Rev. 1.13 of sys/arch/powerpc/powerpc/bus_space.c the address will be strided by memio_map().
2007-03-07Add a required __UNVOLATILE() around argument to memcpy() / memset().he
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2006-07-13Add an option COM_REGMAP to allow com(4) to use an array of register indices.gdamore
This allows us to convert aucom to just another com attachment, and cleanup some code in the com_arbus.c. Additionally, we use a common com_cleanup routine rather than having a zillion copies of it in the attachment points. This has been tested on a number architectures, and it has been shown to get close to comparable performance when COM_REGMAP is defined, and comparable when it is not defined. Approved by core@. Fixes PR port-evbmips/32362.
2006-04-13Make it compile again by adding a second cookie to ioctl and mmaphannken
wsdisplay accessops.
2005-12-11merge ktrace-lwp.christos
2004-09-13use config_found() instead of config_found_sm() if no submatchdrochner
function is used
2004-01-05Implement fb_mmap(). From David P. Reese Jr. with PR #23985.hannken
2003-08-16Add bus_dmamap_sync as dma regions are no longer uncached.hannken
2003-07-25Switch ibm4xx ports to common powerpc bus_space/bus_dma code.scw
XXX: Walnut PCI support is broken. This will be addressed shortly.
2003-07-15__KERNEL_RCSID()lukem
2003-03-17Add hardware accelerated copy/erase ops.hannken
2003-03-11Add a port to the NCD Explora451 ThinClient.hannken
- Supported devices: le, com, lpt, pckbd, frame buffer. - Support missing: phy, audio, pcmcia. - Boots from network or md. Approved by: Eduardo Horvath <eeh@netbsd.org>