History log of /src/sys/arch/vax/vsa/smg.c |
Revision | | Date | Author | Comments |
1.67 |
| 03-Feb-2024 |
tsutsui | Misc cleanup.
- move function declarations after struct declarations and before global variables - sort function declarations per actual implementation - some KNF
No functional change.
|
1.66 |
| 25-Jan-2024 |
tsutsui | Fix mmap(2) address for smg(4) as other framebuffers.
Now X.org server can render onto framebuffer (but inverted bitorder). Should be pulled up to netbsd-10 and netbsd-9.
|
1.65 |
| 26-Mar-2023 |
andvar | s/diplay/display/ and s/DIPPLAY/DISPLAY/ in comments.
|
1.64 |
| 11-Feb-2023 |
tsutsui | Port rasops'fied smg(4) framebuffer driver for VS3100 from OpenBSD/vax.
This allows using more fonts other than 8x15 pixels on smg(4). Tested on my VAXstation 3100/m30.
Note the bitorder of smg(4) VRAM is LSB first (i.e. LSBit is the most left side pixel) and this requires more complicated changes to bitmask ops in MI rasops(9) because several LE machines have VRAMs whose MSBit is connected to the most left side pixel, but for now I prepared smg(4) specific putchar and cursor ops based on old luna68k omrasops.
|
1.63 |
| 06-Feb-2023 |
tsutsui | Add a support for gpx(4) color framebuffer found on VAXstation 3100.
Poted from OpenBSD/vax. Note smg(4) monochrome onboard framebuffer driver is also changed attached only if gpx(4) is not installed or flags 1 is specified in config files, as OpenBSD did.
Tested on my VAXstation 3100/m30 with and without 8bpp gpx(4). Revied on port-vax@ and "Please go ahead!" from ragge@. https://mail-index.netbsd.org/port-vax/2023/01/thread1.html#004147
Worth to pullup to netbsd-10.
|
1.62 |
| 13-Jan-2023 |
tsutsui | Make sure to call wsfont_init(9) as other framebuffer drivers.
Otherwise wsfont_find(9) always fails and wsdisplay(4) is not attached. XXX: still no output on the framebuffer console on my VAXstation 3100/m30
|
1.61 |
| 07-Aug-2021 |
thorpej | branches: 1.61.6; Merge thorpej-cfargs2.
|
1.60 |
| 24-Apr-2021 |
thorpej | branches: 1.60.8; 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?).
|
1.59 |
| 21-Nov-2020 |
thorpej | branches: 1.59.2; malloc(9) -> kmem(9)
|
1.58 |
| 14-Mar-2019 |
thorpej | branches: 1.58.4; 1.58.12; Use copyin(), not fusword().
|
1.57 |
| 22-May-2017 |
ragge | branches: 1.57.10; Update copyright notice for Ludd (remove clause 3 & 4).
|
1.56 |
| 07-Jul-2016 |
msaitoh | KNF. Remove extra spaces. No functional change.
|
1.55 |
| 11-Jan-2012 |
macallan | branches: 1.55.6; 1.55.24; adjust for wsfont_find() change
|
1.54 |
| 14-Dec-2010 |
matt | branches: 1.54.8; 1.54.12; Cleanup includes. Switch from <machine/XXX.h> to <sys/XXX.h> from bus, cpu, and intr. Remove unneeded includes.
|
1.53 |
| 26-Oct-2009 |
cegger | branches: 1.53.4; kill extra whitespaces reviewed by tsutsui@
|
1.52 |
| 19-Mar-2009 |
he | Correct a few more bungled bcopy() -> memcpy() conversions.
|
1.51 |
| 18-Mar-2009 |
cegger | bcopy -> memcpy
|
1.50 |
| 18-Mar-2009 |
cegger | bzero -> memset
|
1.49 |
| 19-Dec-2008 |
cegger | branches: 1.49.2; use M_ZERO on malloc() and remove subsequent bzero().
|
1.48 |
| 15-Mar-2008 |
matt | branches: 1.48.4; 1.48.12; Use a 0 sized softc / switch to PRIVALLOC.
|
1.47 |
| 11-Mar-2008 |
matt | Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf code. Move to prototype definitions. staticfy, constify, avoid casting. Use device_* accessors.
|
1.46 |
| 17-Oct-2007 |
garbled | branches: 1.46.12; 1.46.16; Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
|
1.45 |
| 09-Jul-2007 |
ad | branches: 1.45.10; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.44 |
| 31-Mar-2007 |
matt | branches: 1.44.4; Don't exceed array bounds (found by gcc 4.3). XXX not sure if the fix is correct.
|
1.43 |
| 04-Mar-2007 |
christos | branches: 1.43.2; 1.43.4; Fix caddr_t fallout.
|
1.42 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.41 |
| 12-Apr-2006 |
jmmv | branches: 1.41.14; Add an extra cookie to the ioctl and mmap wsdisplay accessops that points to the screen on which they are being called. The driver cannot guess this by itself but it is needed to implement, at least, the getwschar and putwschar functions in the correct place. There are no functional changes yet.
Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64. Suggested and reviewed by macallan@.
|
1.40 |
| 11-Dec-2005 |
christos | branches: 1.40.4; 1.40.6; 1.40.8; 1.40.10; 1.40.12; merge ktrace-lwp.
|
1.39 |
| 20-Jul-2005 |
he | Now that the wsfont fonts are made static, we can no longer reference the fonts directly (which was actually a wrong thing to try to do). Instead, convert to using the wsfont API to look for a 8x15 font, and use it if found.
Suggested by thorpej Reviewed by drochner
|
1.38 |
| 27-Jun-2005 |
ragge | branches: 1.38.2; Shadowed variable fix.
|
1.37 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.36 |
| 29-Dec-2002 |
ad | branches: 1.36.2; - X pads bitmap rows to a word boundary. - Handle WSDISPLAYIO_GCURMAX.
|
1.35 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
1.34 |
| 01-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.33 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.32 |
| 06-Sep-2002 |
gehenna | Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch> by using this grammer.
- Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables.
- The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
|
1.31 |
| 04-Jul-2002 |
junyoung | alloc_attr -> allocattr
Approved by Matthias Drochner.
|
1.30 |
| 10-Jun-2002 |
ragge | Missed to check all possible non-graphics bits on VS2k, causing the machine to crash during boot. Reported and debugged with help of Valeriy E. Ushakov.
|
1.29 |
| 17-Mar-2002 |
atatat | branches: 1.29.4; 1.29.6; Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
1.28 |
| 25-Feb-2002 |
ad | Move the dz driver to dev/dec, since it can be shared with pmax.
|
1.27 |
| 04-Feb-2001 |
ragge | branches: 1.27.4; 1.27.8; Giant update from Michael Kukat (michael@unixiron.org). Fixes support for: MicroVAX 3100m90 MicroVAX 3100m95 VAX 4000/100 (tested) VAX 4000/105A (tested) VAX 4000/108 VAX 4000/400 (tested) VAX 4000/500 (tested) VAX 4000/600
|
1.26 |
| 02-Dec-2000 |
ragge | Use lkkbd. Add hardware cursor support. Use wsfont fonts instead of the old QDSS fonts (support not finished). KNF cleanup.
|
1.25 |
| 08-Sep-2000 |
chs | remove extra paren so this compiles again.
|
1.24 |
| 26-Jul-2000 |
matt | Un __P.
|
1.23 |
| 26-Jun-2000 |
simonb | Change the kernel mmap interface so that the offset to map is an "off_t" and the return value is a "paddr_t" to allow mappings at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which only changed the offset to a "vm_offset_t".
Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
|
1.22 |
| 31-Mar-2000 |
ragge | branches: 1.22.4; Fix spelling error.
|
1.21 |
| 23-Mar-2000 |
thorpej | New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
1.20 |
| 12-Dec-1999 |
ragge | CL* discarding.
|
1.19 |
| 06-Dec-1999 |
drochner | update for changed struct wsdisplay_accessops:show_screen signature. no functional changes
|
1.18 |
| 27-Oct-1999 |
ragge | Allocate memory for printouts directly instead of (trying to) use the yes uninitialized VM system.
|
1.17 |
| 27-Aug-1999 |
ragge | branches: 1.17.2; 1.17.4; 1.17.6; Don't try to search for these devices on 4000/90. badaddr() should be fixed for this arch also.
|
1.16 |
| 20-May-1999 |
ragge | Don't detect glass tty if the machine is a workstation. Hint from Thomas Seidmann.
|
1.15 |
| 13-Mar-1999 |
ragge | branches: 1.15.4; Change vsbus to take a locator for all devices. Figure out interrupt vector/mask on vsbus by forcing all devices to generate interrupts in the match routine, like on unibus.
|
1.14 |
| 09-Mar-1999 |
ragge | unsigned int -> int.
|
1.13 |
| 12-Feb-1999 |
drochner | change the "mapchar" interface to return a "quality" or "match level" arguments which allows to find approximations for characters which are not present in a font
|
1.12 |
| 02-Feb-1999 |
ragge | Another giant change: Allocate register space dynamic instead of compiled-in. This is done on a physical page size basis, instead of virtual (as the (on vax yet non-existing) bus_* routines does). This is similar to the way uba allocation is done.
|
1.11 |
| 11-Jan-1999 |
drochner | remove dummy "load_font" entries
|
1.10 |
| 29-Nov-1998 |
ragge | blkclr -> memset.
|
1.9 |
| 19-Nov-1998 |
mrg | fix problems in many d_mmap routines: - returned EOPNOTSUPP rather than -1. - no check for negative offset. many of these fix potential security problems in these drivers.
XXX XXX XXX the d_mmap cdev routine should be changed to have a prototype like: paddr_t (*d_mmap) __P((dev_t, off_t, int));
by someone!
|
1.8 |
| 10-Aug-1998 |
ragge | Support for VS4000/60.
|
1.7 |
| 05-Aug-1998 |
kleink | KNF (only include one of <sys/{param,types}.h>).
|
1.6 |
| 30-Jun-1998 |
ragge | Enable use of reversed and underlined text. The DEC Isolatin character set now also work correctly. Add blinking cursor.
|
1.5 |
| 26-Jun-1998 |
drochner | add a dummy "mapchar" function (1:1 mapping, hope the font is isolatin)
|
1.4 |
| 20-Jun-1998 |
drochner | adapt to wscons changes (character output call)
|
1.3 |
| 07-Jun-1998 |
ragge | Init some variables to not get trash on the screen.
|
1.2 |
| 05-Jun-1998 |
ragge | Add virtual console support.
|
1.1 |
| 04-Jun-1998 |
ragge | Rudimentary support for the VS3100 builtin graphics console.
|
1.15.4.1 |
| 21-Jun-1999 |
thorpej | Sync w/ -current.
|
1.17.6.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.17.4.1 |
| 15-Nov-1999 |
fvdl | Sync with -current
|
1.17.2.3 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.17.2.2 |
| 08-Dec-2000 |
bouyer | Sync with HEAD.
|
1.17.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.22.4.1 |
| 30-Jun-2000 |
simonb | Pull up mmap paddr_t/off_t changes from trunk.
|
1.27.8.7 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.27.8.6 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.27.8.5 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.27.8.4 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.27.8.3 |
| 20-Jun-2002 |
nathanw | Catch up to -current.
|
1.27.8.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.27.8.1 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.27.4.4 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.27.4.3 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.27.4.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.27.4.1 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.29.6.1 |
| 11-Jun-2002 |
lukem | Pull up revision 1.30 (requested by ragge in ticket #237): Missed to check all possible non-graphics bits on VS2k, causing the machine to crash during boot. Reported and debugged with help of Valeriy E. Ushakov.
|
1.29.4.3 |
| 17-Jul-2002 |
gehenna | catch up with -current.
|
1.29.4.2 |
| 15-Jul-2002 |
gehenna | catch up with -current.
|
1.29.4.1 |
| 19-May-2002 |
gehenna | Replace the access to devsw table and the hard-coded majors with devsw API.
|
1.36.2.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.36.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.36.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.36.2.2 |
| 12-Aug-2004 |
skrll | Adapt to new world order.
Vax GENERIC compiles.
|
1.36.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.38.2.3 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.38.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.38.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.40.12.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.40.10.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.40.8.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.40.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.40.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.41.14.2 |
| 15-Apr-2007 |
yamt | sync with head.
|
1.41.14.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.43.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.43.2.2 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.43.2.1 |
| 10-Apr-2007 |
ad | Sync with head.
|
1.44.4.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.45.10.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.45.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.46.16.2 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.46.16.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.46.12.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.48.12.2 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.48.12.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.48.4.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.48.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.49.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.53.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.54.12.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.54.8.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.55.24.2 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.55.24.1 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.55.6.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.57.10.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.58.12.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|
1.58.4.1 |
| 06-Feb-2023 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #1585):
sys/arch/vax/vsa/smg.c: revision 1.62
Make sure to call wsfont_init(9) as other framebuffer drivers.
Otherwise wsfont_find(9) always fails and wsdisplay(4) is not attached.
|
1.59.2.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.60.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|
1.61.6.4 |
| 03-Feb-2024 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #569):
sys/arch/vax/vsa/smg.c: revision 1.66
Fix mmap(2) address for smg(4) as other framebuffers.
Now X.org server can render onto framebuffer (but inverted bitorder).
|
1.61.6.3 |
| 15-Feb-2023 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #86):
sys/arch/vax/vsa/smg.c: revision 1.64 sys/arch/vax/vsa/maskbits.h: revision 1.1 sys/dev/ic/dc503reg.h: revision 1.1
Port rasops'fied smg(4) framebuffer driver for VS3100 from OpenBSD/vax.
This allows using more fonts other than 8x15 pixels on smg(4). Tested on my VAXstation 3100/m30.
Note the bitorder of smg(4) VRAM is LSB first (i.e. LSBit is the most left side pixel) and this requires more complicated changes to bitmask ops in MI rasops(9) because several LE machines have VRAMs whose MSBit is connected to the most left side pixel, but for now I prepared smg(4) specific putchar and cursor ops based on old luna68k omrasops.
|
1.61.6.2 |
| 12-Feb-2023 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #79):
sys/arch/vax/conf/GENERIC: revision 1.217 sys/arch/vax/conf/VAX780: revision 1.34 sys/arch/vax/conf/files.vax: revision 1.126 sys/arch/vax/vsa/smg.c: revision 1.63 sys/arch/vax/include/qdreg.h: revision 1.7 sys/arch/vax/vax/conf.c: revision 1.69 sys/arch/vax/conf/INSTALL: revision 1.76 sys/arch/vax/vsa/gpx.c: revision 1.1
Add a support for gpx(4) color framebuffer found on VAXstation 3100.
Ported from OpenBSD/vax. Note smg(4) monochrome onboard framebuffer driver is also changed attached only if gpx(4) is not installed or flags 1 is specified in config files, as OpenBSD did.
Tested on my VAXstation 3100/m30 with and without 8bpp gpx(4).
Revied on port-vax@ and "Please go ahead!" from ragge@. https://mail-index.netbsd.org/port-vax/2023/01/thread1.html#004147
|
1.61.6.1 |
| 06-Feb-2023 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #66):
sys/arch/vax/vsa/smg.c: revision 1.62
Make sure to call wsfont_init(9) as other framebuffer drivers. Otherwise wsfont_find(9) always fails and wsdisplay(4) is not attached.
|