Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Aug 2013 23:47:31 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254818 - in head/sys/dev/drm2: . i915
Message-ID:  <201308242347.r7ONlVF1055922@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Sat Aug 24 23:47:31 2013
New Revision: 254818
URL: http://svnweb.freebsd.org/changeset/base/254818

Log:
  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:
  head/sys/dev/drm2/drmP.h
  head/sys/dev/drm2/i915/intel_dp.c

Modified: head/sys/dev/drm2/drmP.h
==============================================================================
--- head/sys/dev/drm2/drmP.h	Sat Aug 24 23:38:57 2013	(r254817)
+++ head/sys/dev/drm2/drmP.h	Sat Aug 24 23:47:31 2013	(r254818)
@@ -1411,5 +1411,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: head/sys/dev/drm2/i915/intel_dp.c
==============================================================================
--- head/sys/dev/drm2/i915/intel_dp.c	Sat Aug 24 23:38:57 2013	(r254817)
+++ head/sys/dev/drm2/i915/intel_dp.c	Sat Aug 24 23:47:31 2013	(r254818)
@@ -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?201308242347.r7ONlVF1055922>