From: Grant Grundler <grundler@cup.hp.com>
To: Thomas Marteau <marteaut@esiee.fr>
Cc: Puffin Group <parisc-linux@thepuffingroup.com>
Subject: Re: [parisc-linux] Mouse driver for PS/2
Date: Tue, 28 Nov 2000 09:49:26 -0800 [thread overview]
Message-ID: <200011281749.JAA26808@milano.cup.hp.com> (raw)
In-Reply-To: Your message of "Tue, 28 Nov 2000 16:07:04 PST." <3A23CA18.1171E884@esiee.fr>
Thomas Marteau wrote:
> Hi all,
>
> We appreciate if someone can explain where we can find request_irq and
> request_region in hp_psaux.c and also, what are they doing?
include/linux/sched.h:extern int request_irq(unsigned int, ...)
(Implementation is in arch/parisc/kernel/irq.c)
The request_irq() "allocates" an IRQ line for use by the device - this
program the PIC (or APIC) on x86 platforms. request_irq() is also how
an interrupt handler is associated with a specific IRQ line. Since
PA Risc CPU's don't have IRQ lines going into them, IRQ's are virtualized
and don't always represent a physical IRQ line.
Under LASI, see gsc_alloc_irq(&gsc_irq) usage in drivers/gsc/lasi.c.
lasi_find_irq() helps associate the PS/2 interrupt handler with
the correct IRQ line which is internal to lasi.
include/linux/ioport.h:#define request_region(start,n,name) ...
request_region() will reserve a range of I/O port address from the
global I/O space. request_mem_region() does the same for MMIO.
Drivers that use inb/outb (as defined in include/asm-parisc/io.h)
must use request_region(). Drivers that use gsc_readb/gsc_writeb
(as defined in include/asm-parisc/gsc.h) must use request_mem_region().
Collisions are probably occuring where a driver originally used inb/outb
and those were redefined to use gsc_readb/writeb functions. But the
driver is still using request_region().
And it doesn't help that I may have broken some of the resource mgt
with some code I committed last night. It worked on my boxes (A180/C3K)
but broke on other folks. Paul Bame helped find/fix one bug but
I shouldn't be surprised if more bugs are still out there.
I will be fixing some known resource failure problems on A500.
Please post problems on other platforms to parisc-linux list as well.
hope this helps,
grant
Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253
prev parent reply other threads:[~2000-11-28 17:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-27 20:31 [parisc-linux] Include trouble Thomas Marteau
2000-11-28 4:59 ` Alan Modra
2000-11-28 9:19 ` Alan Modra
2000-11-28 17:37 ` John David Anglin
2000-11-28 19:27 ` Paul Bame
2000-11-28 20:02 ` Alan Cox
2000-11-28 21:21 ` Paul Bame
2000-11-28 21:58 ` Alan Cox
2000-11-28 20:24 ` John David Anglin
2000-11-28 20:33 ` John David Anglin
2000-11-28 23:27 ` Alan Modra
2000-11-28 15:07 ` [parisc-linux] Mouse driver for PS/2 Thomas Marteau
2000-11-28 17:21 ` Helge Deller
2000-11-28 19:30 ` Thomas Marteau
2000-11-28 20:41 ` Helge Deller
2000-11-28 17:49 ` Grant Grundler [this message]
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=200011281749.JAA26808@milano.cup.hp.com \
--to=grundler@cup.hp.com \
--cc=marteaut@esiee.fr \
--cc=parisc-linux@thepuffingroup.com \
/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