Date: Fri, 15 Sep 2000 23:52:21 -0700 (PDT) From: Warner Losh <imp@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/pccard pccard.c pccardvar.h Message-ID: <200009160652.XAA58113@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2000/09/15 23:52:21 PDT
Modified files:
sys/dev/pccard pccard.c pccardvar.h
Log:
Change the interface to pccard_function_init. The interface is such
that it looks for an acceptible one. Once it finds it, it should set
the resources for the device. I say "should" because I've not written
that. Also set an ivar for the child of pccard. Minor fix to the
attach message printed, we lose the slot number, which I'll have to
restore later. Adjust the pccard ivar so that we can save the
function that corresponds to this driver so we can enable and disable
it more easily. Save a pointer to the function so we know what we're
dealing with.
There should be some way for the driver to specify which cfg it wants
to activate. For now the pccard_function_init function just picks
one, but we'll have to revisit this going forward. I'm not doing it
now because I'd need some way to activate the card many times and I'm
not sure that is desirable or even safe with some cards.
Revision Changes Path
1.16 +16 -6 src/sys/dev/pccard/pccard.c
1.15 +3 -4 src/sys/dev/pccard/pccardvar.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009160652.XAA58113>
