Author: adrian
Date: Wed Nov  9 04:38:27 2011
New Revision: 227373
URL: http://svn.freebsd.org/changeset/base/227373

Log:
  Add in some more PCI/PCIe differentiation.

Modified:
  head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c
  head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c

Modified: head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c     Wed Nov  9 04:35:33 
2011        (r227372)
+++ head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c     Wed Nov  9 04:38:27 
2011        (r227373)
@@ -892,9 +892,12 @@ ar9280SetAntennaSwitch(struct ath_hal *a
 static const char*
 ar9280Probe(uint16_t vendorid, uint16_t devid)
 {
-       if (vendorid == ATHEROS_VENDOR_ID &&
-           (devid == AR9280_DEVID_PCI || devid == AR9280_DEVID_PCIE))
-               return "Atheros 9280";
+       if (vendorid == ATHEROS_VENDOR_ID) {
+               if (devid == AR9280_DEVID_PCI)
+                       return "Atheros 9220";
+               if (devid == AR9280_DEVID_PCIE)
+                       return "Atheros 9280";
+       }
        return AH_NULL;
 }
 AH_CHIP(AR9280, ar9280Probe, ar9280Attach);

Modified: head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c     Wed Nov  9 04:35:33 
2011        (r227372)
+++ head/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c     Wed Nov  9 04:38:27 
2011        (r227373)
@@ -471,9 +471,12 @@ ar9287SetAntennaSwitch(struct ath_hal *a
 static const char*
 ar9287Probe(uint16_t vendorid, uint16_t devid)
 {
-       if (vendorid == ATHEROS_VENDOR_ID &&
-           (devid == AR9287_DEVID_PCI || devid == AR9287_DEVID_PCIE))
-               return "Atheros 9287";
+       if (vendorid == ATHEROS_VENDOR_ID) {
+               if (devid == AR9287_DEVID_PCI)
+                       return "Atheros 9227";
+               if (devid == AR9287_DEVID_PCIE)
+                       return "Atheros 9287";
+       }
        return AH_NULL;
 }
 AH_CHIP(AR9287, ar9287Probe, ar9287Attach);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to