Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2014 13:56:38 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r261653 - in stable/9/sys/dev/drm2: . i915
Message-ID:  <201402091356.s19DucdZ044165@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Sun Feb  9 13:56:37 2014
New Revision: 261653
URL: http://svnweb.freebsd.org/changeset/base/261653

Log:
  MFC r254818:
  
  drm: Move definition of EREMOTEIO to drmP.h
  
  It will be used by both i915 and radeon drivers.
  
  Add ERESTARTSYS definition at the same time.

Modified:
  stable/9/sys/dev/drm2/drmP.h
  stable/9/sys/dev/drm2/i915/intel_dp.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/drm2/drmP.h
==============================================================================
--- stable/9/sys/dev/drm2/drmP.h	Sun Feb  9 13:50:08 2014	(r261652)
+++ stable/9/sys/dev/drm2/drmP.h	Sun Feb  9 13:56:37 2014	(r261653)
@@ -1405,5 +1405,10 @@ do {									\
 #define	KTR_DRM		KTR_DEV
 #define	KTR_DRM_REG	KTR_SPARE3
 
+/* Error codes conversion from Linux to FreeBSD. */
+/* XXXKIB what is the right code for EREMOTEIO on FreeBSD? */
+#define	EREMOTEIO	ENXIO
+#define	ERESTARTSYS	ERESTART
+
 #endif /* __KERNEL__ */
 #endif /* _DRM_P_H_ */

Modified: stable/9/sys/dev/drm2/i915/intel_dp.c
==============================================================================
--- stable/9/sys/dev/drm2/i915/intel_dp.c	Sun Feb  9 13:50:08 2014	(r261652)
+++ stable/9/sys/dev/drm2/i915/intel_dp.c	Sun Feb  9 13:56:37 2014	(r261653)
@@ -43,9 +43,6 @@ __FBSDID("$FreeBSD$");
 
 #define DP_LINK_CONFIGURATION_SIZE	9
 
-/* XXXKIB what is the right code for the FreeBSD ? */
-#define EREMOTEIO	ENXIO
-
 struct intel_dp {
 	struct intel_encoder base;
 	uint32_t output_reg;



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