[Vesautils-devel] CVS: vesautils vbetool.c,1.1,1.2

Alex Beregszaszi alex at mplayerhq.hu
Thu Aug 18 10:38:18 CEST 2005


Update of /cvsroot/vesautils/vesautils
In directory mail:/home/alex/vesautils/vesautils

Modified Files:
	vbetool.c 
Log Message:
support do_real_post if no PCI support is present

Index: vbetool.c
===================================================================
RCS file: /cvsroot/vesautils/vesautils/vbetool.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- vbetool.c	12 Aug 2005 17:48:15 -0000	1.1
+++ vbetool.c	18 Aug 2005 08:38:16 -0000	1.2
@@ -105,12 +105,7 @@
 		if (err) {
 			return err;
 		}
-#ifdef HAVE_PCI
 		return do_post();
-#else
-		fprintf(stderr, "%s: not compiled with PCI support\n", argv[0]);
-		return -1;
-#endif
 	} else {
 	      usage:
 		fprintf(stderr,
@@ -150,7 +145,6 @@
 	return access_ptr_register(regs, ebx);
 }
 
-#ifdef HAVE_PCI
 int do_real_post(unsigned pci_device)
 {
 	int error = 0;
@@ -188,6 +182,7 @@
 	unsigned int pci_id;
 	int error;
 
+#ifdef HAVE_PCI
 	pci_scan_bus(pacc);
 
 	for (p = pacc->devices; p; p = p->next) {
@@ -203,8 +198,11 @@
 		}
 	}
 	return 0;
-}
+#else
+	fprintf(stderr, "Not compiled with PCI support, will not pass PCI id, thus this may fail\n");
+	return do_real_post(0);
 #endif
+}
 
 void restore_state()
 {




More information about the Vesautils-devel mailing list