/*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2026 Justin Hibbits */ #ifndef _MACHINE_LINUX_IOCTL_H_ #define _MACHINE_LINUX_IOCTL_H_ #include /* * Linux/powerpc keeps the BSD ioctl encoding, where _IOC_NONE is 1 * rather than 0. The VOID bit is therefore set on directionless * ioctls and carried in INOUT, which is what already * does, so use it directly. */ #define LINUX_IOC_VOID IOC_VOID #define LINUX_IOC_IN IOC_IN #define LINUX_IOC_OUT IOC_OUT #define LINUX_IOC_INOUT (LINUX_IOC_IN|LINUX_IOC_OUT|LINUX_IOC_VOID) #endif /* !_MACHINE_LINUX_IOCTL_H_ */