ReactOS 0.4.16-dev-122-g325d74c
blue.h File Reference
#include <ntifs.h>
#include <blue/ntddblue.h>
Include dependency graph for blue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tagCOORD
 
struct  tagSMALL_RECT
 
struct  tagCONSOLE_SCREEN_BUFFER_INFO
 
struct  tagCONSOLE_CURSOR_INFO
 

Macros

#define TAG_BLUE   'EULB'
 
#define TAB_WIDTH   8
 
#define MAX_PATH   260
 
#define ENABLE_PROCESSED_OUTPUT   0x0001
 
#define ENABLE_WRAP_AT_EOL_OUTPUT   0x0002
 
#define FOREGROUND_BLUE   0x0001
 
#define FOREGROUND_GREEN   0x0002
 
#define FOREGROUND_RED   0x0004
 
#define FOREGROUND_INTENSITY   0x0008
 
#define BACKGROUND_BLUE   0x0010
 
#define BACKGROUND_GREEN   0x0020
 
#define BACKGROUND_RED   0x0040
 
#define BACKGROUND_INTENSITY   0x0080
 
#define VIDMEM_BASE   0xb8000
 
#define BITPLANE_BASE   0xa0000
 
#define CRTC_COMMAND   ((PUCHAR)0x3d4)
 
#define CRTC_DATA   ((PUCHAR)0x3d5)
 
#define CRTC_COLUMNS   0x01
 
#define CRTC_OVERFLOW   0x07
 
#define CRTC_ROWS   0x12
 
#define CRTC_SCANLINES   0x09
 
#define CRTC_CURSORSTART   0x0a
 
#define CRTC_CURSOREND   0x0b
 
#define CRTC_CURSORPOSHI   0x0e
 
#define CRTC_CURSORPOSLO   0x0f
 
#define SEQ_COMMAND   ((PUCHAR)0x3c4)
 
#define SEQ_DATA   ((PUCHAR)0x3c5)
 
#define GCT_COMMAND   ((PUCHAR)0x3ce)
 
#define GCT_DATA   ((PUCHAR)0x3cf)
 
#define SEQ_RESET   0x00
 
#define SEQ_ENABLE_WRT_PLANE   0x02
 
#define SEQ_MEM_MODE   0x04
 
#define GCT_READ_PLANE   0x04
 
#define GCT_RW_MODES   0x05
 
#define GCT_GRAPH_MODE   0x06
 
#define ATTRC_WRITEREG   ((PUCHAR)0x3c0)
 
#define ATTRC_READREG   ((PUCHAR)0x3c1)
 
#define ATTRC_INPST1   ((PUCHAR)0x3da)
 
#define MISC   (PUCHAR)0x3c2
 
#define SEQ   (PUCHAR)0x3c4
 
#define SEQDATA   (PUCHAR)0x3c5
 
#define CRTC   (PUCHAR)0x3d4
 
#define CRTCDATA   (PUCHAR)0x3d5
 
#define GRAPHICS   (PUCHAR)0x3ce
 
#define GRAPHICSDATA   (PUCHAR)0x3cf
 
#define ATTRIB   (PUCHAR)0x3c0
 
#define STATUS   (PUCHAR)0x3da
 
#define PELMASK   (PUCHAR)0x3c6
 
#define PELINDEX   (PUCHAR)0x3c8
 
#define PELDATA   (PUCHAR)0x3c9
 

Typedefs

typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES
 
typedef struct _SECURITY_ATTRIBUTESPSECURITY_ATTRIBUTES
 
typedef struct tagCOORD COORD
 
typedef struct tagCOORDPCOORD
 
typedef struct tagSMALL_RECT SMALL_RECT
 
typedef struct tagCONSOLE_SCREEN_BUFFER_INFO CONSOLE_SCREEN_BUFFER_INFO
 
typedef struct tagCONSOLE_SCREEN_BUFFER_INFOPCONSOLE_SCREEN_BUFFER_INFO
 
typedef struct tagCONSOLE_CURSOR_INFO CONSOLE_CURSOR_INFO
 
typedef struct tagCONSOLE_CURSOR_INFOPCONSOLE_CURSOR_INFO
 

Functions

VOID ScrSetFont (_In_ PUCHAR FontBitfield)
 

Macro Definition Documentation

◆ ATTRC_INPST1

