Subject: Re: Drivers with interrupts as LKMs
To: None <tech-kern@NetBSD.org>
From: Matt Thomas <email@example.com>
Date: 01/19/2005 17:19:32
At 05:09 PM 1/19/2005, you wrote:
>On Wed, Jan 19, 2005 at 04:59:00PM -0700, Jeremy Gale wrote:
> > I'm wondering if it's possible to have a device driver that uses
> > interrupts to be loadable as a kernel module. I need the address and
> > irq number to be passed in to the LKM somehow.
>If I were doing this and really wanted it in an LKM, I might define
>a device control node in /dev and use a control program to send the
>address and interrupt #.
>Or, for development, I might just hard-code the address and irq in
>compile-time -D switches or #defines in a header.
Or if it's PCI, the information is accessible by the driver.
Matt Thomas email: firstname.lastname@example.org
3am Software Foundry www: http://3am-software.com/bio/matt/
Cupertino, CA disclaimer: I avow all knowledge of this message.