#include <freeldr.h>
#include "../../vidfb.h"
#include <debug.h>
Go to the source code of this file.
|
| | DBG_DEFAULT_CHANNEL (UI) |
| |
| VOID | XboxVideoClearScreen (UCHAR Attr) |
| |
| VOID | XboxVideoPutChar (int Ch, UCHAR Attr, unsigned X, unsigned Y) |
| |
| static UCHAR | NvGetCrtc (UCHAR Index) |
| |
| static ULONG | XboxGetFramebufferSize (_In_ ULONG_PTR Offset) |
| |
| VOID | XboxVideoInit (VOID) |
| |
| VIDEODISPLAYMODE | XboxVideoSetDisplayMode (PCSTR DisplayMode, BOOLEAN Init) |
| |
| VOID | XboxVideoGetDisplaySize (PULONG Width, PULONG Height, PULONG Depth) |
| |
| ULONG | XboxVideoGetBufferSize (VOID) |
| |
| VOID | XboxVideoGetFontsFromFirmware (PULONG RomFontPointers) |
| |
| VOID | XboxVideoSetTextCursorPosition (UCHAR X, UCHAR Y) |
| |
| VOID | XboxVideoHideShowTextCursor (BOOLEAN Show) |
| |
| VOID | XboxVideoCopyOffScreenBufferToVRAM (PVOID Buffer) |
| |
| BOOLEAN | XboxVideoIsPaletteFixed (VOID) |
| |
| VOID | XboxVideoSetPaletteColor (UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue) |
| |
| VOID | XboxVideoGetPaletteColor (UCHAR Color, UCHAR *Red, UCHAR *Green, UCHAR *Blue) |
| |
| VOID | XboxVideoSync (VOID) |
| |
| VOID | XboxVideoPrepareForReactOS (VOID) |
| |
◆ FB_SIZE_MB
◆ MAKE_COLOR
◆ DBG_DEFAULT_CHANNEL()
| DBG_DEFAULT_CHANNEL |
( |
UI |
| ) |
|
◆ NvGetCrtc()
Definition at line 49 of file xboxvideo.c.
50{
53}
_In_ WDFCOLLECTION _In_ ULONG Index
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)
#define NV2A_CRTC_REGISTER_INDEX
#define NV2A_CRTC_REGISTER_VALUE
Referenced by XboxVideoInit().
◆ XboxGetFramebufferSize()
Definition at line 56 of file xboxvideo.c.
58{
61
63 return 0;
64
66 return 0;
67
69
73 {
74 return 0;
75 }
76
79 {
80 TRACE(
"i = %d, base_addr_low = 0x%p, MemoryMap->length_low = 0x%p\n",
i,
MemoryMap->base_addr_low,
MemoryMap->length_low);
81
82
83
84
86 {
87 TRACE(
"Video memory found\n");
89 }
90 }
91 ERR(
"Video memory not found!\n");
92 return 0;
93}
BIOS_MEMORY_MAP MemoryMap[32]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define MB_INFO_FLAG_MEMORY_MAP
struct memory_map memory_map_t
_In_ ULONG _In_ ULONG Offset
unsigned long mmap_length
multiboot_info_t * MultibootInfoPtr
Referenced by XboxVideoInit().
◆ XboxVideoClearScreen()
Definition at line 37 of file xboxvideo.c.
38{
40}
VOID FbConsClearScreen(_In_ UCHAR Attr)
Referenced by MachInit().
◆ XboxVideoCopyOffScreenBufferToVRAM()
| VOID XboxVideoCopyOffScreenBufferToVRAM |
( |
PVOID |
Buffer | ) |
|
Definition at line 181 of file xboxvideo.c.
182{
184}
VOID FbConsCopyOffScreenBufferToVRAM(_In_ PVOID Buffer)
Copies a full text-mode CGA-style character buffer rectangle to the console.
Referenced by MachInit().
◆ XboxVideoGetBufferSize()
Definition at line 157 of file xboxvideo.c.
158{
160}
ULONG FbConsGetBufferSize(VOID)
Returns the size in bytes, of a full text-mode CGA-style character buffer rectangle that can fill the...
Referenced by MachInit().
◆ XboxVideoGetDisplaySize()
Definition at line 151 of file xboxvideo.c.
152{
154}
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
_In_ HFONT _Out_ PUINT Height
VOID FbConsGetDisplaySize(_Out_ PULONG Width, _Out_ PULONG Height, _Out_ PULONG Depth)
Returns the width and height in number of CGA characters/attributes, of a full text-mode CGA-style ch...
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION _In_ ULONG _In_ SIZE_T _In_ ULONG _In_ USHORT Depth
Referenced by MachInit(), and XboxConsPutChar().
◆ XboxVideoGetFontsFromFirmware()
| VOID XboxVideoGetFontsFromFirmware |
( |
PULONG |
RomFontPointers | ) |
|
◆ XboxVideoGetPaletteColor()
◆ XboxVideoHideShowTextCursor()
◆ XboxVideoInit()
Definition at line 96 of file xboxvideo.c.
97{
101
102
104
106
107
109 {
110
112 WARN(
"Could not detect framebuffer memory size, fallback to 4 MB\n");
113 }
114
117
118
122 else
124
125
129
131
139
141}
#define READ_REGISTER_ULONG(r)
static UCHAR BytesPerPixel
static ULONG ScreenHeight
VOID VidFbClearScreenColor(_In_ UINT32 Color, _In_ BOOLEAN FullScreen)
BOOLEAN VidFbInitializeVideo(_In_ ULONG_PTR BaseAddress, _In_ ULONG BufferSize, _In_ UINT32 ScreenWidth, _In_ UINT32 ScreenHeight, _In_ UINT32 PixelsPerScanLine, _In_ UINT32 BitsPerPixel, _In_opt_ PPIXEL_BITMASK PixelMasks)
Initializes internal framebuffer information based on the given parameters.
static UCHAR NvGetCrtc(UCHAR Index)
static ULONG XboxGetFramebufferSize(_In_ ULONG_PTR Offset)
#define MAKE_COLOR(Red, Green, Blue)
#define NV2A_CRTC_FRAMEBUFFER_START
#define NV2A_RAMDAC_FP_VVALID_END
#define NV2A_RAMDAC_FP_HVALID_END
Referenced by MachInit().
◆ XboxVideoIsPaletteFixed()
◆ XboxVideoPrepareForReactOS()
| VOID XboxVideoPrepareForReactOS |
( |
VOID |
| ) |
|
◆ XboxVideoPutChar()
Definition at line 43 of file xboxvideo.c.
44{
46}
VOID FbConsPutChar(_In_ UCHAR Char, _In_ UCHAR Attr, _In_ ULONG Column, _In_ ULONG Row)
Displays a character with specific text attributes at a given position.
Referenced by MachInit(), and XboxConsPutChar().
◆ XboxVideoSetDisplayMode()
◆ XboxVideoSetPaletteColor()
◆ XboxVideoSetTextCursorPosition()
◆ XboxVideoSync()
◆ FrameBuffer
◆ FrameBufferSize
◆ MultibootInfoPtr
◆ NvBase
| ULONG NvBase = 0xFD000000 |