1 This reverts parts of commit 1ae94881c9f30d274fe55f4c3677510da5d789fd.
3 diff -wpruN --no-dereference '--exclude=*.orig' a~/lib/i386-ports.c a/lib/i386-ports.c
4 --- a~/lib/i386-ports.c 1970-01-01 00:00:00
5 +++ a/lib/i386-ports.c 1970-01-01 00:00:00
6 @@ -133,7 +133,7 @@ conf1_read(struct pci_dev *d, int pos, b
7 int addr = 0xcfc + (pos&3);
10 - if (d->domain || pos >= 256)
14 if (len != 1 && len != 2 && len != 4)
15 @@ -165,7 +165,7 @@ conf1_write(struct pci_dev *d, int pos,
16 int addr = 0xcfc + (pos&3);
19 - if (d->domain || pos >= 256)
23 if (len != 1 && len != 2 && len != 4)
24 @@ -223,7 +223,7 @@ conf2_read(struct pci_dev *d, int pos, b
26 int addr = 0xc000 | (d->dev << 8) | pos;
28 - if (d->domain || pos >= 256)
33 @@ -259,12 +259,11 @@ conf2_write(struct pci_dev *d, int pos,
35 int addr = 0xc000 | (d->dev << 8) | pos;
37 - if (d->domain || pos >= 256)
42 - /* conf2 supports only 16 devices per bus */
44 + d->access->error("conf2_write: only first 16 devices exist.");
46 if (len != 1 && len != 2 && len != 4)
47 return pci_generic_block_write(d, pos, buf, len);