ReactOS  0.4.13-dev-257-gfabbd7c
prep_vga.c File Reference
#include <freeldr.h>
#include "prep.h"
Include dependency graph for prep_vga.c:

Go to the source code of this file.

Classes

struct  _vga_desc
 

Macros

#define VGA_WIDTH   1024
 
#define VGA_HEIGHT   768
 

Functions

void vga_setup (PCONFIGURATION_COMPONENT_DATA pcibus, struct _pci_desc *desc, struct _vga_desc *vga_desc, int bus, int dev, int fn)
 

Variables

struct _vga_desc vga1_desc = { (char *)0x800003c0 }
 

Macro Definition Documentation

◆ VGA_HEIGHT

#define VGA_HEIGHT   768

Definition at line 10 of file prep_vga.c.

◆ VGA_WIDTH

#define VGA_WIDTH   1024

Definition at line 9 of file prep_vga.c.

Function Documentation

◆ vga_setup()

void vga_setup ( PCONFIGURATION_COMPONENT_DATA  pcibus,
struct _pci_desc desc,
struct _vga_desc vga_desc,
int  bus,
int  dev,
int  fn 
)

Definition at line 13 of file prep_vga.c.

15  {
16  struct _pci_bar bar_data;
17  int i;
18 
19  for( i = 0; i < 6; i++ ) {
20  pci_read_bar( desc, bus, dev, fn, i, &bar_data );
21  print_bar( &bar_data );
22  if( (bar_data.data > 0x10000) || ((bar_data.data&1) == 1) ) {
23  vga_desc->addr = (char *)(0xc0000000 + (bar_data.data & ~0x7ff));
24 // BootInfo.dispDeviceBase = vga_desc->addr;
25  break;
26  }
27  }
28 }
static GLenum _GLUfuncptr fn
Definition: wgl_font.c:159
char * addr
Definition: prep_vga.c:6
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
Definition: glfuncs.h:248
const struct builtin_class_descr * desc
Definition: regcontrol.c:48
Definition: prep.h:6
void print_bar(struct _pci_bar *bar)
Definition: prep_pci.c:87
void pci_read_bar(struct _pci_desc *pci_desc, int bus, int dev, int fn, int bar, struct _pci_bar *bar_data)
Definition: prep_pci.c:57

Referenced by pci_setup().

Variable Documentation

◆ vga1_desc

struct _vga_desc vga1_desc = { (char *)0x800003c0 }

Definition at line 11 of file prep_vga.c.

Referenced by pci_setup().