41 #include <sys/ddi.h>
42 #include <sys/sunddi.h>
43 #include <sys/esunddi.h>
44 #include <sys/kstat.h>
45 #include <sys/x86_archext.h>
46
47 #include <sys/acpi/acpi.h>
48 #include <sys/acpica.h>
49 #include <sys/archsystm.h>
50
51 /*
52 *
53 */
54 static struct modlmisc modlmisc = {
55 &mod_miscops,
56 "ACPI interpreter",
57 };
58
59 static struct modlinkage modlinkage = {
60 MODREV_1, /* MODREV_1 manual */
61 (void *)&modlmisc, /* module linkage */
62 NULL, /* list terminator */
63 };
64
65 /*
66 * Local prototypes
67 */
68
69 struct parsed_prw {
70 ACPI_HANDLE prw_gpeobj;
71 int prw_gpebit;
72 int prw_level;
73 };
74
75 static void acpica_init_kstats(void);
76 static ACPI_STATUS acpica_init_PRW(
77 ACPI_HANDLE hdl,
78 UINT32 lvl,
79 void *ctxp,
80 void **rvpp);
81
82 static ACPI_STATUS acpica_parse_PRW(
|
41 #include <sys/ddi.h>
42 #include <sys/sunddi.h>
43 #include <sys/esunddi.h>
44 #include <sys/kstat.h>
45 #include <sys/x86_archext.h>
46
47 #include <sys/acpi/acpi.h>
48 #include <sys/acpica.h>
49 #include <sys/archsystm.h>
50
51 /*
52 *
53 */
54 static struct modlmisc modlmisc = {
55 &mod_miscops,
56 "ACPI interpreter",
57 };
58
59 static struct modlinkage modlinkage = {
60 MODREV_1, /* MODREV_1 manual */
61 { (void *)&modlmisc, NULL } /* module linkage */
62 };
63
64 /*
65 * Local prototypes
66 */
67
68 struct parsed_prw {
69 ACPI_HANDLE prw_gpeobj;
70 int prw_gpebit;
71 int prw_level;
72 };
73
74 static void acpica_init_kstats(void);
75 static ACPI_STATUS acpica_init_PRW(
76 ACPI_HANDLE hdl,
77 UINT32 lvl,
78 void *ctxp,
79 void **rvpp);
80
81 static ACPI_STATUS acpica_parse_PRW(
|