summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-01-16 00:36:53 +0000
committermsmith <msmith@FreeBSD.org>1999-01-16 00:36:53 +0000
commit339819438a006d5aef84d284cd934c840891afdf (patch)
tree97683d7ed56f4f3a85ed7c64324bffd9b3358fce
parentf909ac95f7d7e59bde07bffd0fe3aaecc0f8e841 (diff)
downloadFreeBSD-src-339819438a006d5aef84d284cd934c840891afdf.zip
FreeBSD-src-339819438a006d5aef84d284cd934c840891afdf.tar.gz
Fix breakage in rev 1.19; the second argument to ide_pci_candma is a
controller number, not a unit number. Make this clear.
-rw-r--r--sys/pci/ide_pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/pci/ide_pci.c b/sys/pci/ide_pci.c
index 14378e1..0d1f1fe 100644
--- a/sys/pci/ide_pci.c
+++ b/sys/pci/ide_pci.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ide_pci.c,v 1.22 1999/01/12 01:36:46 eivind Exp $
+ * $Id: ide_pci.c,v 1.23 1999/01/13 04:40:50 julian Exp $
*/
#include "pci.h"
@@ -1450,16 +1450,16 @@ static struct pci_device ide_pci_device = {
DATA_SET(pcidevice_set, ide_pci_device);
/*
- * Return a cookie if we can do DMA on the specified (iobase_wd, unit).
+ * Return a cookie if we can do DMA on the specified (iobase_wd, ctrlr).
*/
static void *
-ide_pci_candma(int iobase_wd, int unit)
+ide_pci_candma(int iobase_wd, int ctrlr)
{
struct ide_pci_cookie *cp;
cp = softc.cookies.lh_first;
while(cp) {
- if (cp->unit == unit &&
+ if (cp->ctrlr == ctrlr &&
((iobase_wd == 0) || (cp->iobase_wd == iobase_wd)))
break;
cp = cp->le.le_next;
OpenPOWER on IntegriCloud