Recognize a few more CT5880 chips. Only cosmetic, does not
affect functionality.
This commit is contained in:
parent
661f8e80e2
commit
98539df1fe
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: eap.c,v 1.59 2002/11/30 00:20:02 pooka Exp $ */
|
||||
/* $NetBSD: eap.c,v 1.60 2002/12/05 11:26:26 pooka Exp $ */
|
||||
/* $OpenBSD: eap.c,v 1.6 1999/10/05 19:24:42 csapuntz Exp $ */
|
||||
|
||||
/*
|
||||
@ -57,7 +57,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: eap.c,v 1.59 2002/11/30 00:20:02 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: eap.c,v 1.60 2002/12/05 11:26:26 pooka Exp $");
|
||||
|
||||
#include "midi.h"
|
||||
|
||||
@ -589,15 +589,21 @@ eap_attach(struct device *parent, struct device *self, void *aux)
|
||||
ct5880 = 0;
|
||||
if (sc->sc_1371) {
|
||||
if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_ENSONIQ &&
|
||||
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_ENSONIQ_CT5880)
|
||||
PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_ENSONIQ_CT5880) {
|
||||
ct5880 = 1;
|
||||
switch (revision) {
|
||||
case EAP_EV1938_A: revstr = "EV1938A "; break;
|
||||
case EAP_CT5880_C: revstr = "CT5880C "; ct5880 = 1; break;
|
||||
case EAP_ES1373_A: revstr = "ES1373A "; break;
|
||||
case EAP_ES1373_B: revstr = "ES1373B "; break;
|
||||
case EAP_CT5880_A: revstr = "CT5880A "; ct5880 = 1; break;
|
||||
case EAP_ES1371_B: revstr = "ES1371B "; break;
|
||||
switch (revision) {
|
||||
case EAP_CT5880_C: revstr = "CT5880C "; break;
|
||||
case EAP_CT5880_D: revstr = "CT5880D "; break;
|
||||
case EAP_CT5880_E: revstr = "CT5880E "; break;
|
||||
case EAP_CT5880_A: revstr = "CT5880A "; break;
|
||||
}
|
||||
} else {
|
||||
switch (revision) {
|
||||
case EAP_EV1938_A: revstr = "EV1938A "; break;
|
||||
case EAP_ES1373_A: revstr = "ES1373A "; break;
|
||||
case EAP_ES1373_B: revstr = "ES1373B "; break;
|
||||
case EAP_ES1371_B: revstr = "ES1371B "; break;
|
||||
}
|
||||
}
|
||||
}
|
||||
printf(": %s %s(rev. 0x%02x)\n", devinfo, revstr, revision);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: eapreg.h,v 1.4 2002/11/11 22:17:47 pooka Exp $ */
|
||||
/* $NetBSD: eapreg.h,v 1.5 2002/12/05 11:26:26 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
|
||||
@ -278,6 +278,8 @@
|
||||
|
||||
#define EAP_EV1938_A 0x00
|
||||
#define EAP_CT5880_C 0x02
|
||||
#define EAP_CT5880_D 0x03
|
||||
#define EAP_CT5880_E 0x04
|
||||
#define EAP_ES1373_A 0x04
|
||||
#define EAP_ES1373_B 0x06
|
||||
#define EAP_CT5880_A 0x07
|
||||
|
Loading…
Reference in New Issue
Block a user