@zigc/lib 0.17.0-dev.332 → 0.17.0-dev.356
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/main.js +8 -8
- package/libc/darwin/SDKSettings.json +1 -1
- package/libc/darwin/libSystem.tbd +88 -87
- package/libc/include/aarch64-openbsd-none/arm64/cpu.h +7 -1
- package/libc/include/aarch64-openbsd-none/arm64/intr.h +9 -1
- package/libc/include/aarch64-openbsd-none/machine/cpu.h +7 -1
- package/libc/include/aarch64-openbsd-none/machine/intr.h +9 -1
- package/libc/include/any-darwin-any/AvailabilityInternal.h +10 -10
- package/libc/include/any-darwin-any/AvailabilityVersions.h +8 -0
- package/libc/include/any-darwin-any/mach/host_info.h +3 -1
- package/libc/include/any-darwin-any/mach/mach_voucher_types.h +2 -0
- package/libc/include/any-darwin-any/mach/vm_statistics.h +33 -2
- package/libc/include/any-darwin-any/spawn.h +3 -1
- package/libc/include/any-darwin-any/sys/_symbol_aliasing.h +12 -0
- package/libc/include/generic-openbsd/db.h +1 -7
- package/libc/include/generic-openbsd/ddb/db_interface.h +2 -1
- package/libc/include/generic-openbsd/fnmatch.h +6 -2
- package/libc/include/generic-openbsd/login_cap.h +3 -1
- package/libc/include/generic-openbsd/miscfs/fuse/fusefs_node.h +2 -1
- package/libc/include/generic-openbsd/net/bpf.h +3 -1
- package/libc/include/generic-openbsd/net/hfsc.h +4 -4
- package/libc/include/generic-openbsd/net/if.h +5 -1
- package/libc/include/generic-openbsd/net/if_bridge.h +48 -1
- package/libc/include/generic-openbsd/net/if_etherbridge.h +20 -7
- package/libc/include/generic-openbsd/net/if_media.h +26 -1
- package/libc/include/generic-openbsd/net/if_pflow.h +71 -20
- package/libc/include/generic-openbsd/net/if_pfsync.h +2 -2
- package/libc/include/generic-openbsd/net/if_sppp.h +2 -1
- package/libc/include/generic-openbsd/net/if_trunk.h +3 -2
- package/libc/include/generic-openbsd/net/if_types.h +2 -2
- package/libc/include/generic-openbsd/net/if_var.h +34 -12
- package/libc/include/generic-openbsd/net/netisr.h +1 -3
- package/libc/include/generic-openbsd/net/pfvar.h +154 -1
- package/libc/include/generic-openbsd/net/pfvar_priv.h +256 -1
- package/libc/include/generic-openbsd/net80211/ieee80211.h +76 -4
- package/libc/include/generic-openbsd/net80211/ieee80211_ioctl.h +3 -2
- package/libc/include/generic-openbsd/net80211/ieee80211_node.h +48 -2
- package/libc/include/generic-openbsd/net80211/ieee80211_proto.h +4 -1
- package/libc/include/generic-openbsd/net80211/ieee80211_var.h +18 -2
- package/libc/include/generic-openbsd/netinet/if_ether.h +12 -11
- package/libc/include/generic-openbsd/netinet/igmp_var.h +17 -3
- package/libc/include/generic-openbsd/netinet/in_pcb.h +2 -1
- package/libc/include/generic-openbsd/netinet/in_var.h +17 -59
- package/libc/include/generic-openbsd/netinet/ip.h +3 -2
- package/libc/include/generic-openbsd/netinet/tcp_timer.h +1 -2
- package/libc/include/generic-openbsd/netinet6/in6_var.h +15 -29
- package/libc/include/generic-openbsd/netinet6/ip6_var.h +1 -2
- package/libc/include/generic-openbsd/netinet6/mld6_var.h +17 -4
- package/libc/include/generic-openbsd/netinet6/nd6.h +2 -2
- package/libc/include/generic-openbsd/pthread.h +2 -2
- package/libc/include/generic-openbsd/signal.h +2 -2
- package/libc/include/generic-openbsd/sndio.h +6 -12
- package/libc/include/generic-openbsd/strings.h +5 -1
- package/libc/include/generic-openbsd/sys/device.h +4 -3
- package/libc/include/generic-openbsd/sys/disklabel.h +17 -5
- package/libc/include/generic-openbsd/sys/dkio.h +3 -5
- package/libc/include/generic-openbsd/sys/filedesc.h +3 -2
- package/libc/include/generic-openbsd/sys/mbuf.h +1 -1
- package/libc/include/generic-openbsd/sys/mman.h +7 -2
- package/libc/include/generic-openbsd/sys/mutex.h +10 -7
- package/libc/include/generic-openbsd/sys/namei.h +8 -7
- package/libc/include/generic-openbsd/sys/param.h +1 -1
- package/libc/include/generic-openbsd/sys/pledge.h +1 -3
- package/libc/include/generic-openbsd/sys/protosw.h +8 -1
- package/libc/include/generic-openbsd/sys/ptrace.h +4 -1
- package/libc/include/generic-openbsd/sys/sched.h +8 -1
- package/libc/include/generic-openbsd/sys/signal.h +4 -2
- package/libc/include/generic-openbsd/sys/socketvar.h +2 -1
- package/libc/include/generic-openbsd/sys/sockio.h +11 -1
- package/libc/include/generic-openbsd/sys/syscall.h +5 -3
- package/libc/include/generic-openbsd/sys/syscallargs.h +9 -2
- package/libc/include/generic-openbsd/sys/sysctl.h +7 -4
- package/libc/include/generic-openbsd/sys/types.h +6 -2
- package/libc/include/generic-openbsd/sys/videoio.h +143 -68
- package/libc/include/generic-openbsd/sys/xcall.h +2 -2
- package/libc/include/generic-openbsd/time.h +2 -2
- package/libc/include/generic-openbsd/unistd.h +2 -2
- package/libc/include/generic-openbsd/uvm/uvm_anon.h +2 -3
- package/libc/include/generic-openbsd/uvm/uvm_extern.h +1 -19
- package/libc/include/generic-openbsd/uvm/uvm_pager.h +3 -4
- package/libc/include/generic-openbsd/uvm/uvm_pmemrange.h +1 -2
- package/libc/include/generic-openbsd/uvm/uvm_swap.h +4 -1
- package/libc/include/generic-openbsd/uvm/uvm_vnode.h +3 -4
- package/libc/include/generic-openbsd/uvm/uvmexp.h +41 -35
- package/libc/include/mips64-openbsd-none/machine/octeonvar.h +1 -27
- package/libc/include/mips64-openbsd-none/octeon/octeonvar.h +1 -27
- package/libc/include/mips64el-openbsd-none/loongson/apmvar.h +1 -1
- package/libc/include/mips64el-openbsd-none/loongson/param.h +1 -5
- package/libc/include/mips64el-openbsd-none/machine/apmvar.h +1 -1
- package/libc/include/mips64el-openbsd-none/machine/param.h +1 -5
- package/libc/include/powerpc-openbsd-eabihf/powerpc/intr.h +1 -4
- package/libc/include/powerpc64-openbsd-none/machine/atomic.h +3 -3
- package/libc/include/powerpc64-openbsd-none/powerpc64/atomic.h +3 -3
- package/libc/include/riscv64-openbsd-none/machine/cpu.h +4 -8
- package/libc/include/riscv64-openbsd-none/machine/cpufunc.h +4 -4
- package/libc/include/riscv64-openbsd-none/machine/pmap.h +5 -1
- package/libc/include/riscv64-openbsd-none/machine/pte.h +9 -1
- package/libc/include/riscv64-openbsd-none/riscv64/cpu.h +4 -8
- package/libc/include/riscv64-openbsd-none/riscv64/cpufunc.h +4 -4
- package/libc/include/riscv64-openbsd-none/riscv64/pmap.h +5 -1
- package/libc/include/riscv64-openbsd-none/riscv64/pte.h +9 -1
- package/libc/include/x86-openbsd-none/i386/specialreg.h +3 -1
- package/libc/include/x86-openbsd-none/machine/specialreg.h +3 -1
- package/libc/include/x86_64-openbsd-none/amd64/conf.h +11 -2
- package/libc/include/x86_64-openbsd-none/amd64/cpu.h +14 -4
- package/libc/include/x86_64-openbsd-none/amd64/cpufunc.h +2 -3
- package/libc/include/x86_64-openbsd-none/amd64/ghcb.h +2 -1
- package/libc/include/x86_64-openbsd-none/amd64/i82489var.h +2 -4
- package/libc/include/x86_64-openbsd-none/amd64/i8259.h +1 -53
- package/libc/include/x86_64-openbsd-none/amd64/intr.h +5 -2
- package/libc/include/x86_64-openbsd-none/amd64/intrdefs.h +9 -7
- package/libc/include/x86_64-openbsd-none/amd64/kexec.h +48 -0
- package/libc/include/x86_64-openbsd-none/amd64/specialreg.h +4 -1
- package/libc/include/x86_64-openbsd-none/machine/conf.h +11 -2
- package/libc/include/x86_64-openbsd-none/machine/cpu.h +14 -4
- package/libc/include/x86_64-openbsd-none/machine/cpufunc.h +2 -3
- package/libc/include/x86_64-openbsd-none/machine/ghcb.h +2 -1
- package/libc/include/x86_64-openbsd-none/machine/i82489var.h +2 -4
- package/libc/include/x86_64-openbsd-none/machine/i8259.h +1 -53
- package/libc/include/x86_64-openbsd-none/machine/intr.h +5 -2
- package/libc/include/x86_64-openbsd-none/machine/intrdefs.h +9 -7
- package/libc/include/x86_64-openbsd-none/machine/kexec.h +48 -0
- package/libc/include/x86_64-openbsd-none/machine/specialreg.h +4 -1
- package/libc/openbsd/abilists +0 -0
- package/package.json +1 -1
- package/std/Io/File.zig +6 -0
- package/std/Target.zig +50 -38
- package/std/bit_set.zig +0 -1
- package/std/crypto/ascon.zig +0 -2
- package/std/crypto/salsa20.zig +0 -6
- package/std/crypto/sha3.zig +0 -2
- package/std/debug/cpu_context.zig +0 -21
- package/libc/include/mips64el-openbsd-none/loongson/hibernate.h +0 -33
- package/libc/include/mips64el-openbsd-none/loongson/hibernate_var.h +0 -39
- package/libc/include/mips64el-openbsd-none/machine/hibernate.h +0 -33
- package/libc/include/mips64el-openbsd-none/machine/hibernate_var.h +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: sysctl.h,v 1.
|
|
1
|
+
/* $OpenBSD: sysctl.h,v 1.248 2026/04/16 14:47:24 deraadt Exp $ */
|
|
2
2
|
/* $NetBSD: sysctl.h,v 1.16 1996/04/09 20:55:36 cgd Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -684,7 +684,6 @@ do { \
|
|
|
684
684
|
(kp)->p_vm_dsize = (vm)->vm_dused; \
|
|
685
685
|
(kp)->p_vm_ssize = (vm)->vm_ssize; \
|
|
686
686
|
} \
|
|
687
|
-
(kp)->p_addr = PTRTOINT64((p)->p_addr); \
|
|
688
687
|
(kp)->p_stat = (p)->p_stat; \
|
|
689
688
|
(kp)->p_slptime = (p)->p_slptime; \
|
|
690
689
|
(kp)->p_holdcnt = 1; \
|
|
@@ -693,8 +692,10 @@ do { \
|
|
|
693
692
|
if ((p)->p_wchan && (p)->p_wmesg) \
|
|
694
693
|
copy_str((kp)->p_wmesg, (p)->p_wmesg, \
|
|
695
694
|
sizeof((kp)->p_wmesg)); \
|
|
696
|
-
if (show_addresses) \
|
|
695
|
+
if (show_addresses) { \
|
|
697
696
|
(kp)->p_wchan = PTRTOINT64((p)->p_wchan); \
|
|
697
|
+
(kp)->p_addr = PTRTOINT64((p)->p_addr); \
|
|
698
|
+
} \
|
|
698
699
|
} \
|
|
699
700
|
\
|
|
700
701
|
if (((pr)->ps_flags & PS_ZOMBIE) == 0) { \
|
|
@@ -926,7 +927,8 @@ struct kinfo_file {
|
|
|
926
927
|
#define HW_POWER 26 /* int: machine has wall-power */
|
|
927
928
|
#define HW_BATTERY 27 /* node: battery */
|
|
928
929
|
#define HW_UCOMNAMES 28 /* strings: ucom names */
|
|
929
|
-
#define
|
|
930
|
+
#define HW_BLOCKCPU 29 /* string: cpu types to block */
|
|
931
|
+
#define HW_MAXID 30 /* number of valid hw ids */
|
|
930
932
|
|
|
931
933
|
#define CTL_HW_NAMES { \
|
|
932
934
|
{ 0, 0 }, \
|
|
@@ -958,6 +960,7 @@ struct kinfo_file {
|
|
|
958
960
|
{ "power", CTLTYPE_INT }, \
|
|
959
961
|
{ "battery", CTLTYPE_NODE }, \
|
|
960
962
|
{ "ucomnames", CTLTYPE_STRING }, \
|
|
963
|
+
{ "blockcpu", CTLTYPE_STRING }, \
|
|
961
964
|
}
|
|
962
965
|
|
|
963
966
|
/*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: types.h,v 1.
|
|
1
|
+
/* $OpenBSD: types.h,v 1.50 2026/03/26 21:46:24 daniel Exp $ */
|
|
2
2
|
/* $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $ */
|
|
3
3
|
|
|
4
4
|
/*-
|
|
@@ -140,7 +140,6 @@ typedef __gid_t gid_t; /* group id */
|
|
|
140
140
|
typedef __id_t id_t; /* may contain pid, uid or gid */
|
|
141
141
|
typedef __ino_t ino_t; /* inode number */
|
|
142
142
|
typedef __key_t key_t; /* IPC key (for Sys V IPC) */
|
|
143
|
-
typedef __mode_t mode_t; /* permissions */
|
|
144
143
|
typedef __nlink_t nlink_t; /* link count */
|
|
145
144
|
typedef __rlim_t rlim_t; /* resource limit */
|
|
146
145
|
typedef __segsz_t segsz_t; /* segment size */
|
|
@@ -193,6 +192,11 @@ typedef __timer_t timer_t;
|
|
|
193
192
|
typedef __off_t off_t;
|
|
194
193
|
#endif
|
|
195
194
|
|
|
195
|
+
#ifndef _MODE_T_DEFINED_
|
|
196
|
+
#define _MODE_T_DEFINED_
|
|
197
|
+
typedef __mode_t mode_t; /* permissions */
|
|
198
|
+
#endif
|
|
199
|
+
|
|
196
200
|
/*
|
|
197
201
|
* These belong in unistd.h, but are placed here too to ensure that
|
|
198
202
|
* long arguments will be promoted to off_t if the program fails to
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: videoio.h,v 1.
|
|
1
|
+
/* $OpenBSD: videoio.h,v 1.29 2026/02/19 20:42:45 kirill Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Video for Linux Two header file
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
*
|
|
55
55
|
* Author: Bill Dirks <bill@thedirks.org>
|
|
56
56
|
* Justin Schoeman
|
|
57
|
-
* Hans Verkuil <hverkuil@
|
|
57
|
+
* Hans Verkuil <hverkuil@kernel.org>
|
|
58
58
|
* et al.
|
|
59
59
|
*/
|
|
60
60
|
|
|
@@ -343,6 +343,12 @@ enum v4l2_colorfx {
|
|
|
343
343
|
*/
|
|
344
344
|
#define V4L2_CID_USER_RKISP1_BASE (V4L2_CID_USER_BASE + 0x1220)
|
|
345
345
|
|
|
346
|
+
/*
|
|
347
|
+
* The base for the Arm Mali-C55 ISP driver controls.
|
|
348
|
+
* We reserve 16 controls for this driver
|
|
349
|
+
*/
|
|
350
|
+
#define V4L2_CID_USER_MALI_C55_BASE (V4L2_CID_USER_BASE + 0x1230)
|
|
351
|
+
|
|
346
352
|
/* MPEG-class control IDs */
|
|
347
353
|
/* The MPEG controls are applicable to all codec controls
|
|
348
354
|
* and the 'MPEG' part of the define is historical */
|
|
@@ -1299,6 +1305,8 @@ enum v4l2_flash_strobe_source {
|
|
|
1299
1305
|
|
|
1300
1306
|
#define V4L2_CID_FLASH_CHARGE (V4L2_CID_FLASH_CLASS_BASE + 11)
|
|
1301
1307
|
#define V4L2_CID_FLASH_READY (V4L2_CID_FLASH_CLASS_BASE + 12)
|
|
1308
|
+
#define V4L2_CID_FLASH_DURATION (V4L2_CID_FLASH_CLASS_BASE + 13)
|
|
1309
|
+
#define V4L2_CID_FLASH_STROBE_OE (V4L2_CID_FLASH_CLASS_BASE + 14)
|
|
1302
1310
|
|
|
1303
1311
|
|
|
1304
1312
|
/* JPEG-class control IDs */
|
|
@@ -1306,7 +1314,7 @@ enum v4l2_flash_strobe_source {
|
|
|
1306
1314
|
#define V4L2_CID_JPEG_CLASS_BASE (V4L2_CTRL_CLASS_JPEG | 0x900)
|
|
1307
1315
|
#define V4L2_CID_JPEG_CLASS (V4L2_CTRL_CLASS_JPEG | 1)
|
|
1308
1316
|
|
|
1309
|
-
#define
|
|
1317
|
+
#define V4L2_CID_JPEG_CHROMA_SUBSAMPLING (V4L2_CID_JPEG_CLASS_BASE + 1)
|
|
1310
1318
|
enum v4l2_jpeg_chroma_subsampling {
|
|
1311
1319
|
V4L2_JPEG_CHROMA_SUBSAMPLING_444 = 0,
|
|
1312
1320
|
V4L2_JPEG_CHROMA_SUBSAMPLING_422 = 1,
|
|
@@ -1315,15 +1323,15 @@ enum v4l2_jpeg_chroma_subsampling {
|
|
|
1315
1323
|
V4L2_JPEG_CHROMA_SUBSAMPLING_410 = 4,
|
|
1316
1324
|
V4L2_JPEG_CHROMA_SUBSAMPLING_GRAY = 5,
|
|
1317
1325
|
};
|
|
1318
|
-
#define
|
|
1319
|
-
#define
|
|
1326
|
+
#define V4L2_CID_JPEG_RESTART_INTERVAL (V4L2_CID_JPEG_CLASS_BASE + 2)
|
|
1327
|
+
#define V4L2_CID_JPEG_COMPRESSION_QUALITY (V4L2_CID_JPEG_CLASS_BASE + 3)
|
|
1320
1328
|
|
|
1321
|
-
#define
|
|
1322
|
-
#define
|
|
1323
|
-
#define
|
|
1324
|
-
#define
|
|
1325
|
-
#define
|
|
1326
|
-
#define
|
|
1329
|
+
#define V4L2_CID_JPEG_ACTIVE_MARKER (V4L2_CID_JPEG_CLASS_BASE + 4)
|
|
1330
|
+
#define V4L2_JPEG_ACTIVE_MARKER_APP0 (1 << 0)
|
|
1331
|
+
#define V4L2_JPEG_ACTIVE_MARKER_APP1 (1 << 1)
|
|
1332
|
+
#define V4L2_JPEG_ACTIVE_MARKER_COM (1 << 16)
|
|
1333
|
+
#define V4L2_JPEG_ACTIVE_MARKER_DQT (1 << 17)
|
|
1334
|
+
#define V4L2_JPEG_ACTIVE_MARKER_DHT (1 << 18)
|
|
1327
1335
|
|
|
1328
1336
|
|
|
1329
1337
|
/* Image source controls */
|
|
@@ -1356,10 +1364,10 @@ enum v4l2_jpeg_chroma_subsampling {
|
|
|
1356
1364
|
#define V4L2_CID_DV_CLASS_BASE (V4L2_CTRL_CLASS_DV | 0x900)
|
|
1357
1365
|
#define V4L2_CID_DV_CLASS (V4L2_CTRL_CLASS_DV | 1)
|
|
1358
1366
|
|
|
1359
|
-
#define
|
|
1360
|
-
#define
|
|
1361
|
-
#define
|
|
1362
|
-
#define
|
|
1367
|
+
#define V4L2_CID_DV_TX_HOTPLUG (V4L2_CID_DV_CLASS_BASE + 1)
|
|
1368
|
+
#define V4L2_CID_DV_TX_RXSENSE (V4L2_CID_DV_CLASS_BASE + 2)
|
|
1369
|
+
#define V4L2_CID_DV_TX_EDID_PRESENT (V4L2_CID_DV_CLASS_BASE + 3)
|
|
1370
|
+
#define V4L2_CID_DV_TX_MODE (V4L2_CID_DV_CLASS_BASE + 4)
|
|
1363
1371
|
enum v4l2_dv_tx_mode {
|
|
1364
1372
|
V4L2_DV_TX_MODE_DVI_D = 0,
|
|
1365
1373
|
V4L2_DV_TX_MODE_HDMI = 1,
|
|
@@ -1380,7 +1388,7 @@ enum v4l2_dv_it_content_type {
|
|
|
1380
1388
|
V4L2_DV_IT_CONTENT_TYPE_NO_ITC = 4,
|
|
1381
1389
|
};
|
|
1382
1390
|
|
|
1383
|
-
#define
|
|
1391
|
+
#define V4L2_CID_DV_RX_POWER_PRESENT (V4L2_CID_DV_CLASS_BASE + 100)
|
|
1384
1392
|
#define V4L2_CID_DV_RX_RGB_RANGE (V4L2_CID_DV_CLASS_BASE + 101)
|
|
1385
1393
|
#define V4L2_CID_DV_RX_IT_CONTENT_TYPE (V4L2_CID_DV_CLASS_BASE + 102)
|
|
1386
1394
|
|
|
@@ -1650,15 +1658,6 @@ struct v4l2_ctrl_h264_pred_weights {
|
|
|
1650
1658
|
struct v4l2_h264_weight_factors weight_factors[2];
|
|
1651
1659
|
};
|
|
1652
1660
|
|
|
1653
|
-
#define V4L2_H264_SLICE_TYPE_P 0
|
|
1654
|
-
#define V4L2_H264_SLICE_TYPE_B 1
|
|
1655
|
-
#define V4L2_H264_SLICE_TYPE_I 2
|
|
1656
|
-
#define V4L2_H264_SLICE_TYPE_SP 3
|
|
1657
|
-
#define V4L2_H264_SLICE_TYPE_SI 4
|
|
1658
|
-
|
|
1659
|
-
#define V4L2_H264_SLICE_FLAG_DIRECT_SPATIAL_MV_PRED 0x01
|
|
1660
|
-
#define V4L2_H264_SLICE_FLAG_SP_FOR_SWITCH 0x02
|
|
1661
|
-
|
|
1662
1661
|
#define V4L2_H264_TOP_FIELD_REF 0x1
|
|
1663
1662
|
#define V4L2_H264_BOTTOM_FIELD_REF 0x2
|
|
1664
1663
|
#define V4L2_H264_FRAME_REF 0x3
|
|
@@ -1679,8 +1678,17 @@ struct v4l2_h264_reference {
|
|
|
1679
1678
|
* Maximum DPB size, as specified by section 'A.3.1 Level limits
|
|
1680
1679
|
* common to the Baseline, Main, and Extended profiles'.
|
|
1681
1680
|
*/
|
|
1682
|
-
#define V4L2_H264_NUM_DPB_ENTRIES
|
|
1683
|
-
#define V4L2_H264_REF_LIST_LEN
|
|
1681
|
+
#define V4L2_H264_NUM_DPB_ENTRIES 16
|
|
1682
|
+
#define V4L2_H264_REF_LIST_LEN (2 * V4L2_H264_NUM_DPB_ENTRIES)
|
|
1683
|
+
|
|
1684
|
+
#define V4L2_H264_SLICE_TYPE_P 0
|
|
1685
|
+
#define V4L2_H264_SLICE_TYPE_B 1
|
|
1686
|
+
#define V4L2_H264_SLICE_TYPE_I 2
|
|
1687
|
+
#define V4L2_H264_SLICE_TYPE_SP 3
|
|
1688
|
+
#define V4L2_H264_SLICE_TYPE_SI 4
|
|
1689
|
+
|
|
1690
|
+
#define V4L2_H264_SLICE_FLAG_DIRECT_SPATIAL_MV_PRED 0x01
|
|
1691
|
+
#define V4L2_H264_SLICE_FLAG_SP_FOR_SWITCH 0x02
|
|
1684
1692
|
|
|
1685
1693
|
#define V4L2_CID_STATELESS_H264_SLICE_PARAMS (V4L2_CID_CODEC_STATELESS_BASE + 6)
|
|
1686
1694
|
/**
|
|
@@ -1820,7 +1828,6 @@ struct v4l2_ctrl_h264_decode_params {
|
|
|
1820
1828
|
u_int32_t flags;
|
|
1821
1829
|
};
|
|
1822
1830
|
|
|
1823
|
-
|
|
1824
1831
|
/* Stateless FWHT control, used by the vicodec driver */
|
|
1825
1832
|
|
|
1826
1833
|
/* Current FWHT version */
|
|
@@ -2207,6 +2214,8 @@ struct v4l2_ctrl_mpeg2_quantisation {
|
|
|
2207
2214
|
#define V4L2_CID_STATELESS_HEVC_DECODE_MODE (V4L2_CID_CODEC_STATELESS_BASE + 405)
|
|
2208
2215
|
#define V4L2_CID_STATELESS_HEVC_START_CODE (V4L2_CID_CODEC_STATELESS_BASE + 406)
|
|
2209
2216
|
#define V4L2_CID_STATELESS_HEVC_ENTRY_POINT_OFFSETS (V4L2_CID_CODEC_STATELESS_BASE + 407)
|
|
2217
|
+
#define V4L2_CID_STATELESS_HEVC_EXT_SPS_ST_RPS (V4L2_CID_CODEC_STATELESS_BASE + 408)
|
|
2218
|
+
#define V4L2_CID_STATELESS_HEVC_EXT_SPS_LT_RPS (V4L2_CID_CODEC_STATELESS_BASE + 409)
|
|
2210
2219
|
|
|
2211
2220
|
enum v4l2_stateless_hevc_decode_mode {
|
|
2212
2221
|
V4L2_STATELESS_HEVC_DECODE_MODE_SLICE_BASED,
|
|
@@ -2662,44 +2671,69 @@ struct v4l2_ctrl_hevc_scaling_matrix {
|
|
|
2662
2671
|
u_int8_t scaling_list_dc_coef_32x32[2];
|
|
2663
2672
|
};
|
|
2664
2673
|
|
|
2665
|
-
#define
|
|
2666
|
-
#define V4L2_CID_COLORIMETRY_CLASS (V4L2_CTRL_CLASS_COLORIMETRY | 1)
|
|
2674
|
+
#define V4L2_HEVC_EXT_SPS_ST_RPS_FLAG_INTER_REF_PIC_SET_PRED 0x1
|
|
2667
2675
|
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2676
|
+
/*
|
|
2677
|
+
* struct v4l2_ctrl_hevc_ext_sps_st_rps - HEVC short term RPS parameters
|
|
2678
|
+
*
|
|
2679
|
+
* Dynamic size 1-dimension array for short term RPS. The number of elements
|
|
2680
|
+
* is v4l2_ctrl_hevc_sps::num_short_term_ref_pic_sets. It can contain up to 65 elements.
|
|
2681
|
+
*
|
|
2682
|
+
* @delta_idx_minus1: Specifies the delta compare to the index. See details in section 7.4.8
|
|
2683
|
+
* "Short-term reference picture set semantics" of the specification.
|
|
2684
|
+
* @delta_rps_sign: Sign of the delta as specified in section 7.4.8 "Short-term reference picture
|
|
2685
|
+
* set semantics" of the specification.
|
|
2686
|
+
* @abs_delta_rps_minus1: Absolute delta RPS as specified in section 7.4.8 "Short-term reference
|
|
2687
|
+
* picture set semantics" of the specification.
|
|
2688
|
+
* @num_negative_pics: Number of short-term RPS entries that have picture order count values less
|
|
2689
|
+
* than the picture order count value of the current picture.
|
|
2690
|
+
* @num_positive_pics: Number of short-term RPS entries that have picture order count values
|
|
2691
|
+
* greater than the picture order count value of the current picture.
|
|
2692
|
+
* @used_by_curr_pic: Bit j specifies if short-term RPS j is used by the current picture.
|
|
2693
|
+
* @use_delta_flag: Bit j equals to 1 specifies that the j-th entry in the source candidate
|
|
2694
|
+
* short-term RPS is included in this candidate short-term RPS.
|
|
2695
|
+
* @delta_poc_s0_minus1: Specifies the negative picture order count delta for the i-th entry in
|
|
2696
|
+
* the short-term RPS. See details in section 7.4.8 "Short-term reference
|
|
2697
|
+
* picture set semantics" of the specification.
|
|
2698
|
+
* @delta_poc_s1_minus1: Specifies the positive picture order count delta for the i-th entry in
|
|
2699
|
+
* the short-term RPS. See details in section 7.4.8 "Short-term reference
|
|
2700
|
+
* picture set semantics" of the specification.
|
|
2701
|
+
* @flags: See V4L2_HEVC_EXT_SPS_ST_RPS_FLAG_{}
|
|
2702
|
+
*/
|
|
2703
|
+
struct v4l2_ctrl_hevc_ext_sps_st_rps {
|
|
2704
|
+
u_int8_t delta_idx_minus1;
|
|
2705
|
+
u_int8_t delta_rps_sign;
|
|
2706
|
+
u_int8_t num_negative_pics;
|
|
2707
|
+
u_int8_t num_positive_pics;
|
|
2708
|
+
u_int32_t used_by_curr_pic;
|
|
2709
|
+
u_int32_t use_delta_flag;
|
|
2710
|
+
u_int16_t abs_delta_rps_minus1;
|
|
2711
|
+
u_int16_t delta_poc_s0_minus1[16];
|
|
2712
|
+
u_int16_t delta_poc_s1_minus1[16];
|
|
2713
|
+
u_int16_t flags;
|
|
2714
|
+
};
|
|
2715
|
+
|
|
2716
|
+
#define V4L2_HEVC_EXT_SPS_LT_RPS_FLAG_USED_LT 0x1
|
|
2689
2717
|
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2718
|
+
/*
|
|
2719
|
+
* struct v4l2_ctrl_hevc_ext_sps_lt_rps - HEVC long term RPS parameters
|
|
2720
|
+
*
|
|
2721
|
+
* Dynamic size 1-dimension array for long term RPS. The number of elements
|
|
2722
|
+
* is v4l2_ctrl_hevc_sps::num_long_term_ref_pics_sps. It can contain up to 65 elements.
|
|
2723
|
+
*
|
|
2724
|
+
* @lt_ref_pic_poc_lsb_sps: picture order count modulo MaxPicOrderCntLsb of the i-th candidate
|
|
2725
|
+
* long-term reference picture.
|
|
2726
|
+
* @flags: See V4L2_HEVC_EXT_SPS_LT_RPS_FLAG_{}
|
|
2727
|
+
*/
|
|
2728
|
+
struct v4l2_ctrl_hevc_ext_sps_lt_rps {
|
|
2729
|
+
u_int16_t lt_ref_pic_poc_lsb_sps;
|
|
2730
|
+
u_int16_t flags;
|
|
2697
2731
|
};
|
|
2698
2732
|
|
|
2699
2733
|
/* Stateless VP9 controls */
|
|
2700
2734
|
|
|
2701
2735
|
#define V4L2_VP9_LOOP_FILTER_FLAG_DELTA_ENABLED 0x1
|
|
2702
|
-
#define
|
|
2736
|
+
#define V4L2_VP9_LOOP_FILTER_FLAG_DELTA_UPDATE 0x2
|
|
2703
2737
|
|
|
2704
2738
|
/**
|
|
2705
2739
|
* struct v4l2_vp9_loop_filter - VP9 loop filter parameters
|
|
@@ -3625,6 +3659,40 @@ struct v4l2_ctrl_av1_film_grain {
|
|
|
3625
3659
|
#define V4L2_CID_MPEG_BASE V4L2_CID_CODEC_BASE
|
|
3626
3660
|
#define V4L2_CID_MPEG_CX2341X_BASE V4L2_CID_CODEC_CX2341X_BASE
|
|
3627
3661
|
#define V4L2_CID_MPEG_MFC51_BASE V4L2_CID_CODEC_MFC51_BASE
|
|
3662
|
+
#define V4L2_CID_COLORIMETRY_CLASS_BASE (V4L2_CTRL_CLASS_COLORIMETRY | 0x900)
|
|
3663
|
+
#define V4L2_CID_COLORIMETRY_CLASS (V4L2_CTRL_CLASS_COLORIMETRY | 1)
|
|
3664
|
+
|
|
3665
|
+
#define V4L2_CID_COLORIMETRY_HDR10_CLL_INFO (V4L2_CID_COLORIMETRY_CLASS_BASE + 0)
|
|
3666
|
+
|
|
3667
|
+
struct v4l2_ctrl_hdr10_cll_info {
|
|
3668
|
+
u_int16_t max_content_light_level;
|
|
3669
|
+
u_int16_t max_pic_average_light_level;
|
|
3670
|
+
};
|
|
3671
|
+
|
|
3672
|
+
#define V4L2_CID_COLORIMETRY_HDR10_MASTERING_DISPLAY (V4L2_CID_COLORIMETRY_CLASS_BASE + 1)
|
|
3673
|
+
|
|
3674
|
+
#define V4L2_HDR10_MASTERING_PRIMARIES_X_LOW 5
|
|
3675
|
+
#define V4L2_HDR10_MASTERING_PRIMARIES_X_HIGH 37000
|
|
3676
|
+
#define V4L2_HDR10_MASTERING_PRIMARIES_Y_LOW 5
|
|
3677
|
+
#define V4L2_HDR10_MASTERING_PRIMARIES_Y_HIGH 42000
|
|
3678
|
+
#define V4L2_HDR10_MASTERING_WHITE_POINT_X_LOW 5
|
|
3679
|
+
#define V4L2_HDR10_MASTERING_WHITE_POINT_X_HIGH 37000
|
|
3680
|
+
#define V4L2_HDR10_MASTERING_WHITE_POINT_Y_LOW 5
|
|
3681
|
+
#define V4L2_HDR10_MASTERING_WHITE_POINT_Y_HIGH 42000
|
|
3682
|
+
#define V4L2_HDR10_MASTERING_MAX_LUMA_LOW 50000
|
|
3683
|
+
#define V4L2_HDR10_MASTERING_MAX_LUMA_HIGH 100000000
|
|
3684
|
+
#define V4L2_HDR10_MASTERING_MIN_LUMA_LOW 1
|
|
3685
|
+
#define V4L2_HDR10_MASTERING_MIN_LUMA_HIGH 50000
|
|
3686
|
+
|
|
3687
|
+
struct v4l2_ctrl_hdr10_mastering_display {
|
|
3688
|
+
u_int16_t display_primaries_x[3];
|
|
3689
|
+
u_int16_t display_primaries_y[3];
|
|
3690
|
+
u_int16_t white_point_x;
|
|
3691
|
+
u_int16_t white_point_y;
|
|
3692
|
+
u_int32_t max_display_mastering_luminance;
|
|
3693
|
+
u_int32_t min_display_mastering_luminance;
|
|
3694
|
+
};
|
|
3695
|
+
|
|
3628
3696
|
/*
|
|
3629
3697
|
* End of v4l2-controls.h
|
|
3630
3698
|
*/
|
|
@@ -4316,6 +4384,7 @@ struct v4l2_pix_format {
|
|
|
4316
4384
|
#define V4L2_PIX_FMT_H264_SLICE v4l2_fourcc('S', '2', '6', '4') /* H264 parsed slices */
|
|
4317
4385
|
#define V4L2_PIX_FMT_HEVC_SLICE v4l2_fourcc('S', '2', '6', '5') /* HEVC parsed slices */
|
|
4318
4386
|
#define V4L2_PIX_FMT_AV1_FRAME v4l2_fourcc('A', 'V', '1', 'F') /* AV1 parsed frame */
|
|
4387
|
+
#define V4L2_PIX_FMT_AV1 v4l2_fourcc('A', 'V', '0', '1') /* AV1 */
|
|
4319
4388
|
#define V4L2_PIX_FMT_SPK v4l2_fourcc('S', 'P', 'K', '0') /* Sorenson Spark */
|
|
4320
4389
|
#define V4L2_PIX_FMT_RV30 v4l2_fourcc('R', 'V', '3', '0') /* RealVideo 8 */
|
|
4321
4390
|
#define V4L2_PIX_FMT_RV40 v4l2_fourcc('R', 'V', '4', '0') /* RealVideo 9 & 10 */
|
|
@@ -4425,6 +4494,10 @@ struct v4l2_pix_format {
|
|
|
4425
4494
|
#define V4L2_META_FMT_RPI_FE_CFG v4l2_fourcc('R', 'P', 'F', 'C') /* PiSP FE configuration */
|
|
4426
4495
|
#define V4L2_META_FMT_RPI_FE_STATS v4l2_fourcc('R', 'P', 'F', 'S') /* PiSP FE stats */
|
|
4427
4496
|
|
|
4497
|
+
/* Vendor specific - used for Arm Mali-C55 ISP */
|
|
4498
|
+
#define V4L2_META_FMT_MALI_C55_PARAMS v4l2_fourcc('C', '5', '5', 'P') /* ARM Mali-C55 Parameters */
|
|
4499
|
+
#define V4L2_META_FMT_MALI_C55_STATS v4l2_fourcc('C', '5', '5', 'S') /* ARM Mali-C55 3A Statistics */
|
|
4500
|
+
|
|
4428
4501
|
/* priv field value to indicates that subsequent fields are valid. */
|
|
4429
4502
|
#define V4L2_PIX_FMT_PRIV_MAGIC 0xfeedcafe
|
|
4430
4503
|
|
|
@@ -5108,8 +5181,8 @@ struct v4l2_bt_timings {
|
|
|
5108
5181
|
} __attribute__ ((packed));
|
|
5109
5182
|
|
|
5110
5183
|
/* Interlaced or progressive format */
|
|
5111
|
-
#define
|
|
5112
|
-
#define
|
|
5184
|
+
#define V4L2_DV_PROGRESSIVE 0
|
|
5185
|
+
#define V4L2_DV_INTERLACED 1
|
|
5113
5186
|
|
|
5114
5187
|
/* Polarities. If bit is not set, it is assumed to be negative polarity */
|
|
5115
5188
|
#define V4L2_DV_VSYNC_POS_POL 0x00000001
|
|
@@ -5478,6 +5551,8 @@ enum v4l2_ctrl_type {
|
|
|
5478
5551
|
V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS = 0x0272,
|
|
5479
5552
|
V4L2_CTRL_TYPE_HEVC_SCALING_MATRIX = 0x0273,
|
|
5480
5553
|
V4L2_CTRL_TYPE_HEVC_DECODE_PARAMS = 0x0274,
|
|
5554
|
+
V4L2_CTRL_TYPE_HEVC_EXT_SPS_ST_RPS = 0x0275,
|
|
5555
|
+
V4L2_CTRL_TYPE_HEVC_EXT_SPS_LT_RPS = 0x0276,
|
|
5481
5556
|
|
|
5482
5557
|
V4L2_CTRL_TYPE_AV1_SEQUENCE = 0x280,
|
|
5483
5558
|
V4L2_CTRL_TYPE_AV1_TILE_GROUP_ENTRY = 0x281,
|
|
@@ -6281,15 +6356,15 @@ struct v4l2_remove_buffers {
|
|
|
6281
6356
|
* Only implemented if CONFIG_VIDEO_ADV_DEBUG is defined.
|
|
6282
6357
|
* You must be root to use these ioctls. Never use these in applications!
|
|
6283
6358
|
*/
|
|
6284
|
-
#define
|
|
6285
|
-
#define
|
|
6359
|
+
#define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_dbg_register)
|
|
6360
|
+
#define VIDIOC_DBG_G_REGISTER _IOWR('V', 80, struct v4l2_dbg_register)
|
|
6286
6361
|
|
|
6287
6362
|
#define VIDIOC_S_HW_FREQ_SEEK _IOW('V', 82, struct v4l2_hw_freq_seek)
|
|
6288
|
-
#define
|
|
6289
|
-
#define
|
|
6290
|
-
#define
|
|
6291
|
-
#define
|
|
6292
|
-
#define
|
|
6363
|
+
#define VIDIOC_S_DV_TIMINGS _IOWR('V', 87, struct v4l2_dv_timings)
|
|
6364
|
+
#define VIDIOC_G_DV_TIMINGS _IOWR('V', 88, struct v4l2_dv_timings)
|
|
6365
|
+
#define VIDIOC_DQEVENT _IOR('V', 89, struct v4l2_event)
|
|
6366
|
+
#define VIDIOC_SUBSCRIBE_EVENT _IOW('V', 90, struct v4l2_event_subscription)
|
|
6367
|
+
#define VIDIOC_UNSUBSCRIBE_EVENT _IOW('V', 91, struct v4l2_event_subscription)
|
|
6293
6368
|
#define VIDIOC_CREATE_BUFS _IOWR('V', 92, struct v4l2_create_buffers)
|
|
6294
6369
|
#define VIDIOC_PREPARE_BUF _IOWR('V', 93, struct v4l2_buffer)
|
|
6295
6370
|
#define VIDIOC_G_SELECTION _IOWR('V', 94, struct v4l2_selection)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: xcall.h,v 1.
|
|
1
|
+
/* $OpenBSD: xcall.h,v 1.2 2025/11/10 12:34:52 dlg Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) 2025 David Gwynne <dlg@openbsd.org>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
*
|
|
46
46
|
* 4. cpu_xcall_ipi has to be provided by machine/intr.h.
|
|
47
47
|
*
|
|
48
|
-
* 5.
|
|
48
|
+
* 5. call cpu_xcall_dispatch at IPL_SOFTCLOCK on the target CPU.
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
51
|
#ifndef _SYS_XCALL_H
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: time.h,v 1.
|
|
1
|
+
/* $OpenBSD: time.h,v 1.33 2025/11/20 10:58:11 tb Exp $ */
|
|
2
2
|
/* $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -106,7 +106,7 @@ struct tm {
|
|
|
106
106
|
int tm_yday; /* days since January 1 [0-365] */
|
|
107
107
|
int tm_isdst; /* Daylight Saving Time flag */
|
|
108
108
|
long tm_gmtoff; /* offset from UTC in seconds */
|
|
109
|
-
char
|
|
109
|
+
const char *tm_zone; /* timezone abbreviation */
|
|
110
110
|
};
|
|
111
111
|
|
|
112
112
|
__BEGIN_DECLS
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: unistd.h,v 1.
|
|
1
|
+
/* $OpenBSD: unistd.h,v 1.113 2025/10/07 12:02:21 brynet Exp $ */
|
|
2
2
|
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
|
|
3
3
|
|
|
4
4
|
/*-
|
|
@@ -530,7 +530,7 @@ int setpgrp(pid_t _pid, pid_t _pgrp); /* BSD compat version */
|
|
|
530
530
|
int setthrname(pid_t, const char *);
|
|
531
531
|
void setusershell(void);
|
|
532
532
|
int strtofflags(char **, u_int32_t *, u_int32_t *);
|
|
533
|
-
int swapctl(int
|
|
533
|
+
int swapctl(int, const void *, int);
|
|
534
534
|
int pledge(const char *, const char *);
|
|
535
535
|
int unveil(const char *, const char *);
|
|
536
536
|
pid_t __tfork_thread(const struct __tfork *, size_t, void (*)(void *),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: uvm_anon.h,v 1.
|
|
1
|
+
/* $OpenBSD: uvm_anon.h,v 1.24 2025/12/15 13:02:18 mpi Exp $ */
|
|
2
2
|
/* $NetBSD: uvm_anon.h,v 1.13 2000/12/27 09:17:04 chs Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -88,7 +88,7 @@ struct vm_aref {
|
|
|
88
88
|
|
|
89
89
|
#ifdef _KERNEL
|
|
90
90
|
struct vm_anon *uvm_analloc(void);
|
|
91
|
-
void
|
|
91
|
+
void uvm_anfree(struct vm_anon *);
|
|
92
92
|
void uvm_anon_release(struct vm_anon *);
|
|
93
93
|
void uvm_anwait(void);
|
|
94
94
|
void uvm_anon_init(void);
|
|
@@ -96,7 +96,6 @@ void uvm_anon_init_percpu(void);
|
|
|
96
96
|
void uvm_anon_dropswap(struct vm_anon *);
|
|
97
97
|
boolean_t uvm_anon_pagein(struct vm_amap *, struct vm_anon *);
|
|
98
98
|
|
|
99
|
-
#define uvm_anfree(an) uvm_anfree_list((an), NULL)
|
|
100
99
|
|
|
101
100
|
#endif /* _KERNEL */
|
|
102
101
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: uvm_extern.h,v 1.
|
|
1
|
+
/* $OpenBSD: uvm_extern.h,v 1.187 2025/11/13 10:55:51 mpi Exp $ */
|
|
2
2
|
/* $NetBSD: uvm_extern.h,v 1.57 2001/03/09 01:02:12 chs Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -126,15 +126,6 @@ typedef int vm_prot_t;
|
|
|
126
126
|
#define UVM_UNKNOWN_OFFSET ((voff_t) -1)
|
|
127
127
|
/* offset not known(obj) or don't care(!obj) */
|
|
128
128
|
|
|
129
|
-
/*
|
|
130
|
-
* the following defines are for uvm_km_kmemalloc's flags
|
|
131
|
-
*/
|
|
132
|
-
#define UVM_KMF_NOWAIT 0x1 /* matches M_NOWAIT */
|
|
133
|
-
#define UVM_KMF_VALLOC 0x2 /* allocate VA only */
|
|
134
|
-
#define UVM_KMF_CANFAIL 0x4 /* caller handles failure */
|
|
135
|
-
#define UVM_KMF_ZERO 0x08 /* zero pages */
|
|
136
|
-
#define UVM_KMF_TRYLOCK UVM_FLAG_TRYLOCK /* try locking only */
|
|
137
|
-
|
|
138
129
|
/*
|
|
139
130
|
* flags for uvm_pagealloc()
|
|
140
131
|
*/
|
|
@@ -286,12 +277,6 @@ int uvm_io(vm_map_t, struct uio *, int);
|
|
|
286
277
|
|
|
287
278
|
#define UVM_IO_FIXPROT 0x01
|
|
288
279
|
|
|
289
|
-
void uvm_km_free(vm_map_t, vaddr_t, vsize_t);
|
|
290
|
-
vaddr_t uvm_km_kmemalloc_pla(struct vm_map *,
|
|
291
|
-
struct uvm_object *, vsize_t, vsize_t, int,
|
|
292
|
-
paddr_t, paddr_t, paddr_t, paddr_t, int);
|
|
293
|
-
#define uvm_km_kmemalloc(map, obj, sz, flags) \
|
|
294
|
-
uvm_km_kmemalloc_pla(map, obj, sz, 0, flags, 0, (paddr_t)-1, 0, 0, 0)
|
|
295
280
|
struct vm_map *uvm_km_suballoc(vm_map_t, vaddr_t *, vaddr_t *,
|
|
296
281
|
vsize_t, int, boolean_t, vm_map_t);
|
|
297
282
|
/*
|
|
@@ -443,9 +428,6 @@ void kmeminit_nkmempages(void);
|
|
|
443
428
|
void kmeminit(void);
|
|
444
429
|
extern u_int nkmempages;
|
|
445
430
|
|
|
446
|
-
struct vnode;
|
|
447
|
-
struct uvm_object *uvn_attach(struct vnode *, vm_prot_t);
|
|
448
|
-
|
|
449
431
|
struct process;
|
|
450
432
|
struct kinfo_vmentry;
|
|
451
433
|
int fill_vmmap(struct process *, struct kinfo_vmentry *,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: uvm_pager.h,v 1.
|
|
1
|
+
/* $OpenBSD: uvm_pager.h,v 1.34 2025/12/18 16:05:18 mpi Exp $ */
|
|
2
2
|
/* $NetBSD: uvm_pager.h,v 1.20 2000/11/27 08:40:05 chs Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -110,7 +110,6 @@ struct uvm_pagerops {
|
|
|
110
110
|
#define PGO_DOACTCLUST 0x020 /* flag to mk_pcluster to include active */
|
|
111
111
|
#define PGO_LOCKED 0x040 /* fault data structures are locked [get] */
|
|
112
112
|
#define PGO_PDFREECLUST 0x080 /* daemon's free cluster flag [uvm_pager_put] */
|
|
113
|
-
#define PGO_REALLOCSWAP 0x100 /* reallocate swap area [pager_dropcluster] */
|
|
114
113
|
#define PGO_NOWAIT 0x200 /* do not wait for inode lock */
|
|
115
114
|
|
|
116
115
|
/* page we are not interested in getting */
|
|
@@ -120,8 +119,8 @@ struct uvm_pagerops {
|
|
|
120
119
|
* prototypes
|
|
121
120
|
*/
|
|
122
121
|
|
|
123
|
-
void uvm_pager_dropcluster(struct uvm_object *, struct vm_page
|
|
124
|
-
|
|
122
|
+
void uvm_pager_dropcluster(struct uvm_object *, struct vm_page **,
|
|
123
|
+
int *, int);
|
|
125
124
|
void uvm_pager_init(void);
|
|
126
125
|
int uvm_pager_put(struct uvm_object *, struct vm_page *,
|
|
127
126
|
struct vm_page ***, int *, int, voff_t, voff_t);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: uvm_pmemrange.h,v 1.
|
|
1
|
+
/* $OpenBSD: uvm_pmemrange.h,v 1.20 2026/01/28 21:09:41 deraadt Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) 2009 Ariane van der Steldt <ariane@stack.nl>
|
|
@@ -100,7 +100,6 @@ extern struct uvm_pmalloc nowait_pma; /* [F] */
|
|
|
100
100
|
* uvm_pmalloc flags.
|
|
101
101
|
*/
|
|
102
102
|
#define UVM_PMA_LINKED 0x01 /* uvm_pmalloc is on list */
|
|
103
|
-
#define UVM_PMA_BUSY 0x02 /* entry is busy with fpageq unlocked */
|
|
104
103
|
#define UVM_PMA_FAIL 0x10 /* page daemon cannot free pages */
|
|
105
104
|
#define UVM_PMA_FREED 0x20 /* at least one page in the range was freed */
|
|
106
105
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: uvm_swap.h,v 1.
|
|
1
|
+
/* $OpenBSD: uvm_swap.h,v 1.22 2026/04/11 01:36:23 deraadt Exp $ */
|
|
2
2
|
/* $NetBSD: uvm_swap.h,v 1.5 2000/01/11 06:57:51 chs Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
#ifdef _KERNEL
|
|
39
39
|
|
|
40
|
+
int uvm_swap_dropcluster(struct vm_page **, int, int);
|
|
40
41
|
int uvm_swap_get(struct vm_page *, int, int);
|
|
41
42
|
int uvm_swap_put(int, struct vm_page **, int, int);
|
|
42
43
|
int uvm_swap_alloc(int *, boolean_t);
|
|
@@ -53,6 +54,8 @@ void uvm_swap_initcrypt_all(void);
|
|
|
53
54
|
void uvm_swap_finicrypt_all(void);
|
|
54
55
|
#endif
|
|
55
56
|
|
|
57
|
+
extern volatile int seb_free;
|
|
58
|
+
|
|
56
59
|
#endif /* _KERNEL */
|
|
57
60
|
|
|
58
61
|
#endif /* _UVM_UVM_SWAP_H_ */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: uvm_vnode.h,v 1.
|
|
1
|
+
/* $OpenBSD: uvm_vnode.h,v 1.24 2025/11/10 15:53:06 mpi Exp $ */
|
|
2
2
|
/* $NetBSD: uvm_vnode.h,v 1.9 2000/03/26 20:54:48 kleink Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -72,7 +72,6 @@ struct uvm_vnode {
|
|
|
72
72
|
*/
|
|
73
73
|
#define UVM_VNODE_VALID 0x001 /* we are attached to the vnode */
|
|
74
74
|
#define UVM_VNODE_CANPERSIST 0x002 /* we can persist after ref == 0 */
|
|
75
|
-
#define UVM_VNODE_ALOCK 0x004 /* uvn_attach is locked out */
|
|
76
75
|
#define UVM_VNODE_DYING 0x008 /* final detach/terminate in
|
|
77
76
|
progress */
|
|
78
77
|
#define UVM_VNODE_RELKILL 0x010 /* uvn should be killed by releasepg
|
|
@@ -92,9 +91,9 @@ struct uvm_vnode {
|
|
|
92
91
|
* UVM_VNODE_BLOCKED: any condition that should new processes from
|
|
93
92
|
* touching the vnode [set WANTED and sleep to wait for it to clear]
|
|
94
93
|
*/
|
|
95
|
-
#define UVM_VNODE_BLOCKED (
|
|
94
|
+
#define UVM_VNODE_BLOCKED (UVM_VNODE_DYING|UVM_VNODE_RELKILL)
|
|
96
95
|
|
|
97
|
-
|
|
96
|
+
struct uvm_object *uvn_attach(struct vnode *, vm_prot_t);
|
|
98
97
|
void uvm_vnp_terminate(struct vnode *);
|
|
99
98
|
|
|
100
99
|
#endif /* _UVM_UVM_VNODE_H_ */
|