1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2607ca46eSDavid Howells #ifndef _UAPI_LINUX_KDEV_T_H 3607ca46eSDavid Howells #define _UAPI_LINUX_KDEV_T_H 4607ca46eSDavid Howells #ifndef __KERNEL__ 5607ca46eSDavid Howells 6607ca46eSDavid Howells /* 7607ca46eSDavid Howells Some programs want their definitions of MAJOR and MINOR and MKDEV 8607ca46eSDavid Howells from the kernel sources. These must be the externally visible ones. 9607ca46eSDavid Howells */ 10607ca46eSDavid Howells #define MAJOR(dev) ((dev)>>8) 11607ca46eSDavid Howells #define MINOR(dev) ((dev) & 0xff) 12607ca46eSDavid Howells #define MKDEV(ma,mi) ((ma)<<8 | (mi)) 13607ca46eSDavid Howells #endif /* __KERNEL__ */ 14607ca46eSDavid Howells #endif /* _UAPI_LINUX_KDEV_T_H */ 15