-#define IOCPARM_MAX (IOCPARM_MASK + 1) /* max size of ioctl args */
- /* no parameters */
-#define IOC_VOID (unsigned long)0x20000000
- /* copy parameters out */
-#define IOC_OUT (unsigned long)0x40000000
- /* copy parameters in */
-#define IOC_IN (unsigned long)0x80000000
- /* copy paramters in and out */
-#define IOC_INOUT (IOC_IN|IOC_OUT)
- /* mask for IN/OUT/VOID */
-#define IOC_DIRMASK (unsigned long)0xe0000000
+#define IOCPARM_MAX (IOCPARM_MASK + 1) /* max size of ioctl args */
+/* no parameters */
+#define IOC_VOID (__uint32_t)0x20000000
+/* copy parameters out */
+#define IOC_OUT (__uint32_t)0x40000000
+/* copy parameters in */
+#define IOC_IN (__uint32_t)0x80000000
+/* copy paramters in and out */
+#define IOC_INOUT (IOC_IN|IOC_OUT)
+/* mask for IN/OUT/VOID */
+#define IOC_DIRMASK (__uint32_t)0xe0000000