Print this page
PANKOVs restructure


  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  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 /*
  26  * Copyright (c) 2009-2010, Intel Corporation.
  27  * All rights reserved.
  28  */
  29 
  30 #include <sys/types.h>
  31 #include <sys/cmn_err.h>
  32 #include <sys/sysmacros.h>
  33 #include <sys/sunddi.h>
  34 #include <sys/sunndi.h>
  35 #include <sys/acpi/acpi.h>
  36 #include <sys/acpica.h>
  37 #include <sys/acpidev.h>
  38 #include <sys/acpidev_rsc.h>
  39 #include <sys/acpidev_impl.h>
  40 
  41 #define ACPIDEV_RES_INIT_ITEMS          8
  42 #define ACPIDEV_RES_INCR_ITEMS          8
  43 
  44 /* Data structure to hold parsed resources during walking. */
  45 struct acpidev_resource_handle {
  46         boolean_t                       acpidev_consumer;
  47         int                             acpidev_reg_count;
  48         int                             acpidev_reg_max;
  49         acpidev_phys_spec_t             *acpidev_regp;
  50         acpidev_phys_spec_t             acpidev_regs[ACPIDEV_RES_INIT_ITEMS];
  51         int                             acpidev_range_count;
  52         int                             acpidev_range_max;
  53         acpidev_ranges_t                *acpidev_rangep;
  54         acpidev_ranges_t                acpidev_ranges[ACPIDEV_RES_INIT_ITEMS];
  55         int                             acpidev_bus_count;




  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  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 /*
  26  * Copyright (c) 2009-2010, Intel Corporation.
  27  * All rights reserved.
  28  */
  29 
  30 #include <sys/types.h>
  31 #include <sys/cmn_err.h>
  32 #include <sys/sysmacros.h>
  33 #include <sys/sunddi.h>
  34 #include <sys/sunndi.h>
  35 #include <acpica/include/acpi.h>
  36 #include <sys/acpica.h>
  37 #include <sys/acpidev.h>
  38 #include <sys/acpidev_rsc.h>
  39 #include <sys/acpidev_impl.h>
  40 
  41 #define ACPIDEV_RES_INIT_ITEMS          8
  42 #define ACPIDEV_RES_INCR_ITEMS          8
  43 
  44 /* Data structure to hold parsed resources during walking. */
  45 struct acpidev_resource_handle {
  46         boolean_t                       acpidev_consumer;
  47         int                             acpidev_reg_count;
  48         int                             acpidev_reg_max;
  49         acpidev_phys_spec_t             *acpidev_regp;
  50         acpidev_phys_spec_t             acpidev_regs[ACPIDEV_RES_INIT_ITEMS];
  51         int                             acpidev_range_count;
  52         int                             acpidev_range_max;
  53         acpidev_ranges_t                *acpidev_rangep;
  54         acpidev_ranges_t                acpidev_ranges[ACPIDEV_RES_INIT_ITEMS];
  55         int                             acpidev_bus_count;