Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

video/vga: Add VGA_IS0_R

Add a proper name for the "Input status register 0" IO address.
Currently we have some code that does reads using the aliasing
VGA_MSR_W define, making it unclear what register we're
actually reading.

v2: Remove stray '?'

Cc: Helge Deller <deller@gmx.de>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251209075549.14051-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Helge Deller <deller@gmx.de>

+1
+1
include/video/vga.h
··· 46 46 #define VGA_MIS_R 0x3CC /* Misc Output Read Register */ 47 47 #define VGA_MIS_W 0x3C2 /* Misc Output Write Register */ 48 48 #define VGA_FTC_R 0x3CA /* Feature Control Read Register */ 49 + #define VGA_IS0_R 0x3C2 /* Input Status Register 0 */ 49 50 #define VGA_IS1_RC 0x3DA /* Input Status Register 1 - color emulation */ 50 51 #define VGA_IS1_RM 0x3BA /* Input Status Register 1 - mono emulation */ 51 52 #define VGA_PEL_D 0x3C9 /* PEL Data Register */