Previously, only the type value was settable. The proto value is used internally for choosing the right drivers, so we should expose it. The other values make sense to expose as well.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -27,7 +27,10 @@ · 26 unmodified lines | ||
| 27 | 27 | enum userio_cmd_type { |
| 28 | 28 | USERIO_CMD_REGISTER = 0, |
| 29 | 29 | USERIO_CMD_SET_PORT_TYPE = 1, |
| 30 | − USERIO_CMD_SEND_INTERRUPT = 2 | |
| 30 | + USERIO_CMD_SEND_INTERRUPT = 2, | |
| 31 | + USERIO_CMD_SET_PORT_EXTRA = 3, | |
| 32 | + USERIO_CMD_SET_PORT_ID = 4, | |
| 33 | + USERIO_CMD_SET_PORT_PROTO = 5, | |
| 31 | 34 | }; |
| 32 | 35 | |
| 33 | 36 | /* |