From e1f494a6023e9ed80cacf3864309b6bacdfa95bb Mon Sep 17 00:00:00 2001 From: Jose Tiago Macara Coutinho Date: Tue, 10 Sep 2024 08:03:04 +0200 Subject: [PATCH 1/2] Update codegen documentation --- docs/develop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/develop.md b/docs/develop.md index db34476..f82beaa 100644 --- a/docs/develop.md +++ b/docs/develop.md @@ -16,7 +16,7 @@ on your system. On a debian based run: ```console -$ apt install castxml +$ apt install castxml linux-headers-$(uname -r) ``` ## Code generation From ce4dd73503bf5763e920622b94ce3c4448bc9293 Mon Sep 17 00:00:00 2001 From: Jose Tiago Macara Coutinho Date: Tue, 10 Sep 2024 08:04:10 +0200 Subject: [PATCH 2/2] Update codegen to linux kernel 6.10 --- linuxpy/input/raw.py | 8 +++++--- linuxpy/magic.py | 8 +++++--- linuxpy/usb/raw.py | 6 +++--- linuxpy/video/raw.py | 24 ++++++++++++++++++------ 4 files changed, 31 insertions(+), 15 deletions(-) diff --git a/linuxpy/input/raw.py b/linuxpy/input/raw.py index 36520ee..0c37a63 100644 --- a/linuxpy/input/raw.py +++ b/linuxpy/input/raw.py @@ -5,10 +5,10 @@ # Distributed under the GPLv3 license. See LICENSE for more info. # This file has been generated by linuxpy.codegen.input -# Date: 2024-07-30 06:58:35.949689 +# Date: 2024-09-09 08:39:26.313509 # System: Linux -# Release: 6.8.0-39-generic -# Version: #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 21:49:14 UTC 2024 +# Release: 6.10.6-amd64 +# Version: #1 SMP PREEMPT_DYNAMIC Debian 6.10.6-1 (2024-08-19) import enum @@ -554,6 +554,8 @@ class Key(enum.IntEnum): KEY_CAMERA_ACCESS_ENABLE = 0x24B # Enables programmatic access to camera devices. (HUTRR72) KEY_CAMERA_ACCESS_DISABLE = 0x24C # Disables programmatic access to camera devices. (HUTRR72) KEY_CAMERA_ACCESS_TOGGLE = 0x24D # Toggles the current state of the camera access control. (HUTRR72) + KEY_ACCESSIBILITY = 0x24E # Toggles the system bound accessibility UI/command (HUTRR116) + KEY_DO_NOT_DISTURB = 0x24F # Toggles the system-wide "Do Not Disturb" control (HUTRR94) KEY_BRIGHTNESS_MIN = 0x250 # Set Brightness to Minimum KEY_BRIGHTNESS_MAX = 0x251 # Set Brightness to Maximum KEY_KBDINPUTASSIST_PREV = 0x260 diff --git a/linuxpy/magic.py b/linuxpy/magic.py index dda925a..10d4488 100644 --- a/linuxpy/magic.py +++ b/linuxpy/magic.py @@ -5,10 +5,10 @@ # Distributed under the GPLv3 license. See LICENSE for more info. # This file has been generated by linuxpy.codegen.magic -# Date: 2024-07-30 06:58:35.816380 +# Date: 2024-09-09 08:39:26.102814 # System: Linux -# Release: 6.8.0-39-generic -# Version: #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 21:49:14 UTC 2024 +# Release: 6.10.6-amd64 +# Version: #1 SMP PREEMPT_DYNAMIC Debian 6.10.6-1 (2024-08-19) import enum @@ -49,6 +49,7 @@ class Magic(enum.IntEnum): HOSTFS_SUPER = 0xC0FFEE OVERLAYFS_SUPER = 0x794C7630 FUSE_SUPER = 0x65735546 + BCACHEFS_SUPER = 0xCA451A4E MINIX_SUPER = 0x137F # minix v1 fs, 14cchar names MINIX_SUPER2 = 0x138F # minix v1 fs, 30cchar names MINIX2_SUPER = 0x2468 # minix v2 fs, 14cchar names @@ -95,3 +96,4 @@ class Magic(enum.IntEnum): DMA_BUF = 0x444D4142 # "DMAB" DEVMEM = 0x454D444D # "DMEM" SECRETMEM = 0x5345434D # "SECM" + PID_FS = 0x50494446 # "PIDF" diff --git a/linuxpy/usb/raw.py b/linuxpy/usb/raw.py index 7655002..f074f09 100644 --- a/linuxpy/usb/raw.py +++ b/linuxpy/usb/raw.py @@ -5,10 +5,10 @@ # Distributed under the GPLv3 license. See LICENSE for more info. # This file has been generated by linuxpy.codegen.usbfs -# Date: 2024-07-30 06:58:36.683837 +# Date: 2024-09-09 08:39:27.157457 # System: Linux -# Release: 6.8.0-39-generic -# Version: #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 21:49:14 UTC 2024 +# Release: 6.10.6-amd64 +# Version: #1 SMP PREEMPT_DYNAMIC Debian 6.10.6-1 (2024-08-19) import enum diff --git a/linuxpy/video/raw.py b/linuxpy/video/raw.py index f49236c..fcadea4 100644 --- a/linuxpy/video/raw.py +++ b/linuxpy/video/raw.py @@ -5,10 +5,10 @@ # Distributed under the GPLv3 license. See LICENSE for more info. # This file has been generated by linuxpy.codegen.video -# Date: 2024-07-30 06:58:36.476486 +# Date: 2024-09-09 08:39:26.902597 # System: Linux -# Release: 6.8.0-39-generic -# Version: #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 21:49:14 UTC 2024 +# Release: 6.10.6-amd64 +# Version: #1 SMP PREEMPT_DYNAMIC Debian 6.10.6-1 (2024-08-19) import enum @@ -144,6 +144,8 @@ class PixelFormat(enum.IntEnum): Y10BPACK = v4l2_fourcc("Y", "1", "0", "B") # 10 Greyscale bit-packed Y10P = v4l2_fourcc("Y", "1", "0", "P") # 10 Greyscale, MIPI RAW10 packed IPU3_Y10 = v4l2_fourcc("i", "p", "3", "y") # IPU3 packed 10-bit greyscale + Y12P = v4l2_fourcc("Y", "1", "2", "P") # 12 Greyscale, MIPI RAW12 packed + Y14P = v4l2_fourcc("Y", "1", "4", "P") # 14 Greyscale, MIPI RAW14 packed PAL8 = v4l2_fourcc("P", "A", "L", "8") # 8 8-bit palette UV8 = v4l2_fourcc("U", "V", "8", " ") # 8 UV 4:4 YUYV = v4l2_fourcc("Y", "U", "Y", "V") # 16 YUV 4:2:2 @@ -389,6 +391,7 @@ class ImageFormatFlag(enum.IntFlag): CSC_YCBCR_ENC = 0x80 CSC_HSV_ENC = CSC_YCBCR_ENC CSC_QUANTIZATION = 0x100 + META_LINE_BASED = 0x200 class InputStatus(enum.IntFlag): @@ -3284,7 +3287,7 @@ class v4l2_ext_control(Struct): _pack_ = True class M1(Union): - pass + _pack_ = True M1._fields_ = [ ("value", cint), @@ -3873,6 +3876,13 @@ class v4l2_create_buffers(Struct): ] +class v4l2_remove_buffers(Struct): + pass + + +v4l2_remove_buffers._fields_ = [("index", cuint), ("count", cuint), ("type", cuint), ("reserved", cuint * 13)] + + class v4l2_mbus_framefmt(Struct): class M1(Union): pass @@ -4027,9 +4037,10 @@ class v4l2_subdev_routing(Struct): v4l2_subdev_routing._fields_ = [ ("which", cuint), - ("num_routes", cuint), + ("len_routes", cuint), ("routes", culonglong), - ("reserved", cuint * 6), + ("num_routes", cuint), + ("reserved", cuint * 11), ] @@ -4155,6 +4166,7 @@ class IOC(enum.IntEnum): ENUM_FREQ_BANDS = _IOWR("V", 101, v4l2_frequency_band) DBG_G_CHIP_INFO = _IOWR("V", 102, v4l2_dbg_chip_info) QUERY_EXT_CTRL = _IOWR("V", 103, v4l2_query_ext_ctrl) + REMOVE_BUFS = _IOWR("V", 104, v4l2_remove_buffers) SUBDEV_QUERYCAP = _IOR("V", 0, v4l2_subdev_capability) SUBDEV_G_FMT = _IOWR("V", 4, v4l2_subdev_format) SUBDEV_S_FMT = _IOWR("V", 5, v4l2_subdev_format)