Print this page
PANKOVs restructure


  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 #ifndef _PCIEHPC_ACPI_H
  28 #define _PCIEHPC_ACPI_H
  29 
  30 #ifdef  __cplusplus
  31 extern "C" {
  32 #endif
  33 
  34 #include <sys/acpi/acpi.h>
  35 #include <sys/acpica.h>
  36 #include <sys/hotplug/pci/pcie_hp.h>
  37 #include <sys/hotplug/pci/pciehpc.h>
  38 
  39 /* soft state data structure for ACPI hot plug mode */
  40 typedef struct pciehpc_acpi {
  41         /* handle for the ACPI device for the bus node with HPC */
  42         ACPI_HANDLE     bus_obj;
  43 
  44         /* handle for the ACPI device for the slot (dev#0,func#0) */
  45         ACPI_HANDLE     slot_dev_obj;
  46 
  47         /* ACPI control methods present on the bus node */
  48         uint16_t        bus_methods;
  49 
  50         /* ACPI control methods on the slot device functions */
  51         uint16_t        slot_methods;
  52 } pciehpc_acpi_t;
  53 
  54 /* bit definitions in acpi_bus_methods */




  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 #ifndef _PCIEHPC_ACPI_H
  28 #define _PCIEHPC_ACPI_H
  29 
  30 #ifdef  __cplusplus
  31 extern "C" {
  32 #endif
  33 
  34 #include <acpica/include/acpi.h>
  35 #include <sys/acpica.h>
  36 #include <sys/hotplug/pci/pcie_hp.h>
  37 #include <sys/hotplug/pci/pciehpc.h>
  38 
  39 /* soft state data structure for ACPI hot plug mode */
  40 typedef struct pciehpc_acpi {
  41         /* handle for the ACPI device for the bus node with HPC */
  42         ACPI_HANDLE     bus_obj;
  43 
  44         /* handle for the ACPI device for the slot (dev#0,func#0) */
  45         ACPI_HANDLE     slot_dev_obj;
  46 
  47         /* ACPI control methods present on the bus node */
  48         uint16_t        bus_methods;
  49 
  50         /* ACPI control methods on the slot device functions */
  51         uint16_t        slot_methods;
  52 } pciehpc_acpi_t;
  53 
  54 /* bit definitions in acpi_bus_methods */