mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 17:12:40 +03:00
[efi] Move abstract device path and handle functions to efi_utils.c
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -82,11 +82,7 @@ static inline void * efidev_get_drvdata ( struct efi_device *efidev ) {
|
||||
return efidev->priv;
|
||||
}
|
||||
|
||||
extern EFI_DEVICE_PATH_PROTOCOL *
|
||||
efi_devpath_end ( EFI_DEVICE_PATH_PROTOCOL *path );
|
||||
extern struct efi_device * efidev_parent ( struct device *dev );
|
||||
extern int efidev_child_add ( struct efi_device *efidev, EFI_HANDLE device );
|
||||
extern void efidev_child_del ( struct efi_device *efidev, EFI_HANDLE device );
|
||||
extern int efi_driver_install ( void );
|
||||
extern void efi_driver_uninstall ( void );
|
||||
extern int efi_driver_connect_all ( void );
|
||||
|
||||
19
src/include/ipxe/efi/efi_utils.h
Normal file
19
src/include/ipxe/efi/efi_utils.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef _IPXE_EFI_UTILS_H
|
||||
#define _IPXE_EFI_UTILS_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* EFI utilities
|
||||
*/
|
||||
|
||||
FILE_LICENCE ( GPL2_OR_LATER );
|
||||
|
||||
#include <ipxe/efi/efi.h>
|
||||
#include <ipxe/efi/Protocol/DevicePath.h>
|
||||
|
||||
extern EFI_DEVICE_PATH_PROTOCOL *
|
||||
efi_devpath_end ( EFI_DEVICE_PATH_PROTOCOL *path );
|
||||
extern int efi_child_add ( EFI_HANDLE parent, EFI_HANDLE child );
|
||||
extern void efi_child_del ( EFI_HANDLE parent, EFI_HANDLE child );
|
||||
|
||||
#endif /* _IPXE_EFI_UTILS_H */
|
||||
@@ -305,6 +305,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#define ERRFILE_xenstore ( ERRFILE_OTHER | 0x00420000 )
|
||||
#define ERRFILE_xenbus ( ERRFILE_OTHER | 0x00430000 )
|
||||
#define ERRFILE_xengrant ( ERRFILE_OTHER | 0x00440000 )
|
||||
#define ERRFILE_efi_utils ( ERRFILE_OTHER | 0x00450000 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user