| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2014 Oracle Co., Daniel Kiper |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 6 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | | - * (at your option) any later version. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | | - * |
|---|
| 14 | | - * You should have received a copy of the GNU General Public License along |
|---|
| 15 | | - * with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 16 | 4 | */ |
|---|
| 17 | 5 | |
|---|
| 18 | 6 | #include <linux/bitops.h> |
|---|
| .. | .. |
|---|
| 41 | 29 | .fw_vendor = EFI_INVALID_TABLE_ADDR, /* Initialized later. */ |
|---|
| 42 | 30 | .fw_revision = 0, /* Initialized later. */ |
|---|
| 43 | 31 | .con_in_handle = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */ |
|---|
| 44 | | - .con_in = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */ |
|---|
| 32 | + .con_in = NULL, /* Not used under Xen. */ |
|---|
| 45 | 33 | .con_out_handle = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */ |
|---|
| 46 | | - .con_out = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */ |
|---|
| 34 | + .con_out = NULL, /* Not used under Xen. */ |
|---|
| 47 | 35 | .stderr_handle = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */ |
|---|
| 48 | 36 | .stderr = EFI_INVALID_TABLE_ADDR, /* Not used under Xen. */ |
|---|
| 49 | 37 | .runtime = (efi_runtime_services_t *)EFI_INVALID_TABLE_ADDR, |
|---|
| .. | .. |
|---|
| 69 | 57 | return NULL; |
|---|
| 70 | 58 | |
|---|
| 71 | 59 | /* Here we know that Xen runs on EFI platform. */ |
|---|
| 72 | | - |
|---|
| 73 | | - efi.get_time = xen_efi_get_time; |
|---|
| 74 | | - efi.set_time = xen_efi_set_time; |
|---|
| 75 | | - efi.get_wakeup_time = xen_efi_get_wakeup_time; |
|---|
| 76 | | - efi.set_wakeup_time = xen_efi_set_wakeup_time; |
|---|
| 77 | | - efi.get_variable = xen_efi_get_variable; |
|---|
| 78 | | - efi.get_next_variable = xen_efi_get_next_variable; |
|---|
| 79 | | - efi.set_variable = xen_efi_set_variable; |
|---|
| 80 | | - efi.set_variable_nonblocking = xen_efi_set_variable; |
|---|
| 81 | | - efi.query_variable_info = xen_efi_query_variable_info; |
|---|
| 82 | | - efi.query_variable_info_nonblocking = xen_efi_query_variable_info; |
|---|
| 83 | | - efi.update_capsule = xen_efi_update_capsule; |
|---|
| 84 | | - efi.query_capsule_caps = xen_efi_query_capsule_caps; |
|---|
| 85 | | - efi.get_next_high_mono_count = xen_efi_get_next_high_mono_count; |
|---|
| 86 | | - efi.reset_system = xen_efi_reset_system; |
|---|
| 60 | + xen_efi_runtime_setup(); |
|---|
| 87 | 61 | |
|---|
| 88 | 62 | efi_systab_xen.tables = info->cfg.addr; |
|---|
| 89 | 63 | efi_systab_xen.nr_tables = info->cfg.nent; |
|---|