From b8d0641b681b85ce7d48bebd18f6b9a6ac9cb60a Mon Sep 17 00:00:00 2001 From: drochner Date: Fri, 22 Mar 2002 20:03:20 +0000 Subject: [PATCH] iadd subclass codes from the 2.3 spec --- sys/dev/pci/pci_subr.c | 10 ++++++++-- sys/dev/pci/pcireg.h | 8 +++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/pci_subr.c b/sys/dev/pci/pci_subr.c index a237a448159b..2213a825a818 100644 --- a/sys/dev/pci/pci_subr.c +++ b/sys/dev/pci/pci_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: pci_subr.c,v 1.47 2001/11/13 07:48:47 lukem Exp $ */ +/* $NetBSD: pci_subr.c,v 1.48 2002/03/22 20:03:20 drochner Exp $ */ /* * Copyright (c) 1997 Zubin D. Dittia. All rights reserved. @@ -40,7 +40,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.47 2001/11/13 07:48:47 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.48 2002/03/22 20:03:20 drochner Exp $"); #ifdef _KERNEL_OPT #include "opt_pci.h" @@ -149,6 +149,8 @@ const struct pci_class pci_subclass_communications[] = { { "parallel", PCI_SUBCLASS_COMMUNICATIONS_PARALLEL, }, { "multi-port serial", PCI_SUBCLASS_COMMUNICATIONS_MPSERIAL, }, { "modem", PCI_SUBCLASS_COMMUNICATIONS_MODEM, }, + { "GPIB", PCI_SUBCLASS_COMMUNICATIONS_GPIB, }, + { "smartcard", PCI_SUBCLASS_COMMUNICATIONS_SMARTCARD, }, { "miscellaneous", PCI_SUBCLASS_COMMUNICATIONS_MISC, }, { 0 }, }; @@ -209,6 +211,8 @@ const struct pci_class pci_subclass_wireless[] = { { "IrDA", PCI_SUBCLASS_WIRELESS_IRDA, }, { "Consumer IR", PCI_SUBCLASS_WIRELESS_CONSUMERIR, }, { "RF", PCI_SUBCLASS_WIRELESS_RF, }, + { "bluetooth", PCI_SUBCLASS_WIRELESS_BLUETOOTH, }, + { "broadband", PCI_SUBCLASS_WIRELESS_BROADBAND, }, { "miscellaneous", PCI_SUBCLASS_WIRELESS_MISC, }, { 0 }, }; @@ -236,6 +240,8 @@ const struct pci_class pci_subclass_crypto[] = { const struct pci_class pci_subclass_dasp[] = { { "DPIO", PCI_SUBCLASS_DASP_DPIO, }, { "Time and Frequency", PCI_SUBCLASS_DASP_TIMEFREQ, }, + { "synchronization", PCI_SUBCLASS_DASP_SYNC, }, + { "management", PCI_SUBCLASS_DASP_MGMT, }, { "miscellaneous", PCI_SUBCLASS_DASP_MISC, }, { 0 }, }; diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h index 83989884d133..e541c140e72d 100644 --- a/sys/dev/pci/pcireg.h +++ b/sys/dev/pci/pcireg.h @@ -1,4 +1,4 @@ -/* $NetBSD: pcireg.h,v 1.36 2001/08/30 02:53:56 briggs Exp $ */ +/* $NetBSD: pcireg.h,v 1.37 2002/03/22 20:03:20 drochner Exp $ */ /* * Copyright (c) 1995, 1996, 1999, 2000 @@ -216,6 +216,8 @@ typedef u_int8_t pci_revision_t; #define PCI_SUBCLASS_COMMUNICATIONS_PARALLEL 0x01 #define PCI_SUBCLASS_COMMUNICATIONS_MPSERIAL 0x02 #define PCI_SUBCLASS_COMMUNICATIONS_MODEM 0x03 +#define PCI_SUBCLASS_COMMUNICATIONS_GPIB 0x04 +#define PCI_SUBCLASS_COMMUNICATIONS_SMARTCARD 0x05 #define PCI_SUBCLASS_COMMUNICATIONS_MISC 0x80 /* 0x08 system subclasses */ @@ -263,6 +265,8 @@ typedef u_int8_t pci_revision_t; #define PCI_SUBCLASS_WIRELESS_IRDA 0x00 #define PCI_SUBCLASS_WIRELESS_CONSUMERIR 0x01 #define PCI_SUBCLASS_WIRELESS_RF 0x10 +#define PCI_SUBCLASS_WIRELESS_BLUETOOTH 0x11 +#define PCI_SUBCLASS_WIRELESS_BROADBAND 0x12 #define PCI_SUBCLASS_WIRELESS_MISC 0x80 /* 0x0e I2O (Intelligent I/O) subclasses */ @@ -283,6 +287,8 @@ typedef u_int8_t pci_revision_t; /* 0x11 data acquisition and signal processing subclasses */ #define PCI_SUBCLASS_DASP_DPIO 0x00 #define PCI_SUBCLASS_DASP_TIMEFREQ 0x01 +#define PCI_SUBCLASS_DASP_SYNC 0x10 +#define PCI_SUBCLASS_DASP_MGMT 0x20 #define PCI_SUBCLASS_DASP_MISC 0x80 /*