Source-Changes-HG archive

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

[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Use bus_addr_t, ...



details:   https://anonhg.NetBSD.org/src/rev/aea6ce5a7077
branches:  riastradh-drm2
changeset: 788234:aea6ce5a7077
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:50:51 2013 +0000

description:
Use bus_addr_t, not bus_size_t, for resource_size_t; add phys_addr_t.

diffstat:

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

diffs (24 lines):

diff -r 7c664babbf42 -r aea6ce5a7077 sys/external/bsd/drm2/include/linux/types.h
--- a/sys/external/bsd/drm2/include/linux/types.h       Wed Jul 24 02:50:36 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/types.h       Wed Jul 24 02:50:51 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.1.2.6 2013/07/24 02:12:29 riastradh Exp $  */
+/*     $NetBSD: types.h,v 1.1.2.7 2013/07/24 02:50:51 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -49,7 +49,13 @@
 typedef uint32_t __le32;
 typedef uint64_t __le64;
 
-typedef bus_size_t resource_size_t;
+/*
+ * This is used for absolute bus addresses, so it has to be bus_addr_t
+ * and not bus_size_t; bus_addr_t is sometimes wider than bus_size_t.
+ */
+typedef bus_addr_t resource_size_t;
+
+typedef paddr_t phys_addr_t;
 
 /* XXX Is this the right type?  */
 typedef unsigned long long cycles_t;



Home | Main Index | Thread Index | Old Index