#
beecddb6 |
| 07-Aug-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs2.
|
#
3bee0c11 |
| 24-Apr-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass a
Merge thorpej-cfargs branch:
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?).
show more ...
|
#
fdee9202 |
| 24-Apr-2020 |
ad <ad@NetBSD.org> |
BUS_SPACE_MAP_PREFETCHABLE yields a write combining region on x86 and that's not what I intended.. BUS_SPACE_MAP_CACHEABLE is enough.
|
#
451a1355 |
| 01-Dec-2019 |
ad <ad@NetBSD.org> |
Map the video RAM cacheable/prefetchable, it's very slow and this helps a bit.
|
#
70747dc1 |
| 10-Nov-2019 |
chs <chs@NetBSD.org> |
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
#
a08fc2af |
| 01-Mar-2015 |
mlelstv <mlelstv@NetBSD.org> |
Also unmap video memory when detaching console
|
#
2409b88a |
| 14-Jan-2015 |
chs <chs@NetBSD.org> |
remove BIOS-mapping code that was #if-0'd in the previous commit.
|
#
5663b98d |
| 21-Aug-2014 |
macallan <macallan@NetBSD.org> |
#if 0 code to map the VGA BIOS I've been unable to find any code that actually uses the mapping and we may want to read the ROM from drm2. If no users show up within a week or so I'll delete it.
|
#
3eb45752 |
| 12-Jul-2014 |
mlelstv <mlelstv@NetBSD.org> |
detach wscons when detaching console
|
#
3d7318dd |
| 04-Nov-2013 |
christos <christos@NetBSD.org> |
mark variables __diagused
|
#
694ed5e2 |
| 21-Jan-2013 |
mlelstv <mlelstv@NetBSD.org> |
Make internal functions static
|
#
b24528b3 |
| 09-Aug-2012 |
uwe <uwe@NetBSD.org> |
Reset flip/flop using dedicated vga_reset_state() macro we already have. Explicit vga_raw_read() used here before was incorrect since it reads from *wrong* io handle!
Fixes weird problem under Virtu
Reset flip/flop using dedicated vga_reset_state() macro we already have. Explicit vga_raw_read() used here before was incorrect since it reads from *wrong* io handle!
Fixes weird problem under VirtualBox where first switch to a different VT caused text mode color 0 (normally black) to become something else.
show more ...
|
#
411f4c0b |
| 11-Jan-2012 |
macallan <macallan@NetBSD.org> |
wsfont_matches() and wsfont_find() take an extra parameter now
|
#
e4daf4de |
| 08-Jun-2011 |
drochner <drochner@NetBSD.org> |
add support for the interesting parts of ISO-2 and KOI8-R fonts to the vga(4) driver
|
#
f5fd69f6 |
| 09-Dec-2010 |
christos <christos@NetBSD.org> |
PR/41415: IdOp: Implement save and restore palette for vga.
|
#
42ff6ac8 |
| 19-Oct-2010 |
jmcneill <jmcneill@NetBSD.org> |
If PCDISPLAY_SOFTCURSOR is defined, disable the hardware cursor on resume.
|
#
ad6e139a |
| 19-Apr-2010 |
dyoung <dyoung@NetBSD.org> |
Add default implementations for bus_space_is_equal(9), bus_space_tag_create(9), and bus_space_tag_destroy(9). Use bus_space_is_equal(9) throughout the kernel to compare bus_space_tag_t's. Tested on
Add default implementations for bus_space_is_equal(9), bus_space_tag_create(9), and bus_space_tag_destroy(9). Use bus_space_is_equal(9) throughout the kernel to compare bus_space_tag_t's. Tested on i386 and on sparc64.
show more ...
|
#
5b5c3a7f |
| 22-Mar-2010 |
dyoung <dyoung@NetBSD.org> |
pckbc.c, vga.c: It doesn't appear to be helpful to compare two bus_space_tag_t's in pckbc_is_console() and vga_is_console(), and MI code should never do such a thing, so don't do it.
tcic2.c
pckbc.c, vga.c: It doesn't appear to be helpful to compare two bus_space_tag_t's in pckbc_is_console() and vga_is_console(), and MI code should never do such a thing, so don't do it.
tcic2.c: #if 0 some diagnostic code that compares two bus_space_tag_t's.
show more ...
|
#
4faa4ba5 |
| 25-Feb-2010 |
drochner <drochner@NetBSD.org> |
retire our private definitions for the scan1/3/5/7/9 DEC graphics symbols, use the unicode definitions instead (which apparently didn't exist when I wrote that)
|
#
dc02b079 |
| 19-Feb-2009 |
jmcneill <jmcneill@NetBSD.org> |
Remove vesafb-specific hacks.
|
#
1ac75f07 |
| 16-Mar-2008 |
dyoung <dyoung@NetBSD.org> |
Always deviter_release().
|
#
705696f0 |
| 14-Mar-2008 |
dyoung <dyoung@NetBSD.org> |
In vga_is_console(), use deviter_first/_next() and device_t accessors. Ok cube@.
|
#
d293cfca |
| 14-Mar-2008 |
cube <cube@NetBSD.org> |
Split device_t and softc for all attachments of vga(4).
|
#
4c1d81b2 |
| 09-Dec-2007 |
jmcneill <jmcneill@NetBSD.org> |
Merge jmcneill-pm branch.
|
#
a2a38285 |
| 19-Oct-2007 |
ad <ad@NetBSD.org> |
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|