summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-06-02 05:07:01 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-06-02 05:07:01 +0000
commit8cf702fe6e641426ccc9427593fa1b0679154b0a (patch)
tree537dbdb7273b12c8bf4ace66f0155a7b6cecdce2 /sys
parent407bab894317dd6e751ad93fdc1dd4135665df59 (diff)
Set flags on the recently added CardBus ids based on
product id.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_xl_pci.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/sys/dev/pci/if_xl_pci.c b/sys/dev/pci/if_xl_pci.c
index bed0c03f5ce..c932b11d23c 100644
--- a/sys/dev/pci/if_xl_pci.c
+++ b/sys/dev/pci/if_xl_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xl_pci.c,v 1.23 2009/06/02 01:23:02 jsg Exp $ */
+/* $OpenBSD: if_xl_pci.c,v 1.24 2009/06/02 05:07:00 jsg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -173,6 +173,32 @@ xl_pci_attach(struct device *parent, struct device *self, void *aux)
case TC_DEVICEID_BOOMERANG_10_100BT:
sc->xl_flags |= XL_FLAG_NO_MMIO;
break;
+ case PCI_PRODUCT_3COM_3C575:
+ sc->xl_flags |= XL_FLAG_PHYOK | XL_FLAG_EEPROM_OFFSET_30 |
+ XL_FLAG_8BITROM;
+ break;
+ case PCI_PRODUCT_3COM_3CCFE575BT:
+ sc->xl_flags = XL_FLAG_PHYOK | XL_FLAG_EEPROM_OFFSET_30 |
+ XL_FLAG_8BITROM | XL_FLAG_INVERT_LED_PWR;
+ break;
+ case PCI_PRODUCT_3COM_3CCFE575CT:
+ sc->xl_flags = XL_FLAG_PHYOK | XL_FLAG_EEPROM_OFFSET_30 |
+ XL_FLAG_8BITROM | XL_FLAG_INVERT_MII_PWR;
+ break;
+ case PCI_PRODUCT_3COM_3CCFEM656:
+ sc->xl_flags = XL_FLAG_PHYOK | XL_FLAG_EEPROM_OFFSET_30 |
+ XL_FLAG_8BITROM | XL_FLAG_INVERT_LED_PWR |
+ XL_FLAG_INVERT_MII_PWR;
+ break;
+ case PCI_PRODUCT_3COM_3CCFEM656B:
+ sc->xl_flags = XL_FLAG_PHYOK | XL_FLAG_EEPROM_OFFSET_30 |
+ XL_FLAG_8BITROM | XL_FLAG_INVERT_LED_PWR |
+ XL_FLAG_INVERT_MII_PWR;
+ break;
+ case PCI_PRODUCT_3COM_3CCFEM656C:
+ sc->xl_flags = XL_FLAG_PHYOK | XL_FLAG_EEPROM_OFFSET_30 |
+ XL_FLAG_8BITROM | XL_FLAG_INVERT_MII_PWR;
+ break;
default:
break;
}