Christopher Ferris | 2598113 | 2017-11-14 16:53:49 -0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Ben Cheng | 30692c6 | 2013-10-15 18:26:18 -0700 | [diff] [blame] | 2 | #ifndef _UAPI_LINUX_KDEV_T_H |
| 3 | #define _UAPI_LINUX_KDEV_T_H |
| 4 | #ifndef __KERNEL__ |
| 5 | |
| 6 | /* |
| 7 | Some programs want their definitions of MAJOR and MINOR and MKDEV |
| 8 | from the kernel sources. These must be the externally visible ones. |
| 9 | */ |
| 10 | #define MAJOR(dev) ((dev)>>8) |
| 11 | #define MINOR(dev) ((dev) & 0xff) |
| 12 | #define MKDEV(ma,mi) ((ma)<<8 | (mi)) |
| 13 | #endif /* __KERNEL__ */ |
| 14 | #endif /* _UAPI_LINUX_KDEV_T_H */ |