The NetBSD Project

CVS log for src/sys/dev/wscons/wsdisplay_vconsvar.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / wscons

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33.4.1 / (download) - annotate - [select for diffs], Wed Jul 5 16:09:50 2023 UTC (7 months, 3 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.33: +6 -1 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Pull up following revision(s) (requested by abs in ticket #224):

	sys/dev/wscons/wsdisplay_vconsvar.h: revision 1.34
	sys/dev/wscons/wsdisplay_glyphcachevar.h: revision 1.6
	sys/arch/sparc/dev/cgfourteen.c: revision 1.94
	sys/arch/sparc/dev/cgfourteen.c: revision 1.95
	sys/dev/sbus/mgx.c: revision 1.21
	sys/dev/sbus/mgx.c: revision 1.22
	sys/dev/sbus/mgx.c: revision 1.23
	sys/dev/wscons/wsdisplay_vcons.c: revision 1.65
	sys/dev/wscons/wsdisplay_vcons.c: revision 1.66
	sys/dev/wscons/wsdisplay_glyphcache.c: revision 1.12
	sys/arch/sparc/dev/sxvar.h: revision 1.5
	sys/arch/sparc/dev/sx.c: revision 1.6
	sys/arch/sparc/dev/sx.c: revision 1.7

make vcons_putchar_buffer() return a flag indicating if anything actually
changed, skip the actual drawing op if nothing did

add flags for drivers to requesr R2L bit/byte-ordered fonts, default to
L2R, chack them in vcons_load_font() instead of just trusting that we'd get
what we need

initialize the diagnostic register with the value suggested by the SunOS
header. This sets a bunch of undocumented bits and yields a 10% speed increase
when rendering antialiased text.

use macros compatible with xf86-video-suncg14 to issue SX instructions
much more readable, alignment weirdness is handled automatically and code is
interchangable

allow drivers to specify horizontal alignment of glyph cache cells
for things like SX which have alignment restrictions

add counter to periodically drain the instruction queue in order to avoid
stalling the MBus during long SX operations

adapted from xf86-video-suncg14
- use sx_wait() to avoid stalling the MBus
- request 32bit alignment for glyphcache cells

wait for the engine to go idle before issuing rectfill commands
we get occasional overlap with blit commands if we just wait for fifo slots
needs further investigation, it is possible that not all writes to drawing
engine registers are pipelined and of course we don't have docs

following a hunch...
- cache DEC and FG registers, only write them if the value actually changes
- wait for the engine to go idle before writing DEC
- wait for FIFO slots on everything else
with this we avoid waiting if possible and still avoid overlapping blit and
fill commands

Revision 1.34 / (download) - annotate - [select for diffs], Tue Feb 14 08:22:02 2023 UTC (12 months, 1 week ago) by macallan
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.33: +6 -1 lines
Diff to previous 1.33 (colored)

add flags for drivers to requesr R2L bit/byte-ordered fonts, default to
L2R, chack them in vcons_load_font() instead of just trusting that we'd get
what we need

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jul 17 20:23:17 2022 UTC (19 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.32: +5 -45 lines
Diff to previous 1.32 (colored)

wsdisplay(4): Make most of struct vcons_data private.

More importantly, make sizeof(struct vcons_data) independent of
whether VCONS_DRAW_INTR &c. is defined.

Allocate the private space with kmem rather than in the caller.

This still doesn't have very good separation between interface
parameters and internal state, but it's better than before, and is
necessary to make genfb usable in modules.

In arm_simplefb.c, this removes use of the use_intr member.  That
assignment became redundant with the introduction of vcons_earlyinit,
so there's no need to replace it by anything.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Jul 17 10:28:09 2022 UTC (19 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.31: +11 -1 lines
Diff to previous 1.31 (colored)

wsdisplay(4): Factor out WSDISPLAY_SCROLLSUPPORT logic.

Should find a way to avoid the #ifdefs in the .h file, but this makes
the code a good deal more legible and easier to maitain, at least.
No functional change intended.

Revision 1.27.12.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:51 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.27: +13 -6 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jan 21 21:45:42 2021 UTC (3 years, 1 month ago) by macallan
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored)

introduce a putchar() based implementation of cursor() in order to avoid
framebuffer reads
quite a speedup on arm64 / genfb

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jan 17 19:03:32 2021 UTC (3 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.29: +4 -2 lines
Diff to previous 1.29 (colored)

Revert previous and introduce vcons_earlyinit, which is like vcons_init
except it does not setup a vcons_intr thread.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jan 17 15:13:15 2021 UTC (3 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.28: +6 -4 lines
Diff to previous 1.28 (colored)

Add appropriate memory barriers around sc_busy accesses. Fixes an issue
where character cells are sometimes not erased properly on aarch64 at
boot.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jan 16 23:19:50 2021 UTC (3 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

Instead of defining VCONS_DONT_READ as the raw value of 0x30, instead
define it as (VCONS_NO_COPYCOLS|VCONS_NO_COPYROWS) for clarify. NFC.

Revision 1.26.10.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:36 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync with HEAD

Revision 1.26.8.1 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:02 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.27 / (download) - annotate - [select for diffs], Fri Nov 30 05:20:34 2018 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored)

 Remove extra whitespaces.

Revision 1.21.6.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:37 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.21.6.2: +8 -3 lines
Diff to previous 1.21.6.2 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

update from HEAD

Revision 1.23.6.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:31 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.23.6.1: +7 -4 lines
Diff to previous 1.23.6.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

Sync with HEAD

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 2 19:33:51 2017 UTC (6 years, 8 months ago) by macallan
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

- add a cookie to show_screen_cb()
- call show_screen_cb() when loading a font into a visible screen, so this can
  be used to track parameters by drivers that use the glyph cache

Revision 1.25 / (download) - annotate - [select for diffs], Fri May 19 19:22:33 2017 UTC (6 years, 9 months ago) by macallan
Branch: MAIN
Changes since 1.24: +5 -3 lines
Diff to previous 1.24 (colored)

add support for loading fonts in vcons and subsequently resizing screens
- drivers can use this by setting VCONS_LOADFONT and WSSCREEN_RESIZE
- each vcons screen can now have its own font and geometry
- while there, add support for xterm's ESC[18t to report the text buffer's
  size

With this tou can:
wsfontload -N foo  /usr/share/wscons/fonts/flori.816
wsconsctl -dw font=foo
currently this is limited to drivers that don't use the glyph cache, like genfb

Revision 1.23.6.1 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:18 2016 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

Sync with HEAD

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 2 21:17:14 2016 UTC (7 years, 8 months ago) by macallan
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

provide a default attribute

Revision 1.21.6.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:52 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.21.6.1: +3 -1 lines
Diff to previous 1.21.6.1 (colored) to branchpoint 1.21 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.20.4.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:37 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.20.4.1: +4 -2 lines
Diff to previous 1.20.4.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:48 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

sync with head

Revision 1.23 / (download) - annotate - [select for diffs], Tue Mar 18 18:20:42 2014 UTC (9 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

Merge riastradh-drm2 to HEAD.

Revision 1.22.8.1 / (download) - annotate - [select for diffs], Wed Jan 29 19:52:11 2014 UTC (10 years ago) by riastradh
Branch: riastradh-drm2
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Make genfb a little friendlier to modules.

This is not enough to make it actually work as a module itself, but
it's enough to make the i915drm module use genfb.

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:43 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

resync with head

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Wed Feb 13 20:52:06 2013 UTC (11 years ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Pull up following revision(s) (requested by skrll in ticket #818):
	xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c: revision 1.14
	xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c: revision 1.15
	external/mit/xorg/server/xorg-server/hw/xfree86/xorgos/Makefile: revision 1.32
	external/mit/xorg/server/drivers/xf86-input-keyboard/Makefile: revision 1.15
	sys/dev/wsfb/genfb.c: revision 1.49
	distrib/sets/lists/xserver/md.evbarm: revision 1.1
	sys/dev/wscons/wsdisplay_vconsvar.h: revision 1.22
	external/mit/xorg/server/xorg-server/Makefile.common: revision 1.24
	xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb.h: revision 1.4
	external/mit/xorg/server/drivers/Makefile: revision 1.61
	sys/dev/wsfb/genfb.c: revision 1.50
enable X11 build for evbarm.
aprint_verbose -> aprint_debug
WSDISPLAY_TYPE_VC4 framebuffer is BGR
for WSDISPLAYIO_SMODE, if the bus ioctl handler returns EPASSTHROUGH, dont treat it as an error
default to swkbd mode on evbarm as well, now X without config should work
properly on BeagleBoard, RPi and the like
fix a typo in a comment
use WSDISPLAYIO_GET_FBINFO if available

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jan 27 03:59:09 2013 UTC (11 years, 1 month ago) by macallan
Branch: MAIN
CVS Tags: riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet, riastradh-drm2
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

fix a typo in a comment

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:11 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

sync with head

Revision 1.20.8.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:15 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

merge to -current.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jan 4 08:25:03 2012 UTC (12 years, 1 month ago) by macallan
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: tls-maxphys, netbsd-6
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

bump character buffers and cache to 32bit per character so flags we store
in the upper bits don't get lost
now autogenerated line drawing characters work with VCONS_DRAW_INTR and don't
get lost when switching screens

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:46 2011 UTC (12 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.12: +27 -5 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Sync with HEAD.

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:04:57 2011 UTC (12 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.10.4.1: +13 -36 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head

Revision 1.20 / (download) - annotate - [select for diffs], Wed May 25 06:13:30 2011 UTC (12 years, 9 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.19: +1 -37 lines
Diff to previous 1.19 (colored)

remove VCONS_DRAW_ASYNC
it was always experimental, VCONS_DRAW_INTR is much simpler and Just Works.

Revision 1.19 / (download) - annotate - [select for diffs], Wed May 25 06:01:38 2011 UTC (12 years, 9 months ago) by macallan
Branch: MAIN
Changes since 1.18: +14 -1 lines
Diff to previous 1.18 (colored)

add a cache so when we update the screen we only redraw the character cells
that actually changed since last time. This gives a noticeable speedup on
slower hardware with dumb framebuffers.
For now this works with VCONS_DRAW_INTR and VCONS_DONT_READ only.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:54:19 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.10: +58 -5 lines
Diff to previous 1.10 (colored)

sync with head

Revision 1.12.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:30 2011 UTC (12 years, 11 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.12.4.2: +2 -1 lines
Diff to previous 1.12.4.2 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Fri Feb 18 13:56:11 2011 UTC (13 years ago) by jmcneill
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

add vcons_hard_switch, for switching w/o callouts (eg. entering ddb)

Revision 1.12.4.2 / (download) - annotate - [select for diffs], Thu Feb 17 12:00:16 2011 UTC (13 years ago) by bouyer
Branch: bouyer-quota2
Changes since 1.12.4.1: +7 -6 lines
Diff to previous 1.12.4.1 (colored) to branchpoint 1.12 (colored)

Sync with HEAD

Revision 1.17 / (download) - annotate - [select for diffs], Wed Feb 9 13:19:19 2011 UTC (13 years ago) by jmcneill
Branch: MAIN
CVS Tags: bouyer-quota2-base
Changes since 1.16: +5 -1 lines
Diff to previous 1.16 (colored)

add vcons_{enable,disable}_polling and genfb_{enable,disable}_polling
functions, to switch between intr and polling modes when VCONS_DRAW_INTR
is defined

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 8 23:06:25 2011 UTC (13 years ago) by jmcneill
Branch: MAIN
Changes since 1.15: +3 -6 lines
Diff to previous 1.15 (colored)

VCONS_DRAW_INTR changes:
- use softint instead of workqueue for drawing
- track scr_dirty with atomic_ops

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:57 2011 UTC (13 years ago) by bouyer
Branch: bouyer-quota2
Changes since 1.12: +48 -5 lines
Diff to previous 1.12 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 8 13:40:35 2011 UTC (13 years ago) by jmcneill
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

abuse config_interrupts to make sure we don't switch to 'intr' mode until
interrupts are enabled

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 8 12:45:04 2011 UTC (13 years ago) by jmcneill
Branch: MAIN
Changes since 1.13: +11 -1 lines
Diff to previous 1.13 (colored)

add support for command buffering in vcons. still a WIP, same limitations
as async drawing (no ddb, needs interrupts). you can try it with options
VCONS_DRAW_INTR. as with async, there are still occasional glitches.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 25 20:28:21 2011 UTC (13 years, 1 month ago) by macallan
Branch: MAIN
Changes since 1.12: +37 -5 lines
Diff to previous 1.12 (colored)

Add support for asynchronous drawing in vcons.
This is not finished but good enough for others to play with, enable with
options VCONS_DRAW_ASYNC
With this all drawing operations will be posted to a ring buffer instead
of being run directly, and run by a kernel thread. This avoids having to wait
for drawing operations to finish with the kernel lock held ( to a degree at
least ) and scrolling a (slow) framebuffer console should not disrupt other
operations anymore.
Problems:
- we need to switch back to synchronous operations when panicing or entering
  ddb, also re-enable async drawing when leaving ddb
- there are still occasional glitches
tested on an SS20 with cg14 and cg6 for dumb and accelerated cases

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:21 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.10: +9 -1 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with HEAD (-D20101022).

Revision 1.8.26.3 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:28 2010 UTC (13 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.8.26.2: +9 -1 lines
Diff to previous 1.8.26.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

sync with head

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 21 03:33:14 2010 UTC (13 years, 5 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.11: +9 -2 lines
Diff to previous 1.11 (colored)

add separate flags for putchar() based copycols() and copyrows() methods
for hw that can accelerate one but not the other, like Sun's Creator series
VCONS_DONT_READ does the same as before

Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 18 16:46:51 2010 UTC (13 years, 6 months ago) by macallan
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

Add copycols() and copyrows() methods which, instead of calling the underlying
driver methods, call the driver's putchar() method to redraw the affected
areas.
For unaccelerated framebuffers where reads are expensive and we can't spare
any memory for a shadow framebuffer. Enabled by setting VCONS_DONT_READ in
scr_flags

Revision 1.8.26.2 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:59 2009 UTC (14 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.8.26.1: +2 -2 lines
Diff to previous 1.8.26.1 (colored) to branchpoint 1.8 (colored)

sync with head

Revision 1.10 / (download) - annotate - [select for diffs], Thu Aug 20 02:01:08 2009 UTC (14 years, 6 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

add vcons_replay_msgbuf() for use by wsdisplay drivers to replay the message
buffer when attaching so older log messages will show up in the scrollback
buffer
Idea from gimpy

Revision 1.8.22.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:57 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.8: +1 -8 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Sync with HEAD.

Revision 1.8.24.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:58 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.8: +1 -8 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

sync with head.

Revision 1.8.26.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:17 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.8: +1 -8 lines
Diff to previous 1.8 (colored)

sync with head.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:01 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Changes since 1.8: +1 -8 lines
Diff to previous 1.8 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.4.8.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:39:34 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.8.3: +18 -3 lines
Diff to previous 1.4.8.3 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Mon Aug 20 18:38:04 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.6.2.1: +18 -3 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Sync with HEAD.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:51 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.7: +18 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync with HEAD.

Revision 1.7.6.1 / (download) - annotate - [select for diffs], Thu Aug 9 02:37:15 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.7: +18 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync with HEAD.

Revision 1.8.28.2 / (download) - annotate - [select for diffs], Mon Aug 6 03:11:33 2007 UTC (16 years, 6 months ago) by macallan
Branch: matt-mips64
Changes since 1.8.28.1: +136 -0 lines
Diff to previous 1.8.28.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

add scrollback support

Revision 1.8.28.1, Mon Aug 6 03:11:32 2007 UTC (16 years, 6 months ago) by macallan
Branch: matt-mips64
Changes since 1.8: +0 -136 lines
FILE REMOVED

file wsdisplay_vconsvar.h was added on branch matt-mips64 on 2007-08-06 03:11:33 +0000

Revision 1.8 / (download) - annotate - [select for diffs], Mon Aug 6 03:11:32 2007 UTC (16 years, 6 months ago) by macallan
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2, matt-mips64
Changes since 1.7: +18 -3 lines
Diff to previous 1.7 (colored)

add scrollback support

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:57 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Sync with head.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jul 9 21:01:26 2007 UTC (16 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Sun Jul 1 21:49:05 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Adapt to callout API change.

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:57:50 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:51 2007 UTC (16 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.4.8.3 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:51 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.8.2: +1 -3 lines
Diff to previous 1.4.8.2 (colored) to branchpoint 1.4 (colored)

sync with head.

Revision 1.4.12.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:57 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.4: +1 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with head.

Revision 1.4.16.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:00 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.4: +1 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

sync with head

Revision 1.5 / (download) - annotate - [select for diffs], Fri Sep 22 15:16:03 2006 UTC (17 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.4: +1 -3 lines
Diff to previous 1.4 (colored)

In struct vcons_data, don't depend on DIAGNOSTIC and always include
switch_poll_count.

okay chs@

Revision 1.4.14.2 / (download) - annotate - [select for diffs], Sat Sep 9 02:56:07 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.4.14.1: +123 -0 lines
Diff to previous 1.4.14.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

sync with head

Revision 1.4.8.2 / (download) - annotate - [select for diffs], Wed Jun 21 15:08:12 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.8.1: +123 -0 lines
Diff to previous 1.4.8.1 (colored) to branchpoint 1.4 (colored)

sync with head.

Revision 1.3.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:32 2006 UTC (17 years, 9 months ago) by tron
Branch: peter-altq
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:31 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:44 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.4.2.1: +123 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with head.

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:26:39 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.4.14.1, Sat Apr 15 17:48:24 2006 UTC (17 years, 10 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.4: +0 -123 lines
FILE REMOVED

file wsdisplay_vconsvar.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:56:07 +0000

Revision 1.4.8.1, Sat Apr 15 17:48:24 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4: +0 -123 lines
FILE REMOVED

file wsdisplay_vconsvar.h was added on branch yamt-lazymbuf on 2006-06-21 15:08:12 +0000

Revision 1.4.2.1, Sat Apr 15 17:48:24 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.4: +0 -123 lines
FILE REMOVED

file wsdisplay_vconsvar.h was added on branch simonb-timecounters on 2006-04-22 11:39:44 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sat Apr 15 17:48:24 2006 UTC (17 years, 10 months ago) by jmmv
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, yamt-lazymbuf, simonb-timecounters, rpaulo-netinet-merge-pcb, newlock2
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

Remove the getwschar and putwschar accessops from wsdisplay drivers as
requested by uwe@.  These were wrong because they were receiving an
emulcookie yet they were accessops (thus having to receive an accesscookie).
Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the
driver's ioctl accessop.

As this reduces the amount of code needed to handle these operations to
two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel
option.

Reviewed by, at least, uwe@ and macallan@.  No objections in tech-kern@.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:41 2006 UTC (18 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.1.2.2: +6 -2 lines
Diff to previous 1.1.2.2 (colored) next main 1.2 (colored)

sync with head.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 19 03:51:03 2006 UTC (18 years ago) by macallan
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.2: +5 -2 lines
Diff to previous 1.2 (colored)

add a flag to completely disable drawing on a screen

Revision 1.2 / (download) - annotate - [select for diffs], Sat Feb 18 18:56:05 2006 UTC (18 years ago) by jmcneill
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Bunch of changes to wscons in preparation for splash screen support:
 * Add WSDISPLAY_TYPE_VESA for vesafb. While here, fix a typo in a comment.
 * Add WSDISPLAYIO_SSPLASH and WSDISPLAYIO_SPROGRESS ioctls. The former
   toggles the splash screen on and off, and the latter updates the progress
   animation.
 * Prevent more than one hw driver from claiming to be the console.
 * In vcons, keep two pointers to the screen's vcons_data. This lets us
   override the original (ie with null emulops during boot), and restore
   them later on.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:12 2006 UTC (18 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.1.2.1: +116 -0 lines
Diff to previous 1.1.2.1 (colored)

sync with head.

Revision 1.1.2.1, Sun Feb 12 20:55:35 2006 UTC (18 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.1: +0 -116 lines
FILE REMOVED

file wsdisplay_vconsvar.h was added on branch yamt-uio_vmspace on 2006-02-18 15:39:12 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sun Feb 12 20:55:35 2006 UTC (18 years ago) by macallan
Branch: MAIN
Branch point for: yamt-uio_vmspace

framework for generic virtual consoles

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>