#
5ddd3f22 |
| 09-Aug-2022 |
rin <rin@NetBSD.org> |
Switch from ``(1 << depth) color'' to ``(depth)-bpp color'' in attach message.
For depth == 32, fix ``0 color'', and prevent ambiguous ``16Mi color''.
I don't know whether there is 24-bpp graphic c
Switch from ``(1 << depth) color'' to ``(depth)-bpp color'' in attach message.
For depth == 32, fix ``0 color'', and prevent ambiguous ``16Mi color''.
I don't know whether there is 24-bpp graphic card for mac68k or not, although.
show more ...
|
#
c7fb772b |
| 07-Aug-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs2.
|
#
2685996b |
| 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 ...
|
#
355a2878 |
| 26-Jul-2019 |
rin <rin@NetBSD.org> |
Add genfb(4) driver for mac68k grfbus. 1, 2, 4, 8, 15, and 32 color-depths are supported.
ANSI colors on console are functional for depth >= 4.
Graphic applications based on wsfb API should work, p
Add genfb(4) driver for mac68k grfbus. 1, 2, 4, 8, 15, and 32 color-depths are supported.
ANSI colors on console are functional for depth >= 4.
Graphic applications based on wsfb API should work, provided they can correctly handle fbi_fboffset and your color depth.
wsfb driver of Xorg 1.20 and mlterm-fb (framebuffer version of x11/mlterm) work fine for depth == 1 || depth >= 8.
For depth == 8 (256 colors), graphic applications require colormap callback, which is currently supported for some internal graphic adapters, and only Civic (found on Quadra AV series) was tested. Register definition and its usage are taken from Linux. You can easily support other adapters if Linux supports that.
Have fun, and any problem reports are welcomed!
show more ...
|
#
cbab9cad |
| 27-Oct-2012 |
chs <chs@NetBSD.org> |
split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
7acd68b1 |
| 15-Jan-2005 |
chs <chs@NetBSD.org> |
de-__P, remove register, ansify, b* -> mem*.
|
#
4b2744bf |
| 15-Jul-2003 |
lukem <lukem@NetBSD.org> |
__KERNEL_RCSID()
|
#
72a2c879 |
| 01-Jan-2003 |
thorpej <thorpej@NetBSD.org> |
Use aprint_normal() for cfprint routines.
|
#
8a007407 |
| 14-Feb-2000 |
scottr <scottr@NetBSD.org> |
Merge wscons work onto the main development branch.
|
#
63526c1f |
| 12-Aug-1998 |
scottr <scottr@NetBSD.org> |
New and improved console framebuffer initialization and autoconfig. This resolves a great many issues, including Performa 58x interrupt handling and offset displays on some models.
Programs that de
New and improved console framebuffer initialization and autoconfig. This resolves a great many issues, including Performa 58x interrupt handling and offset displays on some models.
Programs that depend on the old (pre-NetBSD 1.1) grf interface may break. That's actually a separate issue uncovered by this code, not caused by it.
show more ...
|
#
f170a53f |
| 01-Jul-1998 |
scottr <scottr@NetBSD.org> |
Add a GRF_COMPAT option so that old-style grf ioctl() code can be removed from the kernel.
|
#
da2f2cb7 |
| 02-Jun-1998 |
scottr <scottr@NetBSD.org> |
Store the PA of the framebuffer in the softc. This eliminates the need for the sc_phys callback; we can just store the PA in the grfbus attach args, rather than a function pointer, which simplifies
Store the PA of the framebuffer in the softc. This eliminates the need for the sc_phys callback; we can just store the PA in the grfbus attach args, rather than a function pointer, which simplifies the code nicely.
show more ...
|
#
9dfbdab6 |
| 02-May-1998 |
scottr <scottr@NetBSD.org> |
Move on-board I/O and NuBus drivers to their own directories via repository copy, and make the necessary adjustments to reflect the moved files.
|
#
4229acf7 |
| 09-Oct-1997 |
jtc <jtc@NetBSD.org> |
Fix tipo inherited from old version of TNF copyright template.
|
#
06ac03dd |
| 03-Aug-1997 |
scottr <scottr@NetBSD.org> |
Fix typo found by Colin Wood, PR 3934: ga_handle should get the value of the handle, not the tag.
|
#
cd74e0d3 |
| 03-Aug-1997 |
scottr <scottr@NetBSD.org> |
Adjust grf_establish() prototype.
|
#
ee80f120 |
| 11-May-1997 |
scottr <scottr@NetBSD.org> |
Implement new NuBus slot space mapping/probing code, utilizing bus.h (and our MD bus_space_probe() extension). This has several side effects:
- NuBus drivers must map and unmap slot space, rather
Implement new NuBus slot space mapping/probing code, utilizing bus.h (and our MD bus_space_probe() extension). This has several side effects:
- NuBus drivers must map and unmap slot space, rather than relying on this happening before they are attached. - Functions exported to NuBus drivers from nubus.c now need to be supplied with a bus space tag/handle pair. - Old bus map/peek functions can be garbage collected, as can pmap support for the same.
Because of some current limitations of the bus space specification, we are violating the abstraction in grf_mv (NuBus grf driver). All such violations are clearly marked /* XXX */, and must be addressed when the specification is updated.
show more ...
|
#
b1e59123 |
| 20-Feb-1997 |
scottr <scottr@NetBSD.org> |
We need bus.h now, due to recent nubus_attach_args change.
|
#
40ecbf8e |
| 13-Oct-1996 |
christos <christos@NetBSD.org> |
backout previous kprintf change
|
#
06555645 |
| 11-Oct-1996 |
christos <christos@NetBSD.org> |
printf -> kprintf, sprintf -> ksprintf
|
#
2a73ef60 |
| 27-Aug-1996 |
cgd <cgd@NetBSD.org> |
change cfprint_t type definition to take a const char *, rather than a char *, because that's what was really intended, and because if the print function modifies the string, various things could bec
change cfprint_t type definition to take a const char *, rather than a char *, because that's what was really intended, and because if the print function modifies the string, various things could become unhappy (so the string should _not_ be modified).
show more ...
|
#
89f4fddb |
| 04-Aug-1996 |
scottr <scottr@NetBSD.org> |
Add a way to tell grf_establish() that internal video doesn't actually occupy a slot. This is necessary so that GRFIOCMAP can find the correct physical address of the framebuffer. Fixes P550, some
Add a way to tell grf_establish() that internal video doesn't actually occupy a slot. This is necessary so that GRFIOCMAP can find the correct physical address of the framebuffer. Fixes P550, some LC models, and perhaps the PB520.
show more ...
|
#
d048582c |
| 19-May-1996 |
scottr <scottr@NetBSD.org> |
New grf attachment code, mostly by Jason Thorpe with some cleanup by me. This will allow dt and X to work with a generic kernel, rather than compiling different kernels that attach grf0 to a NuBus ad
New grf attachment code, mostly by Jason Thorpe with some cleanup by me. This will allow dt and X to work with a generic kernel, rather than compiling different kernels that attach grf0 to a NuBus adapter or internal video.
show more ...
|