Lines Matching refs:fadt
17 void acpi_create_fadt(struct acpi_fadt *fadt, struct acpi_facs *facs, in acpi_create_fadt() argument
20 struct acpi_table_header *header = &(fadt->header); in acpi_create_fadt()
23 memset((void *)fadt, 0, sizeof(struct acpi_fadt)); in acpi_create_fadt()
29 fadt->firmware_ctrl = (u32)facs; in acpi_create_fadt()
30 fadt->dsdt = (u32)dsdt; in acpi_create_fadt()
31 fadt->preferred_pm_profile = ACPI_PM_MOBILE; in acpi_create_fadt()
32 fadt->sci_int = 9; in acpi_create_fadt()
33 fadt->smi_cmd = 0; in acpi_create_fadt()
34 fadt->acpi_enable = 0; in acpi_create_fadt()
35 fadt->acpi_disable = 0; in acpi_create_fadt()
36 fadt->s4bios_req = 0; in acpi_create_fadt()
37 fadt->pstate_cnt = 0; in acpi_create_fadt()
38 fadt->pm1a_evt_blk = pmbase; in acpi_create_fadt()
39 fadt->pm1b_evt_blk = 0x0; in acpi_create_fadt()
40 fadt->pm1a_cnt_blk = pmbase + 0x4; in acpi_create_fadt()
41 fadt->pm1b_cnt_blk = 0x0; in acpi_create_fadt()
42 fadt->pm2_cnt_blk = pmbase + 0x50; in acpi_create_fadt()
43 fadt->pm_tmr_blk = pmbase + 0x8; in acpi_create_fadt()
44 fadt->gpe0_blk = pmbase + 0x20; in acpi_create_fadt()
45 fadt->gpe1_blk = 0; in acpi_create_fadt()
46 fadt->pm1_evt_len = 4; in acpi_create_fadt()
47 fadt->pm1_cnt_len = 2; in acpi_create_fadt()
48 fadt->pm2_cnt_len = 1; in acpi_create_fadt()
49 fadt->pm_tmr_len = 4; in acpi_create_fadt()
50 fadt->gpe0_blk_len = 8; in acpi_create_fadt()
51 fadt->gpe1_blk_len = 0; in acpi_create_fadt()
52 fadt->gpe1_base = 0; in acpi_create_fadt()
53 fadt->cst_cnt = 0; in acpi_create_fadt()
54 fadt->p_lvl2_lat = ACPI_FADT_C2_NOT_SUPPORTED; in acpi_create_fadt()
55 fadt->p_lvl3_lat = ACPI_FADT_C3_NOT_SUPPORTED; in acpi_create_fadt()
56 fadt->flush_size = 0; in acpi_create_fadt()
57 fadt->flush_stride = 0; in acpi_create_fadt()
58 fadt->duty_offset = 1; in acpi_create_fadt()
59 fadt->duty_width = 0; in acpi_create_fadt()
60 fadt->day_alrm = 0x0d; in acpi_create_fadt()
61 fadt->mon_alrm = 0x00; in acpi_create_fadt()
62 fadt->century = 0x00; in acpi_create_fadt()
63 fadt->iapc_boot_arch = ACPI_FADT_LEGACY_DEVICES | ACPI_FADT_8042; in acpi_create_fadt()
64 fadt->flags = ACPI_FADT_WBINVD | ACPI_FADT_C1_SUPPORTED | in acpi_create_fadt()
69 fadt->reset_reg.space_id = ACPI_ADDRESS_SPACE_IO; in acpi_create_fadt()
70 fadt->reset_reg.bit_width = 8; in acpi_create_fadt()
71 fadt->reset_reg.bit_offset = 0; in acpi_create_fadt()
72 fadt->reset_reg.access_size = ACPI_ACCESS_SIZE_BYTE_ACCESS; in acpi_create_fadt()
73 fadt->reset_reg.addrl = IO_PORT_RESET; in acpi_create_fadt()
74 fadt->reset_reg.addrh = 0; in acpi_create_fadt()
75 fadt->reset_value = SYS_RST | RST_CPU | FULL_RST; in acpi_create_fadt()
77 fadt->x_firmware_ctl_l = (u32)facs; in acpi_create_fadt()
78 fadt->x_firmware_ctl_h = 0; in acpi_create_fadt()
79 fadt->x_dsdt_l = (u32)dsdt; in acpi_create_fadt()
80 fadt->x_dsdt_h = 0; in acpi_create_fadt()
82 fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO; in acpi_create_fadt()
83 fadt->x_pm1a_evt_blk.bit_width = fadt->pm1_evt_len * 8; in acpi_create_fadt()
84 fadt->x_pm1a_evt_blk.bit_offset = 0; in acpi_create_fadt()
85 fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_DWORD_ACCESS; in acpi_create_fadt()
86 fadt->x_pm1a_evt_blk.addrl = fadt->pm1a_evt_blk; in acpi_create_fadt()
87 fadt->x_pm1a_evt_blk.addrh = 0x0; in acpi_create_fadt()
89 fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO; in acpi_create_fadt()
90 fadt->x_pm1b_evt_blk.bit_width = 0; in acpi_create_fadt()
91 fadt->x_pm1b_evt_blk.bit_offset = 0; in acpi_create_fadt()
92 fadt->x_pm1b_evt_blk.access_size = 0; in acpi_create_fadt()
93 fadt->x_pm1b_evt_blk.addrl = 0x0; in acpi_create_fadt()
94 fadt->x_pm1b_evt_blk.addrh = 0x0; in acpi_create_fadt()
96 fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO; in acpi_create_fadt()
97 fadt->x_pm1a_cnt_blk.bit_width = fadt->pm1_cnt_len * 8; in acpi_create_fadt()
98 fadt->x_pm1a_cnt_blk.bit_offset = 0; in acpi_create_fadt()
99 fadt->x_pm1a_cnt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS; in acpi_create_fadt()
100 fadt->x_pm1a_cnt_blk.addrl = fadt->pm1a_cnt_blk; in acpi_create_fadt()
101 fadt->x_pm1a_cnt_blk.addrh = 0x0; in acpi_create_fadt()
103 fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO; in acpi_create_fadt()
104 fadt->x_pm1b_cnt_blk.bit_width = 0; in acpi_create_fadt()
105 fadt->x_pm1b_cnt_blk.bit_offset = 0; in acpi_create_fadt()
106 fadt->x_pm1b_cnt_blk.access_size = 0; in acpi_create_fadt()
107 fadt->x_pm1b_cnt_blk.addrl = 0x0; in acpi_create_fadt()
108 fadt->x_pm1b_cnt_blk.addrh = 0x0; in acpi_create_fadt()
110 fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO; in acpi_create_fadt()
111 fadt->x_pm2_cnt_blk.bit_width = fadt->pm2_cnt_len * 8; in acpi_create_fadt()
112 fadt->x_pm2_cnt_blk.bit_offset = 0; in acpi_create_fadt()
113 fadt->x_pm2_cnt_blk.access_size = ACPI_ACCESS_SIZE_BYTE_ACCESS; in acpi_create_fadt()
114 fadt->x_pm2_cnt_blk.addrl = fadt->pm2_cnt_blk; in acpi_create_fadt()
115 fadt->x_pm2_cnt_blk.addrh = 0x0; in acpi_create_fadt()
117 fadt->x_pm_tmr_blk.space_id = ACPI_ADDRESS_SPACE_IO; in acpi_create_fadt()
118 fadt->x_pm_tmr_blk.bit_width = fadt->pm_tmr_len * 8; in acpi_create_fadt()
119 fadt->x_pm_tmr_blk.bit_offset = 0; in acpi_create_fadt()
120 fadt->x_pm_tmr_blk.access_size = ACPI_ACCESS_SIZE_DWORD_ACCESS; in acpi_create_fadt()
121 fadt->x_pm_tmr_blk.addrl = fadt->pm_tmr_blk; in acpi_create_fadt()
122 fadt->x_pm_tmr_blk.addrh = 0x0; in acpi_create_fadt()
124 fadt->x_gpe0_blk.space_id = ACPI_ADDRESS_SPACE_IO; in acpi_create_fadt()
125 fadt->x_gpe0_blk.bit_width = fadt->gpe0_blk_len * 8; in acpi_create_fadt()
126 fadt->x_gpe0_blk.bit_offset = 0; in acpi_create_fadt()
127 fadt->x_gpe0_blk.access_size = ACPI_ACCESS_SIZE_DWORD_ACCESS; in acpi_create_fadt()
128 fadt->x_gpe0_blk.addrl = fadt->gpe0_blk; in acpi_create_fadt()
129 fadt->x_gpe0_blk.addrh = 0x0; in acpi_create_fadt()
131 fadt->x_gpe1_blk.space_id = ACPI_ADDRESS_SPACE_IO; in acpi_create_fadt()
132 fadt->x_gpe1_blk.bit_width = 0; in acpi_create_fadt()
133 fadt->x_gpe1_blk.bit_offset = 0; in acpi_create_fadt()
134 fadt->x_gpe1_blk.access_size = 0; in acpi_create_fadt()
135 fadt->x_gpe1_blk.addrl = 0x0; in acpi_create_fadt()
136 fadt->x_gpe1_blk.addrh = 0x0; in acpi_create_fadt()
138 header->checksum = table_compute_checksum(fadt, header->length); in acpi_create_fadt()