1*607ca46eSDavid Howells #ifndef _UAPI_LINUX_KDEV_T_H 2*607ca46eSDavid Howells #define _UAPI_LINUX_KDEV_T_H 3*607ca46eSDavid Howells #ifndef __KERNEL__ 4*607ca46eSDavid Howells 5*607ca46eSDavid Howells /* 6*607ca46eSDavid Howells Some programs want their definitions of MAJOR and MINOR and MKDEV 7*607ca46eSDavid Howells from the kernel sources. These must be the externally visible ones. 8*607ca46eSDavid Howells */ 9*607ca46eSDavid Howells #define MAJOR(dev) ((dev)>>8) 10*607ca46eSDavid Howells #define MINOR(dev) ((dev) & 0xff) 11*607ca46eSDavid Howells #define MKDEV(ma,mi) ((ma)<<8 | (mi)) 12*607ca46eSDavid Howells #endif /* __KERNEL__ */ 13*607ca46eSDavid Howells #endif /* _UAPI_LINUX_KDEV_T_H */ 14