This source file includes following definitions.
- main
1
2
3
4
5
6
7
8 #include <linux/kbuild.h>
9 #include <linux/platform_data/pm33xx.h>
10 #include <linux/ti-emif-sram.h>
11
12 int main(void)
13 {
14 ti_emif_asm_offsets();
15
16 DEFINE(AMX3_PM_WFI_FLAGS_OFFSET,
17 offsetof(struct am33xx_pm_sram_data, wfi_flags));
18 DEFINE(AMX3_PM_L2_AUX_CTRL_VAL_OFFSET,
19 offsetof(struct am33xx_pm_sram_data, l2_aux_ctrl_val));
20 DEFINE(AMX3_PM_L2_PREFETCH_CTRL_VAL_OFFSET,
21 offsetof(struct am33xx_pm_sram_data, l2_prefetch_ctrl_val));
22 DEFINE(AMX3_PM_SRAM_DATA_SIZE, sizeof(struct am33xx_pm_sram_data));
23
24 BLANK();
25
26 DEFINE(AMX3_PM_RO_SRAM_DATA_VIRT_OFFSET,
27 offsetof(struct am33xx_pm_ro_sram_data, amx3_pm_sram_data_virt));
28 DEFINE(AMX3_PM_RO_SRAM_DATA_PHYS_OFFSET,
29 offsetof(struct am33xx_pm_ro_sram_data, amx3_pm_sram_data_phys));
30 DEFINE(AMX3_PM_RTC_BASE_VIRT_OFFSET,
31 offsetof(struct am33xx_pm_ro_sram_data, rtc_base_virt));
32 DEFINE(AMX3_PM_RO_SRAM_DATA_SIZE,
33 sizeof(struct am33xx_pm_ro_sram_data));
34
35 return 0;
36 }