aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--int10/i10_vbios.c10
-rw-r--r--int10/vbios.h2
-rw-r--r--vbe.c3
3 files changed, 3 insertions, 12 deletions
diff --git a/int10/i10_vbios.c b/int10/i10_vbios.c
index 328ad84..5d12741 100644
--- a/int10/i10_vbios.c
+++ b/int10/i10_vbios.c
@@ -79,7 +79,7 @@ static sigjmp_buf longjmp_buf;
static void sigsegv_handler(int);
-int InitInt10(hd_data_t *hd_data, int pci_cfg_method)
+int InitInt10(hd_data_t *hd_data)
{
if(geteuid()) return -1;
@@ -97,14 +97,6 @@ int InitInt10(hd_data_t *hd_data, int pci_cfg_method)
return -1;
}
-#if 0
- scan_pci(pci_cfg_method);
-
- for(; CurrentPci; CurrentPci = CurrentPci->next) {
- if(CurrentPci->active) break;
- }
-#endif
-
iopl(0);
setup_int_vect();
diff --git a/int10/vbios.h b/int10/vbios.h
index edcb715..1777e01 100644
--- a/int10/vbios.h
+++ b/int10/vbios.h
@@ -1,6 +1,6 @@
#include "hd.h"
-int InitInt10(hd_data_t *, int);
+int InitInt10(hd_data_t *);
int CallInt10(int *ax, int *bx, int *cx, unsigned char *buf, int len, int cpuemu);
int CallInt13(int *ax, int *bx, int *cx, int *dx, unsigned char *buf, int len, int cpuemu);
void FreeInt10(void);
diff --git a/vbe.c b/vbe.c
index 5b3f87e..413ae2a 100644
--- a/vbe.c
+++ b/vbe.c
@@ -276,7 +276,6 @@ int get_edid__old(char *edid)
int get_edid(hd_data_t *hd_data, char *edid)
{
- int pci_config_type = 1; /* Determine PCI configuration type */
int ok = 0;
if (getuid() != 0) {
@@ -285,7 +284,7 @@ int get_edid(hd_data_t *hd_data, char *edid)
}
if (!box_is_xbox()) {
- if (InitInt10(hd_data, pci_config_type) == 0) {
+ if (InitInt10(hd_data) == 0) {
ok = vbe_check_vbe_info(hd_data)
&& vbe_get_edid_info(hd_data, edid);
FreeInt10();