svn commit: r254818 - in head/sys/dev/drm2: . i915

Jean-Sebastien Pedron dumbbell at FreeBSD.org
Sat Aug 24 23:47:32 UTC 2013


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;


More information about the svn-src-head mailing list