ioctl(TIOCGSERIAL|TIOCSSERIAL) report and can change the port->iotype. UART drivers use the UPIO_* definitions, but the uapi header defines parallel values and userspace uses these parallel values for ioctls; thus the userspace values are definitive. Define UPIO_* iotypes in terms of the uapi defines, SERIAL_IO_*; extend the uapi defines to include all values in use by the serial core.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -65,6 +65,10 @@ struct serial_struct { · 64 unmodified lines | |||
| 65 | #define SERIAL_IO_PORT 0 | 65 | #define SERIAL_IO_PORT 0 |
| 66 | #define SERIAL_IO_HUB6 1 | 66 | #define SERIAL_IO_HUB6 1 |
| 67 | #define SERIAL_IO_MEM 2 | 67 | #define SERIAL_IO_MEM 2 |
| 68 | #define SERIAL_IO_MEM32 3 | ||
| 69 | #define SERIAL_IO_AU 4 | ||
| 70 | #define SERIAL_IO_TSI 5 | ||
| 71 | #define SERIAL_IO_MEM32BE 6 | ||
| 68 | 72 | ||
| 69 | #define UART_CLEAR_FIFO 0x01 | 73 | #define UART_CLEAR_FIFO 0x01 |
| 70 | #define UART_USE_FIFO 0x02 | 74 | #define UART_USE_FIFO 0x02 |