patch-2.2.18 linux/drivers/sound/emu10k1/emu_wrapper.c
Next file: linux/drivers/sound/emu10k1/emu_wrapper.h
Previous file: linux/drivers/sound/emu10k1/ecard.h
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
Fri Sep 8 17:05:10 2000
- Orig file:
v2.2.17/drivers/sound/emu10k1/emu_wrapper.c
- Orig date:
Sat Sep 9 18:42:43 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/sound/emu10k1/emu_wrapper.c linux/drivers/sound/emu10k1/emu_wrapper.c
@@ -100,7 +100,7 @@
if (!found)
count += pci_announce_device(drv, dev);
}
-#endif
+#endif
return count;
}
@@ -119,36 +119,10 @@
if (found) {
if (drv->remove)
drv->remove(dev);
- drvmap[i].dev = NULL;
+ drvmap[i - 1].dev = NULL;
}
}
-#endif
-}
-
-unsigned long pci_compat_get_size (struct pci_dev *dev, int n_base)
-{
- u32 l, sz;
- int reg = PCI_BASE_ADDRESS_0 + (n_base << 2);
-
- /* XXX temporarily disable I/O and memory decoding for this device? */
-
- pci_read_config_dword (dev, reg, &l);
- if (l == 0xffffffff)
- return 0;
-
- pci_write_config_dword (dev, reg, ~0);
- pci_read_config_dword (dev, reg, &sz);
- pci_write_config_dword (dev, reg, l);
-
- if (!sz || sz == 0xffffffff)
- return 0;
- if ((l & PCI_BASE_ADDRESS_SPACE) == PCI_BASE_ADDRESS_SPACE_MEMORY) {
- sz = ~(sz & PCI_BASE_ADDRESS_MEM_MASK);
- } else {
- sz = ~(sz & PCI_BASE_ADDRESS_IO_MASK) & 0xffff;
- }
-
- return sz + 1;
+#endif
}
int pci_compat_enable_device(struct pci_dev *dev)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)