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/include/linux resource_size



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

description:
resource_size

diffstat:

 sys/external/bsd/drm2/include/linux/ioport.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 3ac3a176bc53 -r 56e8cdd91556 sys/external/bsd/drm2/include/linux/ioport.h
--- a/sys/external/bsd/drm2/include/linux/ioport.h      Sun Dec 19 01:34:57 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/ioport.h      Sun Dec 19 01:35:04 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ioport.h,v 1.2 2014/03/18 18:20:43 riastradh Exp $     */
+/*     $NetBSD: ioport.h,v 1.3 2021/12/19 01:35:04 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -47,6 +47,12 @@
        bus_space_handle_t r_bsh;
 };
 
+static inline bus_size_t
+resource_size(struct resource *resource)
+{
+       return resource->size;
+}
+
 static inline void
 release_resource(struct resource *resource)
 {



Home | Main Index | Thread Index | Old Index