vboxvideo_15.c revision 614c15fb36e0fb6d885db7196d5affbc66872a1a
5693N/A * available from http://www.virtualbox.org. This file is free software;
5693N/A * Clara, CA 95054 USA or visit http://www.sun.com if you need
5693N/A * Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
5693N/A#ifdef DEBUG_michael
5693N/A#ifdef DEBUG_VIDEO
5693N/A#ifdef XFree86LOADER
5693N/A# include "xorg-server.h"
5693N/A# ifdef HAVE_CONFIG_H
5693N/A#include "vboxvideo.h"
5693N/A#include "version-generated.h"
5693N/A#include "mipointer.h"
5693N/A#include "mibstore.h"
5693N/A#include "xf86cmap.h"
5693N/A#include "extensions/dpms.h" */
5693N/A#include "xf86Crtc.h"
5693N/A#include "xf86Modes.h"
int *indices,
enum GenericTypes
#ifdef PCIACCESS
#ifdef PCIACCESS
NULL,
NULL,
NULL,
#ifdef PCIACCESS
static VBOXPtr
hw/xfree86/modes/xf86Crtc.h and hw/xfree86/modes/xf86Modes.h in the
static Bool
"VirtualBox only supports virtual screen widths which are a multiple of 8. Rounding down from %d to %d\n",
"Unable to set up a virtual screen size of %dx%d with %d Kb of video memory. Please increase the video memory size.\n",
if (rc) {
if (rc) {
if (rc) {
return rc;
static Bool
static Bool
(void) mode;
return TRUE;
{ (void) crtc; }
(void) mode;
{ (void) output; }
return rc;
static Bool
static xf86OutputStatus
(void) output;
return XF86OutputStatusConnected;
static DisplayModePtr
bool rc;
if (rc && (0 != x) && (0 != y)) {
return pModes;
#ifdef RANDR_12_INTERFACE
static Bool
#ifdef RANDR_12_INTERFACE
static const char *fbSymbols[] = {
static const char *shadowfbSymbols[] = {
static const char *vbeSymbols[] = {
static const char *ramdacSymbols[] = {
#ifdef XFree86LOADER
static pointer
if (!Initialised)
#ifdef PCIACCESS
NULL);
if (ErrorMajor)
return (NULL);
static const OptionInfoRec *
return (VBOXOptions);
#ifdef PCIACCESS
static Bool
static Bool
int numDevSections;
&devSections)) <= 0)
return (FALSE);
#ifndef PCIACCESS
if (xf86GetPciVideoInfo()) {
int numUsed;
int *usedChips;
if (numUsed > 0) {
for (i = 0; i < numUsed; i++) {
return (foundScreen);
static Bool
return (FALSE);
return (FALSE);
return (FALSE);
#ifndef PCIACCESS
return FALSE;
return FALSE;
return (FALSE);
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return (FALSE);
return (FALSE);
return (FALSE);
return (TRUE);
static Bool
unsigned flags;
#ifdef PCIACCESS
return (FALSE);
return (FALSE);
return (FALSE);
if (!miSetPixmapDepths())
return (FALSE);
return (FALSE);
return FALSE;
return FALSE;
return (FALSE);
return (FALSE);
return (TRUE);
static Bool
bool rc;
return rc;
static Bool
static ModeStatus
static int warned = 0;
if (!warned) {
return MODE_NOMODE;
return ret;
static Bool
return rc;
static Bool
if (rc)
return rc;
static Bool
#ifdef PCIACCESS
return rc;
#ifdef PCIACCESS
int i, idx;
#define VBOXDACDelay() \
for (i = 0; i < numColors; i++) {
VBOXDACDelay();
VBOXDACDelay();
VBOXDACDelay();
VBOXDACDelay();
* Just adapted from the std* functions in vgaHW.c
if (start) {
if (cont)
if (cont)
if (rc)
if (rc)
return rc;