1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys/dev/pccard
Warner Losh 2276cee521 Implement indirection in the pccard probe/attach. This should make it
possible to have different probe/attach semantics between the two
systems and yet still use the same driver for both.

Compatibility methods for OLDCARD drivers.  We use these routines to make
it possible to call the OLDCARD driver's probe routine in the context that
it expects.  For OLDCARD these are implemented as pass throughs to the
device_{probe,attach} routines.  For NEWCARD they are implemented such
such that probe becomes strictly a matching routine and attach does both
the old probe and old attach.

compat devices should use the following:

	/* Device interface */
	DEVMETHOD(device_probe),	pccard_compat_probe),
	DEVMETHOD(device_attach),	pccard_compat_attach),
	/* Card interface */
	DEVMETHOD(card_compat_match,	foo_match),	/* newly written */
	DEVMETHOD(card_compat_probe,	foo_probe),	/* old probe */
	DEVMETHOD(card_compat_attach,	foo_attach),	/* old attach */

This will allow a single driver binary image to be used for both
OLDCARD and NEWCARD.

Drivers wishing to not retain OLDCARD compatibility needn't do this.

ep driver minorly updated.

sn driver updated more than minorly.  Add module dependencies to allow
module to load.  Also change name to if_sn.  Add some debugging code.
attempt to fix the cannot allocate memory problem I'd been seeing.
Minor formatting nits.
2000-09-19 04:39:20 +00:00
..
card_if.m Implement indirection in the pccard probe/attach. This should make it 2000-09-19 04:39:20 +00:00
devlist2h.awk
files.pccard
Makefile.pccarddevs
pccard_cis_quirks.c MFNetBSD: 2000-09-05 18:25:49 +00:00
pccard_cis.c o Move to using PCCARD_SOFTC(dev) 2000-08-19 19:22:04 +00:00
pccard.c Implement indirection in the pccard probe/attach. This should make it 2000-09-19 04:39:20 +00:00
pccarddevs o Fix unterminated comment 2000-08-24 07:01:12 +00:00
pccarddevs_data.h Sync to pccarddevs 1.5 2000-08-24 07:01:49 +00:00
pccarddevs.h Sync to pccarddevs 1.5 2000-08-24 07:01:49 +00:00
pccardreg.h
pccardvar.h Implement indirection in the pccard probe/attach. This should make it 2000-09-19 04:39:20 +00:00
power_if.m Include <sys/bus.h>, which is needed after Doug's latest object changes. 2000-04-16 06:04:13 +00:00