| 1 | //! OS-Specific DRM constants. |
| 2 | |
| 3 | /// DRM major value. |
| 4 | #[cfg (target_os = "dragonfly" )] |
| 5 | pub const DRM_MAJOR: u32 = 145; |
| 6 | |
| 7 | /// DRM major value. |
| 8 | #[cfg (target_os = "netbsd" )] |
| 9 | pub const DRM_MAJOR: u32 = 34; |
| 10 | |
| 11 | /// DRM major value. |
| 12 | #[cfg (all(target_os = "openbsd" , target_arch = "x86" ))] |
| 13 | pub const DRM_MAJOR: u32 = 88; |
| 14 | |
| 15 | /// DRM major value. |
| 16 | #[cfg (all(target_os = "openbsd" , not(target_arch = "x86" )))] |
| 17 | pub const DRM_MAJOR: u32 = 87; |
| 18 | |
| 19 | /// DRM major value. |
| 20 | #[cfg (not(any(target_os = "dragonfly" , target_os = "netbsd" , target_os = "openbsd" )))] |
| 21 | pub const DRM_MAJOR: u32 = 226; |
| 22 | |
| 23 | /// Primary DRM node prefix. |
| 24 | #[cfg (not(target_os = "openbsd" ))] |
| 25 | pub const PRIMARY_NAME: &str = "card" ; |
| 26 | |
| 27 | /// Primary DRM node prefix. |
| 28 | #[cfg (target_os = "openbsd" )] |
| 29 | pub const PRIMARY_NAME: &str = "drm" ; |
| 30 | |
| 31 | /// Control DRM node prefix. |
| 32 | #[cfg (not(target_os = "openbsd" ))] |
| 33 | pub const CONTROL_NAME: &str = "controlD" ; |
| 34 | |
| 35 | /// Control DRM node prefix. |
| 36 | #[cfg (target_os = "openbsd" )] |
| 37 | pub const CONTROL_NAME: &str = "drmC" ; |
| 38 | |
| 39 | /// Render DRM node prefix. |
| 40 | #[cfg (not(target_os = "openbsd" ))] |
| 41 | pub const RENDER_NAME: &str = "renderD" ; |
| 42 | |
| 43 | /// Render DRM node prefix. |
| 44 | #[cfg (target_os = "openbsd" )] |
| 45 | pub const RENDER_NAME: &str = "drmR" ; |
| 46 | |