blob: 66202ed35a068d04c6739984fb65554411c15348 [file] [log] [blame]
--- xorg-server-1.6.3.orig/hw/xfree86/os-support/linux/lnx_video.c
+++ xorg-server-1.6.3/hw/xfree86/os-support/linux/lnx_video.c
@@ -51,6 +51,7 @@
#define MAP_FAILED ((void *)-1)
#endif
+extern Bool NoHwAccess;
static Bool ExtendedEnabled = FALSE;
#ifdef __ia64__
@@ -509,6 +510,9 @@ xf86EnableIO(void)
int fd;
unsigned int ioBase_phys;
#endif
+ /* Fake it... */
+ if (NoHwAccess)
+ return TRUE;
if (ExtendedEnabled)
return TRUE;
--- xorg-server-1.9.0/hw/xfree86/os-support/linux/lnx_init.c.orig 2010-06-10 16:07:55.000000000 +0200
+++ xorg-server-1.9.0/hw/xfree86/os-support/linux/lnx_init.c 2010-08-23 15:38:45.000000000 +0200
@@ -42,4 +42,5 @@ static Bool KeepTty = FALSE;
static Bool KeepTty = FALSE;
+Bool NoHwAccess = FALSE;
static int activeVT = -1;
@@ -377,5 +378,10 @@ xf86ProcessArgument(int argc, char *argv
return 1;
}
+ if (!strcmp(argv[i], "-nohwaccess"))
+ {
+ NoHwAccess = TRUE;
+ return(1);
+ }
if ((argv[i][0] == 'v') && (argv[i][1] == 't'))
{
@@ -398,3 +404,4 @@ xf86UseMsg(void)
ErrorF("don't detach controlling tty (for debugging only)\n");
+ ErrorF("-nohwaccess don't access hardware ports directly\n");
}