#define ATTRC_INPST1   ((PUCHAR)0x3da)

Definition at line 106 of file blue.h.

◆ ATTRC_READREG

#define ATTRC_READREG   ((PUCHAR)0x3c1)

Definition at line 105 of file blue.h.

◆ ATTRC_WRITEREG

#define ATTRC_WRITEREG   ((PUCHAR)0x3c0)

Definition at line 104 of file blue.h.

◆ ATTRIB

#define ATTRIB   (PUCHAR)0x3c0

Definition at line 115 of file blue.h.

◆ BACKGROUND_BLUE

#define BACKGROUND_BLUE   0x0010

Definition at line 65 of file blue.h.

◆ BACKGROUND_GREEN

#define BACKGROUND_GREEN   0x0020

Definition at line 66 of file blue.h.

◆ BACKGROUND_INTENSITY

#define BACKGROUND_INTENSITY   0x0080

Definition at line 68 of file blue.h.

◆ BACKGROUND_RED

#define BACKGROUND_RED   0x0040

Definition at line 67 of file blue.h.

◆ BITPLANE_BASE

#define BITPLANE_BASE   0xa0000

Definition at line 74 of file blue.h.

◆ CRTC

#define CRTC   (PUCHAR)0x3d4

Definition at line 111 of file blue.h.

◆ CRTC_COLUMNS

#define CRTC_COLUMNS   0x01

Definition at line 79 of file blue.h.

◆ CRTC_COMMAND

#define CRTC_COMMAND   ((PUCHAR)0x3d4)

Definition at line 76 of file blue.h.

◆ CRTC_CURSOREND

#define CRTC_CURSOREND   0x0b

Definition at line 84 of file blue.h.

◆ CRTC_CURSORPOSHI

#define CRTC_CURSORPOSHI   0x0e

Definition at line 85 of file blue.h.

◆ CRTC_CURSORPOSLO

#define CRTC_CURSORPOSLO   0x0f

Definition at line 86 of file blue.h.

◆ CRTC_CURSORSTART

#define CRTC_CURSORSTART   0x0a

Definition at line 83 of file blue.h.

◆ CRTC_DATA

#define CRTC_DATA   ((PUCHAR)0x3d5)

Definition at line 77 of file blue.h.

◆ CRTC_OVERFLOW

#define CRTC_OVERFLOW   0x07

Definition at line 80 of file blue.h.

◆ CRTC_ROWS

#define CRTC_ROWS   0x12

Definition at line 81 of file blue.h.

◆ CRTC_SCANLINES

#define CRTC_SCANLINES   0x09

Definition at line 82 of file blue.h.

◆ CRTCDATA

#define CRTCDATA   (PUCHAR)0x3d5

Definition at line 112 of file blue.h.

◆ ENABLE_PROCESSED_OUTPUT

#define ENABLE_PROCESSED_OUTPUT   0x0001

Definition at line 53 of file blue.h.

◆ ENABLE_WRAP_AT_EOL_OUTPUT

#define ENABLE_WRAP_AT_EOL_OUTPUT   0x0002

Definition at line 54 of file blue.h.

◆ FOREGROUND_BLUE

#define FOREGROUND_BLUE   0x0001

Definition at line 61 of file blue.h.

◆ FOREGROUND_GREEN

#define FOREGROUND_GREEN   0x0002

Definition at line 62 of file blue.h.

◆ FOREGROUND_INTENSITY

#define FOREGROUND_INTENSITY   0x0008

Definition at line 64 of file blue.h.

◆ FOREGROUND_RED

#define FOREGROUND_RED   0x0004

Definition at line 63 of file blue.h.

◆ GCT_COMMAND

#define GCT_COMMAND   ((PUCHAR)0x3ce)

Definition at line 91 of file blue.h.

◆ GCT_DATA

#define GCT_DATA   ((PUCHAR)0x3cf)

Definition at line 92 of file blue.h.

◆ GCT_GRAPH_MODE

#define GCT_GRAPH_MODE   0x06

Definition at line 102 of file blue.h.

◆ GCT_READ_PLANE

#define GCT_READ_PLANE   0x04

Definition at line 100 of file blue.h.

◆ GCT_RW_MODES

#define GCT_RW_MODES   0x05

Definition at line 101 of file blue.h.

◆ GRAPHICS

