History log of /openbsd-current/sys/dev/ic/pcdisplay_subr.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.14 25-May-2020 jsg

change wsdisplay attribute type from long to uint32_t

miod explained it was initially a long as it was thought drivers may
need to allocate storage but in practice they don't need more than
32 bits for an attribute.

suggested and reviewed by miod@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.13 30-May-2017 fcambus

Use the CD bit (Cursor Disable) in the cursor start register to properly
disable hardware cursor.

From NetBSD.

OK deraadt@


# 1.12 30-May-2017 fcambus

Remove the unused pcdisplay_mapchar_simple function in pcdisplay(4).

It has been unused since this code was imported from NetBSD.

OK mlarkin@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 11-Apr-2011 matthew

Fix SPL handling when PCDISPLAY_SOFTCURSOR is enabled.

Discovered, narrowed down, and tested by jmc@.
"definitely commit that" deraadt@, ok miod@


# 1.10 03-Apr-2011 miod

Sprinkle spltty around code which plays with either the video memory or
the backing store. The state of a VT is only coherent if both the active
flag and the backing store are in order, which is not the case during VT
switches.
This fixes display glitches occuring during VT switches if one of the
VT involved is doing a lot of tty updates.
Noticed by deraadt@ on a machine too fast for mere mortals.


Revision tags: OPENBSD_4_9_BASE
# 1.9 28-Aug-2010 miod

ansify function definitions, and constify a few arrays while there.
no functional change.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.8 05-Sep-2009 miod

Change the wsdisplay_emulops return types from void to int; emulops will now
return zero on success and nonzero on failure.
This commit only performs mechanical changes for the existing emulops to
always return zero.


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.7 29-Nov-2006 miod

Change the getchar wsdisplay_accessops function to not return a
display-dependent value, but instead fill a structure with the chaarcter
and a valid attribute, suitable for use with unpack_attr.

Adapt the wsmoused code to these changes, and remove all knowledge of
the text-mode style pc video attributes in it.

This will eventually allow wsmoused to be used on non-pcdisplay devices.


# 1.6 29-Sep-2006 miod

If option PCDISPLAY_SOFTCURSOR, force the hardware cursor off every time
we switch vt, so that the hardware cursor does not reappear after starting
X11, and switching to a text vt.

Spotted by jmc@


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE SMP_SYNC_A SMP_SYNC_B
# 1.5 20-Nov-2003 millert

Make these pass -Wsign-compare


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B
# 1.4 14-Apr-2001 aaron

branches: 1.4.4;
Kernel support for console mouse functionality which will be controlled by
the wsmoused daemon (replacement for moused which was used with PCVT). Adds
a "getchar" method to the display drivers which returns the value of the
character currently under the cursor (e.g., so it may be inversed). From jbm@.

Still needs a bit of cleanup and improvement, especially X cohabitation
features. The pointer moves to fast as well. These sorts of issues will be
corrected in-tree.


# 1.3 14-Mar-2001 mickey

allow listing and soon deleting fonts; aaron@ ok


# 1.2 02-Feb-2001 aaron

$OpenBSD$


# 1.1 15-Nov-2000 aaron

This driver supports PC display adapter hardware within the wscons(4)
console framework. It doesn't provide direct device driver entry points
but makes its functions available via the internal wsdisplay(4) interface.

The pcdisplay driver is indended as a minimal ``catch-all'' driver for
the different kinds of MDA or CGA compatible adapters. It doesn't support
multiple screens, nor colors or font loading.

From NetBSD. Contains routines used by the vga(4) and ega(4) drivers, etc.
This is more MI stuff in prepartion for wscons on i386 and alpha.


Revision tags: OPENBSD_6_2_BASE
# 1.13 30-May-2017 fcambus

Use the CD bit (Cursor Disable) in the cursor start register to properly
disable hardware cursor.

From NetBSD.

OK deraadt@


# 1.12 30-May-2017 fcambus

Remove the unused pcdisplay_mapchar_simple function in pcdisplay(4).

It has been unused since this code was imported from NetBSD.

OK mlarkin@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 11-Apr-2011 matthew

Fix SPL handling when PCDISPLAY_SOFTCURSOR is enabled.

Discovered, narrowed down, and tested by jmc@.
"definitely commit that" deraadt@, ok miod@


# 1.10 03-Apr-2011 miod

Sprinkle spltty around code which plays with either the video memory or
the backing store. The state of a VT is only coherent if both the active
flag and the backing store are in order, which is not the case during VT
switches.
This fixes display glitches occuring during VT switches if one of the
VT involved is doing a lot of tty updates.
Noticed by deraadt@ on a machine too fast for mere mortals.


Revision tags: OPENBSD_4_9_BASE
# 1.9 28-Aug-2010 miod

ansify function definitions, and constify a few arrays while there.
no functional change.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.8 05-Sep-2009 miod

Change the wsdisplay_emulops return types from void to int; emulops will now
return zero on success and nonzero on failure.
This commit only performs mechanical changes for the existing emulops to
always return zero.


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.7 29-Nov-2006 miod

Change the getchar wsdisplay_accessops function to not return a
display-dependent value, but instead fill a structure with the chaarcter
and a valid attribute, suitable for use with unpack_attr.

Adapt the wsmoused code to these changes, and remove all knowledge of
the text-mode style pc video attributes in it.

This will eventually allow wsmoused to be used on non-pcdisplay devices.


# 1.6 29-Sep-2006 miod

If option PCDISPLAY_SOFTCURSOR, force the hardware cursor off every time
we switch vt, so that the hardware cursor does not reappear after starting
X11, and switching to a text vt.

Spotted by jmc@


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE SMP_SYNC_A SMP_SYNC_B
# 1.5 20-Nov-2003 millert

Make these pass -Wsign-compare


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B
# 1.4 14-Apr-2001 aaron

branches: 1.4.4;
Kernel support for console mouse functionality which will be controlled by
the wsmoused daemon (replacement for moused which was used with PCVT). Adds
a "getchar" method to the display drivers which returns the value of the
character currently under the cursor (e.g., so it may be inversed). From jbm@.

Still needs a bit of cleanup and improvement, especially X cohabitation
features. The pointer moves to fast as well. These sorts of issues will be
corrected in-tree.


# 1.3 14-Mar-2001 mickey

allow listing and soon deleting fonts; aaron@ ok


# 1.2 02-Feb-2001 aaron

$OpenBSD$


# 1.1 15-Nov-2000 aaron

This driver supports PC display adapter hardware within the wscons(4)
console framework. It doesn't provide direct device driver entry points
but makes its functions available via the internal wsdisplay(4) interface.

The pcdisplay driver is indended as a minimal ``catch-all'' driver for
the different kinds of MDA or CGA compatible adapters. It doesn't support
multiple screens, nor colors or font loading.

From NetBSD. Contains routines used by the vga(4) and ega(4) drivers, etc.
This is more MI stuff in prepartion for wscons on i386 and alpha.