From: "Le Wen" <le_wen@hotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Questions about request_irq and reading PCI_INTERRUPT_LINE
Date: Fri, 18 Mar 2005 13:18:14 -0500 [thread overview]
Message-ID: <BAY20-F12D2C7B3C608DE7BF487B9E54A0@phx.gbl> (raw)
Hi, there,
I have problem to grab video from my ati all-in-wonder card. The card is in
a PII Celeron machine with an on board video card (ATI Technologies Inc 3D
Rage IIC AGP). there is no monitor connected with the on board video card. I
only hook my AIW card with a monitor.
I use km-0.6 from gatos project. I load this km_drv module, but kernel
always complains:
km: IRQ 0 busy
I checked code:
km_probe(struct pci_dev *dev, const struct pci_device_id *pci_id)
here dev->irq with a value 0.
When km_probe gets called, it try to request an IRQ0 returns a -EBUSY:
kms_irq=dev.irq;
result=request_irq(kms->irq, handler, SA_SHIRQ, tag, (void *)kms);
if(result==-EBUSY){
printk(KERN_ERR "km: IRQ %ld busy\n", kms->irq);
goto fail;
}
So I tried to get right IRQ number using:
u8 myirq;
int rtn=pci_read_config_byte(dev,PCI_INTERRUPT_LINE, &myirq);
dev->irq=myirq;
kms->irq=dev_irq;
result=request_irq(kms->irq, handler, SA_SHIRQ, tag, (void *)kms);
if(result==-EBUSY){
printk(KERN_ERR "km: IRQ %ld busy\n", kms->irq);
goto fail;
}
if(result<0){
printk(KERN_ERR "km: could not install irq handler:
result=%d\n",result);
goto fail;
}
But this time I got:
km: kms->irq=24
km: could not install irq handler: result=-38
My questions are:
1. I don't know why dev->irq has value of 0?
2. Is an IRQ number of 24 valid for a Intel PII Celeron?
3. What does this result=-38 mean?
Wen, Le
next reply other threads:[~2005-03-18 18:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-18 18:18 Le Wen [this message]
2005-03-18 18:44 ` linux-os
2005-03-18 19:06 ` Le Wen
2005-03-18 19:22 ` linux-os
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=BAY20-F12D2C7B3C608DE7BF487B9E54A0@phx.gbl \
--to=le_wen@hotmail.com \
--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
all inboxes | Powered by JetHome®