mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
VGA register are rather special since they either get accessed
via the global IO addresses, or possibly through MMIO on
pre-g4x platforms. Wrap all VGA register accesses in
intel_vga_{read,write}() to make it obvious where they get
accessed.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251208182637.334-13-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
20 lines
509 B
C
20 lines
509 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_VGA_H__
|
|
#define __INTEL_VGA_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct intel_display;
|
|
|
|
u8 intel_vga_read(struct intel_display *display, u16 reg, bool mmio);
|
|
void intel_vga_reset_io_mem(struct intel_display *display);
|
|
void intel_vga_disable(struct intel_display *display);
|
|
void intel_vga_register(struct intel_display *display);
|
|
void intel_vga_unregister(struct intel_display *display);
|
|
|
|
#endif /* __INTEL_VGA_H__ */
|