diff options
author | bde <bde@FreeBSD.org> | 1999-05-10 10:23:40 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-05-10 10:23:40 +0000 |
commit | fcb48c4f625f2a63df8c8d60bc9ed0eb2f211b60 (patch) | |
tree | 4d17cbd6814525100fd40bd07a6e1599a3bda625 /sys/dev/cy/cy_pci.c | |
parent | f2521ffec6baf1e36d3ae3423e06634ec41b2891 (diff) | |
download | FreeBSD-src-fcb48c4f625f2a63df8c8d60bc9ed0eb2f211b60.zip FreeBSD-src-fcb48c4f625f2a63df8c8d60bc9ed0eb2f211b60.tar.gz |
Detect PCI device IDs for latest boards. Simplified the ID comparisons.
Submitted by: Ivan Passos <ivan@cyclades.com> (rewritten by me)
Diffstat (limited to 'sys/dev/cy/cy_pci.c')
-rw-r--r-- | sys/dev/cy/cy_pci.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/cy/cy_pci.c b/sys/dev/cy/cy_pci.c index f6cd10c..3034dee 100644 --- a/sys/dev/cy/cy_pci.c +++ b/sys/dev/cy/cy_pci.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cy_pci.c,v 1.13 1999/05/02 20:42:13 peter Exp $ + * $Id: cy_pci.c,v 1.14 1999/05/09 17:06:43 peter Exp $ */ /* @@ -72,11 +72,10 @@ cy_probe(config_id, device_id) pcici_t config_id; pcidi_t device_id; { - if ((device_id & 0xffff) == CY_VENDORID_CYCLADES && - ((device_id >> 16) == CY_DEVICEID_CYCLOM_Y_1 || - (device_id >> 16) == CY_DEVICEID_CYCLOM_Y_2)) + device_id &= ~0x00060000; + if (device_id == 0x0100120e || device_id == 0x0101120e) return ("Cyclades Cyclom-Y Serial Adapter"); - return NULL; + return (NULL); } static void |