From 7a9757f3a5087bb39063f42272dfcdafccf4bf53 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 10 May 1999 10:23:40 +0000 Subject: Detect PCI device IDs for latest boards. Simplified the ID comparisons. Submitted by: Ivan Passos (rewritten by me) --- sys/dev/cy/cy_pci.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/cy/cy_pci.c b/sys/dev/cy/cy_pci.c index f6cd10c9ff3c..3034deefcf86 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 -- cgit v1.3