iadd subclass codes from the 2.3 spec

This commit is contained in:
drochner 2002-03-22 20:03:20 +00:00
parent c910c75b83
commit b8d0641b68
2 changed files with 15 additions and 3 deletions

View File

@ -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. * Copyright (c) 1997 Zubin D. Dittia. All rights reserved.
@ -40,7 +40,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__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 #ifdef _KERNEL_OPT
#include "opt_pci.h" #include "opt_pci.h"
@ -149,6 +149,8 @@ const struct pci_class pci_subclass_communications[] = {
{ "parallel", PCI_SUBCLASS_COMMUNICATIONS_PARALLEL, }, { "parallel", PCI_SUBCLASS_COMMUNICATIONS_PARALLEL, },
{ "multi-port serial", PCI_SUBCLASS_COMMUNICATIONS_MPSERIAL, }, { "multi-port serial", PCI_SUBCLASS_COMMUNICATIONS_MPSERIAL, },
{ "modem", PCI_SUBCLASS_COMMUNICATIONS_MODEM, }, { "modem", PCI_SUBCLASS_COMMUNICATIONS_MODEM, },
{ "GPIB", PCI_SUBCLASS_COMMUNICATIONS_GPIB, },
{ "smartcard", PCI_SUBCLASS_COMMUNICATIONS_SMARTCARD, },
{ "miscellaneous", PCI_SUBCLASS_COMMUNICATIONS_MISC, }, { "miscellaneous", PCI_SUBCLASS_COMMUNICATIONS_MISC, },
{ 0 }, { 0 },
}; };
@ -209,6 +211,8 @@ const struct pci_class pci_subclass_wireless[] = {
{ "IrDA", PCI_SUBCLASS_WIRELESS_IRDA, }, { "IrDA", PCI_SUBCLASS_WIRELESS_IRDA, },
{ "Consumer IR", PCI_SUBCLASS_WIRELESS_CONSUMERIR, }, { "Consumer IR", PCI_SUBCLASS_WIRELESS_CONSUMERIR, },
{ "RF", PCI_SUBCLASS_WIRELESS_RF, }, { "RF", PCI_SUBCLASS_WIRELESS_RF, },
{ "bluetooth", PCI_SUBCLASS_WIRELESS_BLUETOOTH, },
{ "broadband", PCI_SUBCLASS_WIRELESS_BROADBAND, },
{ "miscellaneous", PCI_SUBCLASS_WIRELESS_MISC, }, { "miscellaneous", PCI_SUBCLASS_WIRELESS_MISC, },
{ 0 }, { 0 },
}; };
@ -236,6 +240,8 @@ const struct pci_class pci_subclass_crypto[] = {
const struct pci_class pci_subclass_dasp[] = { const struct pci_class pci_subclass_dasp[] = {
{ "DPIO", PCI_SUBCLASS_DASP_DPIO, }, { "DPIO", PCI_SUBCLASS_DASP_DPIO, },
{ "Time and Frequency", PCI_SUBCLASS_DASP_TIMEFREQ, }, { "Time and Frequency", PCI_SUBCLASS_DASP_TIMEFREQ, },
{ "synchronization", PCI_SUBCLASS_DASP_SYNC, },
{ "management", PCI_SUBCLASS_DASP_MGMT, },
{ "miscellaneous", PCI_SUBCLASS_DASP_MISC, }, { "miscellaneous", PCI_SUBCLASS_DASP_MISC, },
{ 0 }, { 0 },
}; };

View File

@ -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 * 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_PARALLEL 0x01
#define PCI_SUBCLASS_COMMUNICATIONS_MPSERIAL 0x02 #define PCI_SUBCLASS_COMMUNICATIONS_MPSERIAL 0x02
#define PCI_SUBCLASS_COMMUNICATIONS_MODEM 0x03 #define PCI_SUBCLASS_COMMUNICATIONS_MODEM 0x03
#define PCI_SUBCLASS_COMMUNICATIONS_GPIB 0x04
#define PCI_SUBCLASS_COMMUNICATIONS_SMARTCARD 0x05
#define PCI_SUBCLASS_COMMUNICATIONS_MISC 0x80 #define PCI_SUBCLASS_COMMUNICATIONS_MISC 0x80
/* 0x08 system subclasses */ /* 0x08 system subclasses */
@ -263,6 +265,8 @@ typedef u_int8_t pci_revision_t;
#define PCI_SUBCLASS_WIRELESS_IRDA 0x00 #define PCI_SUBCLASS_WIRELESS_IRDA 0x00
#define PCI_SUBCLASS_WIRELESS_CONSUMERIR 0x01 #define PCI_SUBCLASS_WIRELESS_CONSUMERIR 0x01
#define PCI_SUBCLASS_WIRELESS_RF 0x10 #define PCI_SUBCLASS_WIRELESS_RF 0x10
#define PCI_SUBCLASS_WIRELESS_BLUETOOTH 0x11
#define PCI_SUBCLASS_WIRELESS_BROADBAND 0x12
#define PCI_SUBCLASS_WIRELESS_MISC 0x80 #define PCI_SUBCLASS_WIRELESS_MISC 0x80
/* 0x0e I2O (Intelligent I/O) subclasses */ /* 0x0e I2O (Intelligent I/O) subclasses */
@ -283,6 +287,8 @@ typedef u_int8_t pci_revision_t;
/* 0x11 data acquisition and signal processing subclasses */ /* 0x11 data acquisition and signal processing subclasses */
#define PCI_SUBCLASS_DASP_DPIO 0x00 #define PCI_SUBCLASS_DASP_DPIO 0x00
#define PCI_SUBCLASS_DASP_TIMEFREQ 0x01 #define PCI_SUBCLASS_DASP_TIMEFREQ 0x01
#define PCI_SUBCLASS_DASP_SYNC 0x10
#define PCI_SUBCLASS_DASP_MGMT 0x20
#define PCI_SUBCLASS_DASP_MISC 0x80 #define PCI_SUBCLASS_DASP_MISC 0x80
/* /*