aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/efi/include/efi_driver_utils.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-08-04 04:16:41 +0000
committerWarner Losh <imp@FreeBSD.org>2017-08-04 04:16:41 +0000
commitacf82d2659879ebab9c79c72b7b0b8ec0052c0e0 (patch)
tree3238c137842b7923aa425112e2240d19e4a1469c /sys/boot/efi/include/efi_driver_utils.h
parentfac7b28779bc609e39645825ac986ce192441a96 (diff)
downloadsrc-acf82d2659879ebab9c79c72b7b0b8ec0052c0e0.tar.gz
src-acf82d2659879ebab9c79c72b7b0b8ec0052c0e0.zip
Add definitions and utilities for EFI drivers
This patch adds definitions and utility code for creating EFI drivers using the EFI_DRIVER_BINDING_PROTOCOL. Submitted by: Eric McCorkle Differential Revision: https://reviews.freebsd.org/D11852
Notes
Notes: svn path=/head/; revision=322038
Diffstat (limited to 'sys/boot/efi/include/efi_driver_utils.h')
-rw-r--r--sys/boot/efi/include/efi_driver_utils.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/sys/boot/efi/include/efi_driver_utils.h b/sys/boot/efi/include/efi_driver_utils.h
new file mode 100644
index 000000000000..520cff128a27
--- /dev/null
+++ b/sys/boot/efi/include/efi_driver_utils.h
@@ -0,0 +1,38 @@
+/*-
+ * Copyright (c) 2017 Eric McCorkle
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef _EFI_DRIVER_UTILS_H_
+#define _EFI_DRIVER_UTILS_H_
+
+#include <efi.h>
+#include <efiprot.h>
+
+extern EFI_STATUS install_driver(EFI_DRIVER_BINDING *driver);
+extern EFI_STATUS connect_controllers(EFI_GUID *filter);
+
+#endif