Skip to content

Commit

Permalink
Merge pull request #41 from tiagocoutinho/codegen
Browse files Browse the repository at this point in the history
Update generated code to linux kernel 6.10
  • Loading branch information
tiagocoutinho authored Sep 10, 2024
2 parents c686add + ce4dd73 commit 44fd928
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions linuxpy/input/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions linuxpy/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -95,3 +96,4 @@ class Magic(enum.IntEnum):
DMA_BUF = 0x444D4142 # "DMAB"
DEVMEM = 0x454D444D # "DMEM"
SECRETMEM = 0x5345434D # "SECM"
PID_FS = 0x50494446 # "PIDF"
6 changes: 3 additions & 3 deletions linuxpy/usb/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
24 changes: 18 additions & 6 deletions linuxpy/video/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -3284,7 +3287,7 @@ class v4l2_ext_control(Struct):
_pack_ = True

class M1(Union):
pass
_pack_ = True

M1._fields_ = [
("value", cint),
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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),
]


Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 44fd928

Please sign in to comment.