2005-12-11 15:16:03 +03:00
|
|
|
/* $NetBSD: dummy_pci_lkm.c,v 1.3 2005/12/11 12:24:47 christos Exp $ */
|
2004-08-18 18:06:13 +04:00
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/kernel.h>
|
|
|
|
#include <sys/device.h>
|
|
|
|
#include <sys/lkm.h>
|
|
|
|
|
|
|
|
CFDRIVER_DECL(mist, DV_DULL, NULL);
|
|
|
|
extern struct cfattach mist_ca;
|
|
|
|
|
|
|
|
static int pciloc[] = { -1, -1 }; /* device, function */
|
|
|
|
static struct cfparent pciparent = {
|
|
|
|
"pci", "pci", DVUNIT_ANY
|
|
|
|
};
|
|
|
|
static struct cfdata mist_cfdata[] = {
|
2005-08-25 19:08:06 +04:00
|
|
|
{"mist", "mist", 0, FSTATE_STAR, pciloc, 0, &pciparent},
|
2004-08-18 18:06:13 +04:00
|
|
|
{ 0 }
|
|
|
|
};
|
|
|
|
|
|
|
|
static struct cfdriver *mist_cfdrivers[] = {
|
|
|
|
&mist_cd,
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
static struct cfattach *mist_cfattachs[] = {
|
|
|
|
&mist_ca,
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
static const struct cfattachlkminit mist_cfattachinit[] = {
|
|
|
|
{ "mist", mist_cfattachs },
|
|
|
|
{ NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
int dummy_pci_lkmentry(struct lkm_table *, int, int);
|
|
|
|
MOD_DRV("dummy_pci", mist_cfdrivers, mist_cfattachinit,
|
|
|
|
mist_cfdata);
|
|
|
|
|
|
|
|
int
|
|
|
|
dummy_pci_lkmentry(struct lkm_table *lkmtp, int cmd, int ver)
|
|
|
|
{
|
|
|
|
|
|
|
|
DISPATCH(lkmtp, cmd, ver, lkm_nofunc, lkm_nofunc, lkm_nofunc);
|
|
|
|
}
|