drm/node/
constants.rs
1#[cfg(target_os = "dragonfly")]
5pub const DRM_MAJOR: u32 = 145;
6
7#[cfg(target_os = "netbsd")]
9pub const DRM_MAJOR: u32 = 34;
10
11#[cfg(all(target_os = "openbsd", target_arch = "x86"))]
13pub const DRM_MAJOR: u32 = 88;
14
15#[cfg(all(target_os = "openbsd", not(target_arch = "x86")))]
17pub const DRM_MAJOR: u32 = 87;
18
19#[cfg(not(any(target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd")))]
21pub const DRM_MAJOR: u32 = 226;
22
23#[cfg(not(target_os = "openbsd"))]
25pub const PRIMARY_NAME: &str = "card";
26
27#[cfg(target_os = "openbsd")]
29pub const PRIMARY_NAME: &str = "drm";
30
31#[cfg(not(target_os = "openbsd"))]
33pub const CONTROL_NAME: &str = "controlD";
34
35#[cfg(target_os = "openbsd")]
37pub const CONTROL_NAME: &str = "drmC";
38
39#[cfg(not(target_os = "openbsd"))]
41pub const RENDER_NAME: &str = "renderD";
42
43#[cfg(target_os = "openbsd")]
45pub const RENDER_NAME: &str = "drmR";