Header files /usr/src/sys/dev/ppbus/ppi.h and /usr/include/dev/ppbus/ppi.h contains an error. This path fix it: --- ppi.h 2020-10-25 17:18:11.737811000 +0800 +++ ppi.h.patched 2021-01-15 20:58:07.407729000 +0800 @@ -51,6 +51,6 @@ #define PPISFIFO _IOW('P', 21, u_int8_t) #define PPIGEPPA _IOR('P', 22, u_int8_t) -#define PPISEPPA _IOR('P', 23, u_int8_t) +#define PPISEPPA _IOW('P', 23, u_int8_t) #endif
Looks right.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a45d90561696e7a5c76e38c6bf715e6190d2ca07 commit a45d90561696e7a5c76e38c6bf715e6190d2ca07 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-01-19 00:44:42 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-01-19 00:44:42 +0000 ppbus: Fix the direction of the PPISEPPA ioctl PR: 252711 Submitted by: Eugene <merfi@nearly.ru> sys/dev/ppbus/ppi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks for the patch.