From: Thomas Hood <jdthoodREMOVETHIS@yahoo.co.uk>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] parport_pc.c PnP BIOS sanity check
Date: Fri, 21 Sep 2001 02:00:54 -0400 [thread overview]
Message-ID: <3BAAD796.A766FBEC@yahoo.co.uk> (raw)
[-- Attachment #1: Type: text/plain, Size: 862 bytes --]
I'm still wondering why this function in parport_pc.c rejects dma
values of zero. Is DMA0 not usable by the parallel port for some
reason? I should think that if the PnP BIOS returns a dma of zero
then it means that the parallel port is using DMA0. Sorry if I'm
being obtuse. // Thomas Hood
parport_pc.c line 2799:
int init_pnp040x(struct pci_dev *dev)
{ int io,iohi,irq,dma;
io=dev->resource[0].start;
iohi=dev->resource[1].start;
irq=dev->irq_resource[0].start;
dma=dev->dma_resource[0].start;
if(dma==0) dma=-1; <--- Why?
printk(KERN_INFO "PnPBIOS: Parport found %s %s at io=%04x,%04x irq=%d dma=%d\n",
dev->name,dev->slot_name,io,iohi,irq,dma);
if (parport_pc_probe_port(io,iohi,irq,dma,NULL))
return 1;
return 0;
}
[-- Attachment #2: patch-norejdma --]
[-- Type: text/plain, Size: 452 bytes --]
--- linux-2.4.7-ac10/drivers/parport/parport_pc.c_ORIG Fri Aug 10 18:19:07 2001
+++ linux-2.4.7-ac10/drivers/parport/parport_pc.c Mon Aug 13 17:40:38 2001
@@ -2797,8 +2797,6 @@
irq=dev->irq_resource[0].start;
dma=dev->dma_resource[0].start;
- if (dma==0) dma=-1;
-
printk(KERN_INFO "PnPBIOS: Parport found %s %s at io=%04x,%04x irq=%d dma=%d\n",
dev->name,dev->slot_name,io,iohi,irq,dma);
if (parport_pc_probe_port(io,iohi,irq,dma,NULL))
[-- Attachment #3: patch-dmanone --]
[-- Type: text/plain, Size: 437 bytes --]
--- linux-2.4.7-ac10/drivers/parport/parport_pc.c_ORIG Fri Aug 10 18:19:07 2001
+++ linux-2.4.7-ac10/drivers/parport/parport_pc.c Fri Aug 10 18:19:55 2001
@@ -2797,7 +2797,7 @@
irq=dev->irq_resource[0].start;
dma=dev->dma_resource[0].start;
- if (dma==0) dma=-1;
+ if (dma==0) dma=PARPORT_DMA_NONE;
printk(KERN_INFO "PnPBIOS: Parport found %s %s at io=%04x,%04x irq=%d dma=%d\n",
dev->name,dev->slot_name,io,iohi,irq,dma);
next reply other threads:[~2001-09-21 6:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-21 6:00 Thomas Hood [this message]
2001-09-21 6:11 ` [PATCH] parport_pc.c PnP BIOS sanity check Ignacio Vazquez-Abrams
2001-09-21 12:07 ` Alan Cox
2001-09-21 18:45 ` Thomas Hood
2001-09-22 0:08 ` Philip Blundell
2001-09-21 18:09 ` Gunther Mayer
-- strict thread matches above, loose matches on Subject: below --
2001-08-13 21:46 Thomas Hood
[not found] <no.id>
2001-08-08 15:20 ` Alan Cox
2001-08-08 16:13 ` Richard B. Johnson
2001-08-08 21:58 ` H. Peter Anvin
2001-08-08 22:12 ` Russell King
2001-08-10 9:18 ` Eric W. Biederman
2001-08-08 15:15 Thomas Hood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BAAD796.A766FBEC@yahoo.co.uk \
--to=jdthoodremovethis@yahoo.co.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox