lkml.org 
[lkml]   [1999]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] 2.3.18: floppy/IDE resource conflict on alpha
This patch fixes `Floppy io-port 0x03f0 in use' problem on
alphas with cy82c963 chip.

Ivan.

--- 2.3.18ac8/arch/alpha/kernel/pci.c Thu Sep 2 02:34:01 1999
+++ linux/arch/alpha/kernel/pci.c Thu Sep 23 18:27:58 1999
@@ -81,6 +81,13 @@
for (dev = pci_devices; dev; dev = dev->next) {
if (dev->class >> 8 != PCI_CLASS_STORAGE_IDE)
continue;
+ /* Resource 1 of IDE controller is the address of HD_CMD
+ register which actually occupies a single byte (0x3f6
+ for ide0) in reported 0x3f4-3f7 range. We have to fix
+ that to avoid resource conflict with AT-style floppy
+ controller. */
+ dev->resource[1].start += 2;
+ dev->resource[1].end = dev->resource[1].start;
for (i = 0; i < PCI_NUM_RESOURCES; i++) {
if (dev->resource[i].flags)
pci_claim_resource(dev, i);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.038 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site