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.
This commit is contained in:
Jean-Sébastien Pédron 2013-08-24 23:47:31 +00:00
parent 74eb6a63ca
commit 285be846af
2 changed files with 5 additions and 3 deletions

View File

@ -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_ */

View File

@ -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;