#define GRAPHICS   (PUCHAR)0x3ce

Definition at line 113 of file blue.h.

◆ GRAPHICSDATA

#define GRAPHICSDATA   (PUCHAR)0x3cf

Definition at line 114 of file blue.h.

◆ MAX_PATH

#define MAX_PATH   260

Definition at line 17 of file blue.h.

◆ MISC

#define MISC   (PUCHAR)0x3c2

Definition at line 108 of file blue.h.

◆ PELDATA

#define PELDATA   (PUCHAR)0x3c9

Definition at line 119 of file blue.h.

◆ PELINDEX

#define PELINDEX   (PUCHAR)0x3c8

Definition at line 118 of file blue.h.

◆ PELMASK

#define PELMASK   (PUCHAR)0x3c6

Definition at line 117 of file blue.h.

◆ SEQ

#define SEQ   (PUCHAR)0x3c4

Definition at line 109 of file blue.h.

◆ SEQ_COMMAND

#define SEQ_COMMAND   ((PUCHAR)0x3c4)

Definition at line 88 of file blue.h.

◆ SEQ_DATA

#define SEQ_DATA   ((PUCHAR)0x3c5)

Definition at line 89 of file blue.h.

◆ SEQ_ENABLE_WRT_PLANE

#define SEQ_ENABLE_WRT_PLANE   0x02

Definition at line 96 of file blue.h.

◆ SEQ_MEM_MODE

#define SEQ_MEM_MODE   0x04

Definition at line 97 of file blue.h.

◆ SEQ_RESET

#define SEQ_RESET   0x00

Definition at line 95 of file blue.h.

◆ SEQDATA

#define SEQDATA   (PUCHAR)0x3c5

Definition at line 110 of file blue.h.

◆ STATUS

#define STATUS   (PUCHAR)0x3da

Definition at line 116 of file blue.h.

◆ TAB_WIDTH

#define TAB_WIDTH   8

Definition at line 16 of file blue.h.

◆ TAG_BLUE

#define TAG_BLUE   'EULB'

Definition at line 14 of file blue.h.

◆ VIDMEM_BASE

#define VIDMEM_BASE   0xb8000

Definition at line 73 of file blue.h.

Typedef Documentation

◆ CONSOLE_CURSOR_INFO

◆ CONSOLE_SCREEN_BUFFER_INFO

◆ COORD

◆ PCONSOLE_CURSOR_INFO

◆ PCONSOLE_SCREEN_BUFFER_INFO

◆ PCOORD

typedef struct tagCOORD * PCOORD

◆ PSECURITY_ATTRIBUTES

Definition at line 19 of file blue.h.

◆ SECURITY_ATTRIBUTES

Definition at line 19 of file blue.h.

◆ SMALL_RECT

Function Documentation

◆ ScrSetFont()

VOID ScrSetFont ( _In_ PUCHAR  FontBitfield)

Definition at line 25 of file font.c.

27{
29 PUCHAR Bitplane;
30
31 /* open bit plane for font table access */
33
34 /* get pointer to video memory */
35 BaseAddress.QuadPart = BITPLANE_BASE;
36 Bitplane = (PUCHAR)MmMapIoSpace(BaseAddress, 0xFFFF, MmNonCached);
37
38 LoadFont(Bitplane, FontBitfield);
39
40 MmUnmapIoSpace(Bitplane, 0xFFFF);
41
42 /* close bit plane */
44}
#define BITPLANE_BASE
Definition: blue.h:74
VOID CloseBitPlane(VOID)
Definition: font.c:71
VOID LoadFont(_In_ PUCHAR Bitplane, _In_ PUCHAR FontBitfield)
Definition: font.c:92
VOID OpenBitPlane(VOID)
Definition: font.c:50
VOID NTAPI MmUnmapIoSpace(IN PVOID BaseAddress, IN SIZE_T NumberOfBytes)
Definition: iosup.c:193
PVOID NTAPI MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress, IN SIZE_T NumberOfBytes, IN MEMORY_CACHING_TYPE CacheType)
Definition: iosup.c:47
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
Definition: mmfuncs.h:404
unsigned char * PUCHAR
Definition: typedefs.h:53
@ MmNonCached
Definition: mmtypes.h:129

Referenced by ScrAcquireOwnership(), and ScrIoControl().