109f67678Sanish /* 209f67678Sanish * CDDL HEADER START 309f67678Sanish * 409f67678Sanish * The contents of this file are subject to the terms of the 509f67678Sanish * Common Development and Distribution License, Version 1.0 only 609f67678Sanish * (the "License"). You may not use this file except in compliance 709f67678Sanish * with the License. 809f67678Sanish * 909f67678Sanish * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1009f67678Sanish * or http://www.opensolaris.org/os/licensing. 1109f67678Sanish * See the License for the specific language governing permissions 1209f67678Sanish * and limitations under the License. 1309f67678Sanish * 1409f67678Sanish * When distributing Covered Code, include this CDDL HEADER in each 1509f67678Sanish * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1609f67678Sanish * If applicable, add the following below this CDDL HEADER, with the 1709f67678Sanish * fields enclosed by brackets "[]" replaced with your own identifying 1809f67678Sanish * information: Portions Copyright [yyyy] [name of copyright owner] 1909f67678Sanish * 2009f67678Sanish * CDDL HEADER END 2109f67678Sanish */ 2209f67678Sanish 2309f67678Sanish /* 2409f67678Sanish * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 2509f67678Sanish * Use is subject to license terms. 2609f67678Sanish */ 2709f67678Sanish 2809f67678Sanish #ifndef _PCI_STRINGS_H 2909f67678Sanish #define _PCI_STRINGS_H 3009f67678Sanish 3109f67678Sanish #ifdef __cplusplus 3209f67678Sanish extern "C" { 3309f67678Sanish #endif 3409f67678Sanish 3509f67678Sanish #include <sys/types.h> 3609f67678Sanish #include <sys/stat.h> 3709f67678Sanish 3809f67678Sanish typedef struct pci_class_strings_s { 3909f67678Sanish uint8_t base_class; /* Base class of the PCI/PCI-X/PCIe function */ 4009f67678Sanish uint8_t sub_class; /* Sub-class of the PCI/PCI-X/PCIe function */ 4109f67678Sanish uint8_t prog_class; /* Programming class of PCI/X, PCIe function */ 4209f67678Sanish char *actual_desc; /* PCI/PCI-X/PCIe function's description */ 4309f67678Sanish char *short_desc; /* Cfgadm based original short description */ 4409f67678Sanish } pci_class_strings_t; 4509f67678Sanish 46*bd97c7ceSRobert Mustacchi extern const pci_class_strings_t class_pci[]; 47*bd97c7ceSRobert Mustacchi extern size_t class_pci_items; 48*bd97c7ceSRobert Mustacchi 4909f67678Sanish #ifdef __cplusplus 5009f67678Sanish } 5109f67678Sanish #endif 5209f67678Sanish 5309f67678Sanish #endif /* _PCI_STRINGS_H */ 54