drm/node/
constants.rs

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