diff options
author | imp <imp@FreeBSD.org> | 2003-10-06 07:17:20 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-10-06 07:17:20 +0000 |
commit | c69588a19e4076891247cd749b2d79c3a3f3275c (patch) | |
tree | fe9be305acf746a40ea45621b4cf7713d53ae7f6 /sys/dev/pccard/pccardvar.h | |
parent | 57b5be873dd70f4cb71c087d358b71380cadff0d (diff) | |
download | FreeBSD-src-c69588a19e4076891247cd749b2d79c3a3f3275c.zip FreeBSD-src-c69588a19e4076891247cd749b2d79c3a3f3275c.tar.gz |
refactor how we do the quirk matching. this puts an ugly if into a
routine of its own, and allows us to move the indentation back two
layers making the code more readable.
delete a prototype that should have been killed years ago in pccardvar.h.
# adding quirks here is way harder than it needs to be. :-(
Diffstat (limited to 'sys/dev/pccard/pccardvar.h')
-rw-r--r-- | sys/dev/pccard/pccardvar.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pccard/pccardvar.h b/sys/dev/pccard/pccardvar.h index 43266f0..0289a3f 100644 --- a/sys/dev/pccard/pccardvar.h +++ b/sys/dev/pccard/pccardvar.h @@ -203,9 +203,6 @@ struct pccard_softc { int sc_enabled_count; /* num functions enabled */ }; -void -pccardbus_if_setup(struct pccard_softc*); - struct pccard_cis_quirk { int32_t manufacturer; int32_t product; @@ -286,7 +283,8 @@ int pccard_scan_cis(device_t, #define PCCARD_SPACE_MEMORY 1 #define PCCARD_SPACE_IO 2 -#define pccard_mfc(sc) (STAILQ_FIRST(&(sc)->card.pf_head) && \ +#define pccard_mfc(sc) \ + (STAILQ_FIRST(&(sc)->card.pf_head) && \ STAILQ_NEXT(STAILQ_FIRST(&(sc)->card.pf_head),pf_list)) #define pccard_io_alloc(pf, start, size, align, pciop) \ |