9
0
Fork 0

efi: move bus driver to driver/efi

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2017-02-15 20:34:11 +01:00 committed by Sascha Hauer
parent 5596f405ff
commit 3858b78c1b
18 changed files with 26 additions and 21 deletions

View File

@ -4,6 +4,7 @@ config ARCH_EFI
select HAS_DEBUG_LL
select HAS_KALLSYMS
select EFI_GUID
select EFI_BOOTUP
select EFI_DEVICEPATH
select PRINTF_UUID
select GENERIC_FIND_NEXT_BIT

View File

@ -1,4 +1,3 @@
obj-y += efi.o
obj-y += efi-device.o
obj-y += efi-image.o
bbenv-y += env-efi

View File

@ -36,8 +36,8 @@
#include <libfile.h>
#include <binfmt.h>
#include <wchar.h>
#include <mach/efi.h>
#include <mach/efi-device.h>
#include <efi/efi.h>
#include <efi/efi-device.h>
struct linux_kernel_header {
/* first sector of the image */

View File

@ -38,8 +38,8 @@
#include <wchar.h>
#include <envfs.h>
#include <efi.h>
#include <mach/efi.h>
#include <mach/efi-device.h>
#include <efi/efi.h>
#include <efi/efi-device.h>
efi_runtime_services_t *RT;
efi_boot_services_t *BS;

View File

@ -5,7 +5,7 @@
#define EFI_DEBUG_CLEAR_MEMORY 0
#include <efi.h>
#include <mach/efi.h>
#include <efi/efi.h>
static inline void PUTC_LL(char c)
{

View File

@ -1,5 +1,6 @@
menu "Drivers"
source "drivers/efi/Kconfig"
source "drivers/of/Kconfig"
source "drivers/aiodev/Kconfig"
source "drivers/amba/Kconfig"

View File

@ -1,6 +1,7 @@
obj-y += base/
obj-y += block/
obj-$(CONFIG_ARM_AMBA) += amba/
obj-$(CONFIG_EFI_BOOTUP) += efi/
obj-y += net/
obj-y += serial/
obj-y += mtd/

View File

@ -12,8 +12,8 @@
#include <efi.h>
#include <block.h>
#include <disks.h>
#include <mach/efi.h>
#include <mach/efi-device.h>
#include <efi/efi.h>
#include <efi/efi-device.h>
#define EFI_BLOCK_IO_PROTOCOL_REVISION2 0x00020001
#define EFI_BLOCK_IO_PROTOCOL_REVISION3 ((2<<16) | (31))

View File

@ -1,6 +1,6 @@
#include <common.h>
#include <efi.h>
#include <mach/efi.h>
#include <efi/efi.h>
#include <clock.h>
#ifdef __x86_64__

2
drivers/efi/Kconfig Normal file
View File

@ -0,0 +1,2 @@
config EFI_BOOTUP
bool

1
drivers/efi/Makefile Normal file
View File

@ -0,0 +1 @@
obj-y += efi-device.o

View File

@ -27,8 +27,8 @@
#include <wchar.h>
#include <init.h>
#include <efi.h>
#include <mach/efi.h>
#include <mach/efi-device.h>
#include <efi/efi.h>
#include <efi/efi-device.h>
#include <linux/err.h>
int efi_locate_handle(enum efi_locate_search_type search_type,

View File

@ -23,8 +23,8 @@
#include <net.h>
#include <init.h>
#include <efi.h>
#include <mach/efi.h>
#include <mach/efi-device.h>
#include <efi/efi.h>
#include <efi/efi-device.h>
struct efi_network_statistics {
uint64_t RxTotalFrames;

View File

@ -25,7 +25,7 @@
#include <efi.h>
#include <readkey.h>
#include <linux/ctype.h>
#include <mach/efi.h>
#include <efi/efi.h>
#define EFI_SHIFT_STATE_VALID 0x80000000
#define EFI_RIGHT_CONTROL_PRESSED 0x00000004

View File

@ -31,8 +31,8 @@
#include <wchar.h>
#include <efi.h>
#include <libfile.h>
#include <mach/efi.h>
#include <mach/efi-device.h>
#include <efi/efi.h>
#include <efi/efi-device.h>
#include <linux/stddef.h>
/* Open modes */

View File

@ -31,8 +31,8 @@
#include <wchar.h>
#include <linux/err.h>
#include <linux/ctype.h>
#include <mach/efi.h>
#include <mach/efi-device.h>
#include <efi/efi.h>
#include <efi/efi-device.h>
struct efivarfs_inode {
s16 *name;

View File

@ -1,5 +1,5 @@
#ifndef __MACH_EFI_DEVICE_H
#define __MACH_EFI_DEVICE_H
#ifndef __EFI_EFI_DEVICE_H
#define __EFI_EFI_DEVICE_H
struct efi_device {
struct device_d dev;
@ -42,4 +42,4 @@ static inline int efi_driver_register(struct efi_driver *efidrv)
int efi_connect_all(void);
void efi_register_devices(void);
#endif /* __MACH_EFI_DEVICE_H */
#endif /* __EFI_EFI_DEVICE_H */