Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/linux linux: request_firmware_direct



details:   https://anonhg.NetBSD.org/src/rev/b1c64d103dce
branches:  trunk
changeset: 1028783:b1c64d103dce
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:01:04 2021 +0000

description:
linux: request_firmware_direct

diffstat:

 sys/external/bsd/drm2/include/linux/firmware.h |   5 ++++-
 sys/external/bsd/drm2/linux/linux_firmware.c   |  12 ++++++++++--
 2 files changed, 14 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r 9da87df90a18 -r b1c64d103dce sys/external/bsd/drm2/include/linux/firmware.h
--- a/sys/external/bsd/drm2/include/linux/firmware.h    Sun Dec 19 12:00:57 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/firmware.h    Sun Dec 19 12:01:04 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: firmware.h,v 1.11 2021/12/19 10:50:46 riastradh Exp $  */
+/*     $NetBSD: firmware.h,v 1.12 2021/12/19 12:01:04 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -49,10 +49,13 @@
 #define        firmware_request_nowarn         linux_firmware_request_nowarn
 #define        release_firmware                linux_release_firmware
 #define        request_firmware                linux_request_firmware
+#define        request_firmware_direct         linux_request_firmware_direct
 #define        request_firmware_nowait         linux_request_firmware_nowait
 
 int    request_firmware(const struct firmware **, const char *,
            struct device *);
+int    request_firmware_direct(const struct firmware **, const char *,
+           struct device *);
 int    firmware_request_nowarn(const struct firmware **, const char *,
            struct device *);
 int    request_firmware_nowait(struct module *, bool, const char *,
diff -r 9da87df90a18 -r b1c64d103dce sys/external/bsd/drm2/linux/linux_firmware.c
--- a/sys/external/bsd/drm2/linux/linux_firmware.c      Sun Dec 19 12:00:57 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_firmware.c      Sun Dec 19 12:01:04 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_firmware.c,v 1.1 2021/12/19 10:50:47 riastradh Exp $     */
+/*     $NetBSD: linux_firmware.c,v 1.2 2021/12/19 12:01:04 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_firmware.c,v 1.1 2021/12/19 10:50:47 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_firmware.c,v 1.2 2021/12/19 12:01:04 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/device.h>
@@ -98,6 +98,14 @@
 }
 
 int
+request_firmware_direct(const struct firmware **fwp, const char *image_name,
+    struct device *dev)
+{
+
+       return request_firmware(fwp, image_name, dev);
+}
+
+int
 firmware_request_nowarn(const struct firmware **fwp, const char *image_name,
     struct device *dev)
 {



Home | Main Index | Thread Index | Old Index