History log of /src/sys/arch/next68k/dev/nextdisplay.c |
Revision | | Date | Author | Comments |
1.31 |
| 02-Feb-2024 |
tsutsui | Add WSDISPLAY_GINFO, LINEBYTES, and SMODE ioctl(2)s and mmap(2) support.
mlterm-wscons partially works (no 2 bpp support) with these APIs. XXX: Xorg server needs wsmouse support.
|
1.30 |
| 11-Feb-2023 |
tsutsui | NeXT Turbo Color doesn't have NEXT_P_C16_CMD_REG.
Info from Andreas Grabher on port-next68k@.
|
1.29 |
| 11-Feb-2023 |
tsutsui | Add and check machine type NeXT_CUBE_TURBO (type 8).
Info from Andreas Grabher on port-next68k@.
|
1.28 |
| 11-Feb-2023 |
tsutsui | Handle NeXT Turbo VRAM regions properly.
Info from Andreas Grabher on port-next68k@: https://mail-index.netbsd.org/port-next68k/2023/02/06/msg000052.html
Also refactor bus_space_map(9) and fix (unused) bus_space_mmap(9).
|
1.27 |
| 03-Feb-2023 |
tsutsui | Use proper C99 int types.
|
1.26 |
| 03-Feb-2023 |
tsutsui | Misc KNF and cosmetics.
|
1.25 |
| 07-Aug-2021 |
thorpej | branches: 1.25.6; Merge thorpej-cfargs2.
|
1.24 |
| 24-Apr-2021 |
thorpej | branches: 1.24.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.23 |
| 21-Nov-2020 |
thorpej | branches: 1.23.2; malloc(9) -> kmem(9)
|
1.22 |
| 12-Nov-2019 |
msaitoh | branches: 1.22.8; Add missing initialization of sc_dev.
|
1.21 |
| 27-Oct-2012 |
chs | branches: 1.21.30; 1.21.38; 1.21.42; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.20 |
| 04-Mar-2007 |
christos | branches: 1.20.78; 1.20.88; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.19 |
| 12-Apr-2006 |
jmmv | branches: 1.19.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.18 |
| 11-Dec-2005 |
christos | branches: 1.18.4; 1.18.6; 1.18.8; 1.18.10; 1.18.12; merge ktrace-lwp.
|
1.17 |
| 19-Jan-2005 |
chs | branches: 1.17.8; de-__P, remove register, ansify.
|
1.16 |
| 11-Jan-2005 |
chs | branches: 1.16.2; remove leftover debug printf.
|
1.15 |
| 05-Oct-2003 |
mycroft | Minor tweaks to the color framebuffer code -- still don't know what the deal with the interrupt is.
|
1.14 |
| 01-Oct-2003 |
mycroft | Some small cleanup -- make the base,limit values vaddr_t, not char*. Also add some code that attempts to deal with C16_VIDEO interrupts, though it does not seem to make my color slabs work again.
|
1.13 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.12 |
| 02-Oct-2002 |
thorpej | branches: 1.12.6; Use CFATTACH_DECL().
|
1.11 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.10 |
| 11-Sep-2002 |
mycroft | Attach nextdisplay on the mono turbo.
|
1.9 |
| 11-Sep-2002 |
mycroft | Comprehensive patches from Christian Limpach: * Fix problems with the DMA and SCSI drivers. * Make turbo machines sort of work. Additional fixes from me: * Determine if we're a turbo at boot time, by looking at the ROM machine type. * Set the display size correctly (1120 pixels wide, but padded to 1152 only on non-turbo machines). Caveats: * SCSI doesn't work on the turbo (or at least it blows chunks with no devices attached). * Media selection doesn't work on the turbo (the BMAP stuff doesn't exist on turbo machines). * The boot block is prone to timing out.
|
1.8 |
| 04-Jul-2002 |
junyoung | alloc_attr -> allocattr
Approved by Matthias Drochner.
|
1.7 |
| 17-Mar-2002 |
atatat | branches: 1.7.4; 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.6 |
| 15-Jun-2001 |
dbj | branches: 1.6.2; 1.6.8; remove extra args from printf
|
1.5 |
| 29-Sep-2000 |
deberg | branches: 1.5.2; add support for 12-bit color displays, from Timm Wetzel w/ changes by me. closes 10741.
|
1.4 |
| 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.3 |
| 06-Dec-1999 |
drochner | branches: 1.3.4; update for changed struct wsdisplay_accessops:show_screen signature. no functional changes
|
1.2 |
| 24-Mar-1999 |
dbj | branches: 1.2.8; 1.2.14; Applied patches from Matt Debergalis <deberg@mit.edu>. These patches include: Added framebuffer mapping for color framebuffer to support color wscons which is coming soon. Renamed wskbdmap_mfii[ch] to wskbdmap_next[ch] Changed video to be white on black instead of black on white. Now handles and discards mouse interrupts. Video and keyboard is now working on mono machines.
|
1.1 |
| 28-Jan-1999 |
dbj | wscons based console video & keyboard support for the NeXT from Matt DeBergalis
|
1.2.14.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.2.8.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.3.4.2 |
| 06-Oct-2000 |
deberg | pullup 1.5, approved by thorpej
add support for 12-bit color displays, from Timm Wetzel w/ changes by me. closes 10741.
|
1.3.4.1 |
| 30-Jun-2000 |
simonb | Pull up mmap paddr_t/off_t changes from trunk.
|
1.5.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.6.8.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.6.8.4 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.6.8.3 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.6.8.2 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.6.8.1 |
| 15-Jun-2001 |
nathanw | file nextdisplay.c was added on branch nathanw_sa on 2002-04-01 07:41:44 +0000
|
1.6.2.3 |
| 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.6.2.2 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.6.2.1 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.7.4.1 |
| 16-Jul-2002 |
gehenna | catch up with -current.
|
1.12.6.6 |
| 31-Jan-2005 |
skrll | Adapt to branch.
|
1.12.6.5 |
| 24-Jan-2005 |
skrll | Sync with HEAD.
|
1.12.6.4 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
1.12.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.12.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.12.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.16.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.17.8.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.17.8.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.18.12.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.18.10.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.18.8.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.18.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.18.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.19.14.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.20.88.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.20.78.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.21.42.2 |
| 15-Feb-2023 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #1598):
sys/arch/next68k/next68k/nextrom.h: revision 1.13 sys/arch/next68k/dev/nextdisplayvar.h: revision 1.6 sys/arch/next68k/dev/intiovar.h: revision 1.8 sys/arch/next68k/dev/nextcons.c: revision 1.12 sys/arch/next68k/next68k/locore.s: revision 1.69 sys/arch/next68k/dev/nextcons.c: revision 1.13 sys/arch/next68k/dev/nextcons.c: revision 1.14 sys/arch/next68k/include/bus_space.h: revision 1.18 sys/arch/next68k/dev/nextdisplay.c: revision 1.30 sys/arch/next68k/include/bus_space.h: revision 1.19 sys/arch/next68k/stand/boot/boot.c: revision 1.13 sys/arch/next68k/next68k/nextrom.c: revision 1.28 sys/arch/next68k/next68k/nextrom.c: revision 1.29 sys/arch/next68k/next68k/pmap_bootstrap.c: revision 1.46 sys/arch/next68k/next68k/pmap_bootstrap.c: revision 1.47 sys/arch/next68k/include/cpu.h: revision 1.52 sys/arch/next68k/dev/intio.c: revision 1.17 (patch) sys/arch/next68k/dev/intio.c: revision 1.18 (patch) sys/arch/next68k/dev/intio.c: revision 1.19 (patch) sys/arch/next68k/next68k/locore.s: revision 1.72 sys/arch/next68k/stand/boot/version: revision 1.6 sys/arch/next68k/include/bus_space.h: revision 1.21 sys/arch/next68k/include/bus_space.h: revision 1.22 sys/arch/next68k/dev/nextdisplay.c: revision 1.26 sys/arch/next68k/include/bus_space.h: revision 1.23 sys/arch/next68k/dev/nextdisplay.c: revision 1.27 sys/arch/next68k/dev/nextdisplay.c: revision 1.28 sys/arch/next68k/dev/nextdisplay.c: revision 1.29
s/impliment/implement/ in comment.
Remove cargo-culted '#if 0' code that was designed to produce a compile-time error if any of the bus_space_*_8 functions was used, but was documented that it produces a link-time error.
Misc KNF and cosmetics.
Use proper C99 int types.
Remove trailing spaces and TABs.
Handle NeXT Turbo VRAM regions properly. Info from Andreas Grabher on port-next68k@: https://mail-index.netbsd.org/port-next68k/2023/02/06/msg000052.html
Also refactor bus_space_map(9) and fix (unused) bus_space_mmap(9).
Add and check machine type NeXT_CUBE_TURBO (type 8). Info from Andreas Grabher on port-next68k@.
NeXT Turbo Color doesn't have NEXT_P_C16_CMD_REG. Info from Andreas Grabher on port-next68k@.
Bump version again to denote NeXT_CUBE_TURBO support.
|
1.21.42.1 |
| 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #425):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.21.38.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.21.30.1 |
| 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #1439):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.22.8.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|
1.23.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.24.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|
1.25.6.1 |
| 15-Feb-2023 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #88):
sys/arch/next68k/next68k/nextrom.h: revision 1.13 sys/arch/next68k/dev/nextdisplayvar.h: revision 1.6 sys/arch/next68k/dev/intiovar.h: revision 1.8 sys/arch/next68k/dev/nextcons.c: revision 1.12 sys/arch/next68k/next68k/locore.s: revision 1.69 sys/arch/next68k/dev/nextcons.c: revision 1.13 sys/arch/next68k/dev/nextcons.c: revision 1.14 sys/arch/next68k/dev/nextdisplay.c: revision 1.30 sys/arch/next68k/stand/boot/boot.c: revision 1.13 sys/arch/next68k/next68k/nextrom.c: revision 1.28 sys/arch/next68k/next68k/nextrom.c: revision 1.29 sys/arch/next68k/next68k/pmap_bootstrap.c: revision 1.46 sys/arch/next68k/next68k/pmap_bootstrap.c: revision 1.47 sys/arch/next68k/include/cpu.h: revision 1.52 sys/arch/next68k/dev/intio.c: revision 1.17 sys/arch/next68k/dev/intio.c: revision 1.18 sys/arch/next68k/dev/intio.c: revision 1.19 sys/arch/next68k/next68k/locore.s: revision 1.72 sys/arch/next68k/stand/boot/version: revision 1.6 sys/arch/next68k/include/bus_space.h: revision 1.21 sys/arch/next68k/include/bus_space.h: revision 1.22 sys/arch/next68k/dev/nextdisplay.c: revision 1.26 sys/arch/next68k/include/bus_space.h: revision 1.23 sys/arch/next68k/dev/nextdisplay.c: revision 1.27 sys/arch/next68k/dev/nextdisplay.c: revision 1.28 sys/arch/next68k/dev/nextdisplay.c: revision 1.29
Misc KNF and cosmetics.
Use proper C99 int types.
Remove trailing spaces and TABs.
Handle NeXT Turbo VRAM regions properly. Info from Andreas Grabher on port-next68k@: https://mail-index.netbsd.org/port-next68k/2023/02/06/msg000052.html
Also refactor bus_space_map(9) and fix (unused) bus_space_mmap(9).
Add and check machine type NeXT_CUBE_TURBO (type 8). Info from Andreas Grabher on port-next68k@.
NeXT Turbo Color doesn't have NEXT_P_C16_CMD_REG. Info from Andreas Grabher on port-next68k@.
Bump version again to denote NeXT_CUBE_TURBO support.
|