Files
Hermès Bélusca-Maïto 5894d0b443 [BOOTVID] Reorganize some definitions used in the per-architecture bootvids (#8547)
In addition:
- simplify the no-op `PrepareForSetPixel()` definitions;
- const-ify immutable data arrays for the VGA PC bootvid.
2026-01-03 14:19:15 +01:00

28 lines
751 B
C

/*
* PROJECT: ReactOS Boot Video Driver for ARM devices
* LICENSE: BSD - See COPYING.ARM in root directory
* PURPOSE: PrimeCell Color LCD Controller (PL110) definitions
* COPYRIGHT: Copyright 2008 ReactOS Portable Systems Group <[email protected]>
*/
#pragma once
#define READ_REGISTER_ULONG(r) (*(volatile ULONG * const)(r))
#define WRITE_REGISTER_ULONG(r, v) (*(volatile ULONG *)(r) = (v))
#define READ_REGISTER_USHORT(r) (*(volatile USHORT * const)(r))
#define WRITE_REGISTER_USHORT(r, v) (*(volatile USHORT *)(r) = (v))
VOID
InitPaletteWithTable(
_In_reads_(Count) const ULONG* Table,
_In_ ULONG Count);
#define PrepareForSetPixel()
VOID
SetPixel(
_In_ ULONG Left,
_In_ ULONG Top,
_In_ UCHAR Color);