From owner-acpi-jp@jp.FreeBSD.org Thu Aug 28 02:59:44 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h7RHxi575995;
	Thu, 28 Aug 2003 02:59:44 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from rootlabs.com (root.org [67.118.192.226])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id h7RHxha75990
	for <acpi-jp@jp.FreeBSD.org>; Thu, 28 Aug 2003 02:59:43 +0900 (JST)
	(envelope-from nate@rootlabs.com)
Received: (qmail 31751 invoked by uid 1000); 27 Aug 2003 17:59:38 -0000
From: Nate Lawson <nate@root.org>
To: Philip Paeps <philip+freebsd@paeps.cx>
cc: acpi-jp@jp.FreeBSD.org
In-Reply-To: <20030827070545.GC628@hermes.nixsys.be>
Message-ID: <20030827105413.W31602@root.org>
References: <20030821133049.GB654@hermes.nixsys.be> <20030827070545.GC628@hermes.nixsys.be>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Wed, 27 Aug 2003 10:59:38 -0700
X-Sequence: acpi-jp 2610
Subject: [acpi-jp 2610] Re: Asus L3H notebook issues
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: nate@root.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030821

On Wed, 27 Aug 2003, Philip Paeps wrote:
> On 2003-08-21 15:30:51 (+0200), Philip Paeps <philip+freebsd@paeps.cx> wrote:
> > I have an Asus L3500H notebook on which I've installed FreeBSD-CURRENT.
> > Most things are working rather well, as I expected, but there are some ACPI
> > issues bothering me.  Perhaps someone can help me :-)
>
> The issues in my original mail still aren't solved, so feel free,

I haven't had a chance to look at it yet.

> but I've
> since started working on a driver for the 'extra' things my laptop implements
> through ACPI (mail led, wifi led, hot keys,...).

Great!  I don't have an ASUS or Toshiba laptop so I can't port the Linux
driver for these extra features.  Is that what you're using for the
reference?

> Currently, I've just put my code under sys/dev/acpica and hooked it up in the
> Makefile in sys/modules/acpi.  That works fine, but it makes the acpi module
> somewhat larger for everyone, not just Asus-owners.  I would therefore like to
> turn it into a loadable module in its own right, but I haven't been able to
> find any documentation on loading modules depending on ACPI.  Should this
> 'Just Work' [tm], or are there any problems I'm likely to run into?  Pointers
> would be helpful :-)

Here's an example from fxp which depends on the miibus module:
MODULE_DEPEND(fxp, miibus, 1, 1, 1);
DRIVER_MODULE(miibus, fxp, miibus_driver, miibus_devclass, 0, 0);

-Nate
