tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MODULE_CLASS_DRIVER and locators stuff



On Sat, 3 May 2008 13:20:17 +0200
Juan RP <xtraeme%gmail.com@localhost> wrote:

> ---
> extern const struct cfiattrdata audiobuscf_iattrdata;
> 
> static int locs[] = { -1, -1 };
> static const struct cfiattrdata * const attrs[] = {
>         &audiobuscf_iattrdata, NULL
> };
> 
> DRIVER_MODULE(MODULE_CLASS_DRIVER, auich, pci, locs, attrs, NULL);
> ---
> 
> If a driver doesn't use any interface attributes, NULL may be used.
> Also with that way is possible to pass multiple iattrs.

Here's the latest patch:

http://www.netbsd.org/~xtraeme/kmodule_drivers.diff

-- 
Juan Romero Pardines - xtraeme at gmail|netbsd dot org
        The NetBSD Project

Make your own NetBSD/x86 Live CD:
http://www.netbsd.org/~xtraeme/mklivecd/


Home | Main Index | Thread Index | Old Index