mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
In addition: - simplify the no-op `PrepareForSetPixel()` definitions; - const-ify immutable data arrays for the VGA PC bootvid.
28 lines
751 B
C
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);
|