diff options
author | imp <imp@FreeBSD.org> | 2003-10-07 03:40:17 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-10-07 03:40:17 +0000 |
commit | 323e5692c5d680f326a25f8aadb3cd544f3bea69 (patch) | |
tree | 4e2c89baf49641a262f7367584a443701362344a /sys/dev/cardbus | |
parent | 3c9423ed25228cccc58f281d5cc13d4f5e9f4718 (diff) | |
download | FreeBSD-src-323e5692c5d680f326a25f8aadb3cd544f3bea69.zip FreeBSD-src-323e5692c5d680f326a25f8aadb3cd544f3bea69.tar.gz |
remove obsolete quirks for cardbus cis. none have proven to be needed.
Diffstat (limited to 'sys/dev/cardbus')
-rw-r--r-- | sys/dev/cardbus/cardbus_cis.c | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/sys/dev/cardbus/cardbus_cis.c b/sys/dev/cardbus/cardbus_cis.c index 1506af5..326bdc6 100644 --- a/sys/dev/cardbus/cardbus_cis.c +++ b/sys/dev/cardbus/cardbus_cis.c @@ -140,18 +140,6 @@ static char *funcnames[] = { "Security" }; -struct cardbus_quirk { - uint32_t devid; /* Vendor/device of the card */ - int type; -#define CARDBUS_QUIRK_MAP_REG 1 /* PCI map register in weird place */ - int arg1; - int arg2; -}; - -struct cardbus_quirk cardbus_quirks[] = { - { 0 } -}; - /* * Handler functions for various CIS tuples */ @@ -988,25 +976,15 @@ static void cardbus_pickup_maps(device_t cbdev, device_t child) { struct cardbus_devinfo *dinfo = device_get_ivars(child); - struct cardbus_quirk *q; int reg; /* * Try to pick up any resources that was not specified in CIS. - * Some devices (eg, 3c656) does not list all resources required by - * the driver in its CIS. - * XXX: should we do this or use quirks? + * Maybe this isn't any longer necessary now that we have fixed + * CIS parsing and we should filter things here? XXX */ - for (reg = 0; reg < dinfo->pci.cfg.nummaps; reg++) { + for (reg = 0; reg < dinfo->pci.cfg.nummaps; reg++) cardbus_add_map(cbdev, child, PCIR_BAR(reg)); - } - - for (q = &cardbus_quirks[0]; q->devid; q++) { - if (q->devid == ((dinfo->pci.cfg.device << 16) | dinfo->pci.cfg.vendor) - && q->type == CARDBUS_QUIRK_MAP_REG) { - cardbus_add_map(cbdev, child, q->arg1); - } - } } int |