Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2017 12:34:18 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325279 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201711011234.vA1CYIwJ002257@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Nov  1 12:34:18 2017
New Revision: 325279
URL: https://svnweb.freebsd.org/changeset/base/325279

Log:
  Implement ioread16be() in the LinuxKPI.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/io.h

Modified: head/sys/compat/linuxkpi/common/include/linux/io.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/io.h	Wed Nov  1 12:21:28 2017	(r325278)
+++ head/sys/compat/linuxkpi/common/include/linux/io.h	Wed Nov  1 12:34:18 2017	(r325279)
@@ -109,6 +109,13 @@ ioread16(const volatile void *addr)
 	return *(const volatile uint16_t *)addr;
 }
 
+#undef ioread16be
+static inline uint16_t
+ioread16be(const volatile void *addr)
+{
+	return be16toh(*(const volatile uint16_t *)addr);
+}
+
 #undef ioread32
 static inline uint32_t
 ioread32(const volatile void *addr)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711011234.vA1CYIwJ002257>