prmt.c (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) prmt.c (353efd5e97a7973d78f2634274b57309d0966e29)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Author: Erik Kaneda <erik.kaneda@intel.com>
4 * Copyright 2020 Intel Corporation
5 *
6 * prmt.c
7 *
8 * Each PRM service is an executable that is run in a restricted environment

--- 39 unchanged lines hidden (view full) ---

48 struct prm_mmio_info *mmio_ranges;
49};
50#pragma pack()
51
52static LIST_HEAD(prm_module_list);
53
54struct prm_handler_info {
55 guid_t guid;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Author: Erik Kaneda <erik.kaneda@intel.com>
4 * Copyright 2020 Intel Corporation
5 *
6 * prmt.c
7 *
8 * Each PRM service is an executable that is run in a restricted environment

--- 39 unchanged lines hidden (view full) ---

48 struct prm_mmio_info *mmio_ranges;
49};
50#pragma pack()
51
52static LIST_HEAD(prm_module_list);
53
54struct prm_handler_info {
55 guid_t guid;
56 u64 handler_addr;
56 void *handler_addr;
57 u64 static_data_buffer_addr;
58 u64 acpi_param_buffer_addr;
59
60 struct list_head handler_list;
61};
62
63struct prm_module_info {
64 guid_t guid;

--- 78 unchanged lines hidden (view full) ---

143 INIT_LIST_HEAD(&tm->module_list);
144 list_add(&tm->module_list, &prm_module_list);
145
146 handler_info = get_first_handler(module_info);
147 do {
148 th = &tm->handlers[cur_handler];
149
150 guid_copy(&th->guid, (guid_t *)handler_info->handler_guid);
57 u64 static_data_buffer_addr;
58 u64 acpi_param_buffer_addr;
59
60 struct list_head handler_list;
61};
62
63struct prm_module_info {
64 guid_t guid;

--- 78 unchanged lines hidden (view full) ---

143 INIT_LIST_HEAD(&tm->module_list);
144 list_add(&tm->module_list, &prm_module_list);
145
146 handler_info = get_first_handler(module_info);
147 do {
148 th = &tm->handlers[cur_handler];
149
150 guid_copy(&th->guid, (guid_t *)handler_info->handler_guid);
151 th->handler_addr = efi_pa_va_lookup(handler_info->handler_address);
151 th->handler_addr = (void *)efi_pa_va_lookup(handler_info->handler_address);
152 th->static_data_buffer_addr = efi_pa_va_lookup(handler_info->static_data_buffer_address);
153 th->acpi_param_buffer_addr = efi_pa_va_lookup(handler_info->acpi_param_buffer_address);
154 } while (++cur_handler < tm->handler_count && (handler_info = get_next_handler(handler_info)));
155
156 return 0;
157
158parse_prmt_out4:
159 kfree(tm->mmio_info);

--- 175 unchanged lines hidden ---
152 th->static_data_buffer_addr = efi_pa_va_lookup(handler_info->static_data_buffer_address);
153 th->acpi_param_buffer_addr = efi_pa_va_lookup(handler_info->acpi_param_buffer_address);
154 } while (++cur_handler < tm->handler_count && (handler_info = get_next_handler(handler_info)));
155
156 return 0;
157
158parse_prmt_out4:
159 kfree(tm->mmio_info);

--- 175 unchanged lines hidden ---