Skip to content

Commit

Permalink
Revert "efi: new 'connectefi' command"
Browse files Browse the repository at this point in the history
This reverts commit 98b6e23.
  • Loading branch information
rmetrich committed Sep 1, 2022
1 parent f08660d commit cc78de8
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 246 deletions.
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ New in 2.02:
* Prefer pmtimer for TSC calibration.

* New/improved platform support:
* New `efifwsetup', `lsefi' and `connectefi` commands on EFI platforms.
* New `efifwsetup' and `lsefi' commands on EFI platforms.
* New `cmosdump' and `cmosset' commands on platforms with CMOS support.
* New command `pcidump' for PCI platforms.
* Improve opcode parsing in ACPI halt implementation.
Expand Down
6 changes: 0 additions & 6 deletions grub-core/Makefile.core.def
Original file line number Diff line number Diff line change
Expand Up @@ -833,12 +833,6 @@ module = {
enable = efi;
};

module = {
name = connectefi;
common = commands/efi/connectefi.c;
enable = efi;
};

module = {
name = blocklist;
common = commands/blocklist.c;
Expand Down
205 changes: 0 additions & 205 deletions grub-core/commands/efi/connectefi.c

This file was deleted.

1 change: 0 additions & 1 deletion grub-core/commands/efi/lsefi.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <grub/mm.h>
#include <grub/misc.h>
#include <grub/efi/api.h>
#include <grub/efi/disk.h>
#include <grub/efi/edid.h>
#include <grub/efi/pci.h>
#include <grub/efi/efi.h>
Expand Down
13 changes: 0 additions & 13 deletions grub-core/disk/efi/efidisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,19 +396,6 @@ enumerate_disks (void)
free_devices (devices);
}

void
grub_efidisk_reenumerate_disks (void)
{
free_devices (fd_devices);
free_devices (hd_devices);
free_devices (cd_devices);
fd_devices = 0;
hd_devices = 0;
cd_devices = 0;

enumerate_disks ();
}

static int
grub_efidisk_iterate (grub_disk_dev_iterate_hook_t hook, void *hook_data,
grub_disk_pull_t pull)
Expand Down
13 changes: 0 additions & 13 deletions grub-core/kern/efi/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,6 @@ grub_efi_locate_handle (grub_efi_locate_search_type_t search_type,
return buffer;
}

grub_efi_status_t
grub_efi_connect_controller (grub_efi_handle_t controller_handle,
grub_efi_handle_t *driver_image_handle,
grub_efi_device_path_protocol_t *remaining_device_path,
grub_efi_boolean_t recursive)
{
grub_efi_boot_services_t *b;

b = grub_efi_system_table->boot_services;
return efi_call_4 (b->connect_controller, controller_handle,
driver_image_handle, remaining_device_path, recursive);
}

void *
grub_efi_open_protocol (grub_efi_handle_t handle,
grub_efi_guid_t *protocol,
Expand Down
2 changes: 0 additions & 2 deletions include/grub/efi/disk.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ grub_efi_handle_t
EXPORT_FUNC(grub_efidisk_get_device_handle) (grub_disk_t disk);
char *EXPORT_FUNC(grub_efidisk_get_device_name) (grub_efi_handle_t *handle);

void EXPORT_FUNC(grub_efidisk_reenumerate_disks) (void);

void grub_efidisk_init (void);
void grub_efidisk_fini (void);

Expand Down
5 changes: 0 additions & 5 deletions include/grub/efi/efi.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ EXPORT_FUNC(grub_efi_locate_handle) (grub_efi_locate_search_type_t search_type,
grub_efi_guid_t *protocol,
void *search_key,
grub_efi_uintn_t *num_handles);
grub_efi_status_t
EXPORT_FUNC(grub_efi_connect_controller) (grub_efi_handle_t controller_handle,
grub_efi_handle_t *driver_image_handle,
grub_efi_device_path_protocol_t *remaining_device_path,
grub_efi_boolean_t recursive);
void *EXPORT_FUNC(grub_efi_open_protocol) (grub_efi_handle_t handle,
grub_efi_guid_t *protocol,
grub_efi_uint32_t attributes);
Expand Down

0 comments on commit cc78de8

Please sign in to comment.