opnsense-src/sys/compat/linuxkpi/common/include/linux
Bjoern A. Zeeb a96486531b LinuxKPI: pci: use unsigned int for vendor/device arguments
Linux drivers may pass a typed PCI_ANY_ID (-1U) in which then leads
to a warning that the value gets truncated.  Switch argument types
to unsigned int (or uint32_t as we use in struct pci_device_id) to
avoid the problem.

Sponsored by:	The FreeBSD Foundation
Discussed in:	D50008
MFC after:	3 days
Reviewed by:	emaste
Differential Revision: https://reviews.freebsd.org/D51652
2025-07-31 17:37:54 +00:00
..
device LinuxKPI: add general module_driver(), use it for module_pci_driver() 2024-09-05 12:46:21 +00:00
sched
soc mt76: update Mediatek's mt76 driver 2025-05-04 22:55:08 +00:00
acpi.h LinuxKPI: Add acpi_dev_get_first_match_dev and acpi_device_handle 2024-07-21 16:09:37 +03:00
acpi_amd_wbrf.h linuxkpi: Add <linux/acpi_amd_wbrf.h> 2025-04-07 19:43:06 +02:00
agp_backend.h linuxkpi: Add linux/agp_backend.h 2023-04-04 11:49:48 +02:00
anon_inodes.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
aperture.h LinuxKPI: update linuxkpi_video to Linux 6.6 2024-08-07 23:38:38 +03:00
apple-gmux.h LinuxKPI: Add linux/apple-gmux.h 2023-12-24 11:20:00 +03:00
atomic.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
average.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
backlight.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
bcd.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
bitfield.h LinuxKPI: add FIELD_PREP_CONST() 2024-05-21 23:27:10 +00:00
bitmap.h LinuxKPI: Constify src parameter of bitmap_copy 2023-12-24 15:48:06 +03:00
bitops.h linuxkpi: Remove incorrect + 1 from HWEIGHT* macros 2025-06-24 18:42:16 -04:00
bottom_half.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
bsearch.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
build_bug.h linuxkpi: Annotate an unused variable as such 2023-12-27 10:11:33 -05:00
cache.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
capability.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
cc_platform.h linuxkpi: cc_platform: Add CC_ATTR_GUEST_MEM_ENCRYPT 2025-02-11 09:27:48 +01:00
cdev.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
cec.h linuxkpi: Add <linux/cec.h> 2025-01-31 17:00:42 +01:00
cgroup.h linuxkpi: Add several headers to reproduce namespace pollution 2025-01-31 17:00:49 +01:00
circ_buf.h
cleanup.h LinuxKPI: add cleanup.h for guard DEFINE_GUARD/guard. 2024-10-14 17:45:42 +00:00
clocksource.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
compat.h LinuxKPI: Allow kmalloc to be called when FPU protection is enabled 2024-02-11 01:01:50 +03:00
compiler.h cdefs: Add __deprecated 2024-10-15 15:05:49 -06:00
completion.h linuxkpi: Introduce a properly typed jiffies 2025-04-29 13:53:40 +00:00
console.h
container_of.h LinuxKPI: add container_of_const() 2025-04-24 22:13:54 +00:00
cpu.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
cpufeature.h linuxkpi: Document why <linux/cpufeaure.h> has an include commentted out 2025-03-21 19:46:35 +01:00
crc32.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
dcache.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
debugfs.h lindebugfs: Add debugfs_create_str() 2025-04-13 11:50:14 +02:00
delay.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
devcoredump.h LinuxKPI: add _devcd_free_sgtable() to devcoredump.h 2025-05-09 19:45:10 +00:00
device.h LinuxKPI: device.h add (*shutdown) 2025-07-04 03:22:22 +00:00
dma-attrs.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
dma-buf-map.h
dma-mapping.h LinuxKPI: Implement dma_map_resource/dma_unmap_resource functions 2025-06-03 18:35:09 +00:00
dmapool.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
dmi.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
dynamic_debug.h LinuxKPI: Add linux/dynamic_debug.h header 2023-12-24 11:20:00 +03:00
efi.h sys: make the kernel metadata pointer global 2025-01-24 14:25:51 -07:00
err.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
errno.h LinuxKPI: add ENAVAIL error code 2024-08-31 21:34:01 +00:00
etherdevice.h LinuxKPI: add is_unicast_ether_addr() 2025-05-05 10:44:22 +00:00
ethtool.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
eventpoll.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
export.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
file.h kern: Make fileops and filterops tables const where possible 2024-11-26 21:04:21 +00:00
firmware.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
fs.h linuxkpi: Add show_fdinfo() to struct file_operations 2025-04-07 19:35:14 +02:00
fwnode.h linuxkpi: Declare struct fwnode_handle in <linux/fwnode.h> 2023-02-14 23:01:06 +01:00
gcd.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gfp.h linuxkpi: Add folio and folio_batch APIs 2025-05-12 19:08:03 +02:00
gpf.h LinuxKPI: Remove linux/sched.h include from linux/kernel.h header 2024-06-26 23:47:12 +03:00
hardirq.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
hash.h
hashtable.h linuxkpi: remove invalid KASSERT from hash_add_rcu 2024-01-29 11:40:17 -05:00
hdmi.h LinuxKPI: update linuxkpi_video to Linux 6.6 2024-08-07 23:38:38 +03:00
highmem.h vm: retire vm_page_lock() 2025-06-11 15:19:41 -05:00
hrtimer.h linuxkpi: Include <linux/rbtree.h> from <linux/hrtimer.h> and <linux/mm_types.h> 2023-11-29 19:54:48 +01:00
i2c-algo-bit.h
i2c.h linuxkpi: Add i2c_adapter_quirks support 2023-02-13 22:09:31 +01:00
idr.h linuxkpi: Add idr.h -> radix-tree.h -> rcupdate.h includes 2025-01-31 17:00:46 +01:00
ieee80211.h net80211: LinuxKPI: migrate HE defines to net80211, put correct values 2025-06-09 21:44:26 +00:00
if_arp.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
if_ether.h LinuxKPI: add eth_hdr() 2024-08-31 21:35:02 +00:00
if_vlan.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
in.h sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
in6.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
inetdevice.h
interrupt.h kern/intr: redeclare intr_setaffinity()'s third arg constant 2024-05-09 17:14:35 -06:00
interval_tree.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
interval_tree_generic.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
io-64-nonatomic-lo-hi.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
io-mapping.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
io.h linuxkpi: Unify definition of outb() 2025-01-31 17:00:48 +01:00
ioctl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
iommu.h linuxkpi: Add <linux/iommu.h> 2023-03-20 21:47:36 +01:00
iopoll.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
ioport.h LinuxKPI: Add linux/ioport.h header 2023-12-24 11:20:00 +03:00
iosys-map.h LinuxKPI: Add linux/iosys-map.h header 2023-12-24 11:19:58 +03:00
ip.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
irq_work.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
irqdomain.h LinuxKPI: Add some header pollution and dummy headers 2023-12-24 11:19:58 +03:00
irqreturn.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
jhash.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
jiffies.h linuxkpi: Fix up jiffies handling 2025-05-12 14:08:39 +00:00
jump_label.h
kconfig.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
kdev_t.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
kernel.h LinuxKPI: Remove stray semicolons 2024-10-24 23:04:48 +08:00
kernel_stat.h linuxkpi: Add several headers to reproduce namespace pollution 2025-01-31 17:00:49 +01:00
kfifo.h
kmemleak.h
kmod.h machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
kobject.h machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
kref.h linuxkpi: refcount: Use atomic_t directly 2024-05-16 09:40:46 +02:00
kstrtox.h linuxkpi: Add kstrtou32() 2025-01-31 17:00:47 +01:00
kthread.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
ktime.h LinuxKPI: add ktime_get_boottime_seconds() 2025-05-09 19:45:10 +00:00
leds.h LinuxKPI: extend struct and enum for leds 2025-04-24 22:13:54 +00:00
limits.h LinuxKPI: Move [SU](8|16|32|64)_(MAX|MIN) defines to linux/limits.h 2024-04-08 09:47:42 +03:00
list.h linuxkpi: Add list_for_each_rcu() 2025-03-20 20:43:44 +01:00
llist.h
lockdep.h LinuxKPI: lockdep fix #includes 2024-11-02 01:24:42 +00:00
log2.h log2: move log2 functions from linuxkpi to libkern 2024-06-24 02:00:31 -05:00
math.h linuxkpi: Correct DIV_ROUND_DOWN_ULL 2025-03-12 13:43:08 -04:00
math64.h linuxkpi: Define div64_ul() as a synonym to div64_u64() 2025-06-24 00:07:56 +02:00
media-bus-format.h
mhi.h LinuxKPI: add more fields to mhi.h 2024-09-13 00:23:35 +00:00
minmax.h LinuxKPI: Add min_not_zero() to linux/minmax.h 2024-06-06 23:42:06 +03:00
miscdevice.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mm.h vm: retire vm_page_lock() 2025-06-11 15:19:41 -05:00
mm_types.h linuxkpi: Add folio and folio_batch APIs 2025-05-12 19:08:03 +02:00
mman.h
mmap_lock.h
mmu_context.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mmu_notifier.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mmzone.h linuxkpi: Define MAX_PAGE_ORDER and NR_PAGE_ORDERS 2025-03-29 16:18:21 +01:00
mod_devicetable.h LinuxKPI: Add ACPI_ID_LEN const to linux/mod_devicetable.h 2024-04-08 09:47:43 +03:00
module.h linuxkpi: Provide a non-NULL value for THIS_MODULE 2024-05-16 10:36:36 -07:00
moduleparam.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mutex.h LinuxKPI: add cleanup.h to mutex.h 2025-04-24 22:13:54 +00:00
net.h sockets: garbage collect SS_ISCONFIRMING 2024-01-30 10:38:33 -08:00
net_dim.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
netdev_features.h LinuxKPI: netdev features style, annotate, and add %b decoding mask 2025-06-03 18:35:10 +00:00
netdevice.h LinuxKPI: netdevice: add alloc_netdev_dummy() 2024-10-17 13:27:05 +00:00
nl80211.h LinuxKPI: 802.11: fix TKIP RX/TX MIC offsets 2025-04-23 16:24:21 +00:00
nodemask.h linuxkpi: Add num_online_nodes() 2025-01-31 17:00:47 +01:00
nospec.h
notifier.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
numa.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
of.h LinuxKPI: Add some header pollution and dummy headers 2023-12-24 11:19:58 +03:00
overflow.h LinuxKPI: Import vanilla linux/overflow.h 2024-04-08 09:47:42 +03:00
page-flags.h linuxkpi: Add folio and folio_batch APIs 2025-05-12 19:08:03 +02:00
page.h LinuxKPI: Add page_to_virt function 2024-07-21 16:09:01 +03:00
pagemap.h linuxkpi: Add folio and folio_batch APIs 2025-05-12 19:08:03 +02:00
pagevec.h linuxkpi: Add folio and folio_batch APIs 2025-05-12 19:08:03 +02:00
pci.h LinuxKPI: pci: use unsigned int for vendor/device arguments 2025-07-31 17:37:54 +00:00
pci_ids.h LinuxKPI: add ASMEDIA vendor ID for PCI 2025-04-24 22:13:53 +00:00
perf_event.h linuxkpi: Add several headers to reproduce namespace pollution 2025-01-31 17:00:49 +01:00
pfn.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pfn_t.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pid.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
platform_device.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pm.h LinuxKPI: pm: add SET_SYSTEM_SLEEP_PM_OPS() and device_can_wakeup() 2024-06-07 22:57:04 +00:00
pm_qos.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pm_runtime.h linuxkpi: Add pm_runtime_get_if_active() variant from Linux 6.9 2025-06-24 00:16:04 +02:00
poison.h
poll.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
power_supply.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
preempt.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
prefetch.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
printk.h LinuxKPI: add seq_hex_dump() 2025-04-12 20:49:19 +00:00
ptp_clock_kernel.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pwm.h linuxkpi: Add pwm_apply_might_sleep() 2025-03-29 16:18:08 +01:00
qrtr.h ath10k: ath11k: add specific LinuxKPI support 2023-04-23 21:31:07 +00:00
radix-tree.h linuxkpi: Add idr.h -> radix-tree.h -> rcupdate.h includes 2025-01-31 17:00:46 +01:00
random.h LinuxKPI: add get_random_u8() 2024-08-31 21:32:11 +00:00
ratelimit.h
rbtree.h LinuxKPI: Add rb_add_cached function 2024-06-26 23:43:16 +03:00
rculist.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
rcupdate.h LinuxKPI: update rcu_dereference_*() and lockdep_is_held() 2024-10-23 01:43:09 +00:00
reboot.h
ref_tracker.h linuxkpi: Add <linux/ref_tracker.h> 2025-04-12 12:34:17 +02:00
refcount.h linuxkpi: refcount: Use atomic_t directly 2024-05-16 09:40:46 +02:00
rhashtable.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
rwlock.h linuxkpi: rwlock: Fix rwlock_init 2024-05-17 07:59:02 +02:00
rwsem.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
scatterlist.h linuxkpi: Add folio and folio_batch APIs 2025-05-12 19:08:03 +02:00
sched.h linuxkpi: Introduce a properly typed jiffies 2025-04-29 13:53:40 +00:00
semaphore.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
seq_file.h LinuxKPI: add seq_hex_dump() 2025-04-12 20:49:19 +00:00
seqlock.h atomics: Constify loads: Remove now superfluous uses of DECONST() 2025-01-20 16:49:52 +01:00
shmem_fs.h linuxkpi: Add folio and folio_batch APIs 2025-05-12 19:08:03 +02:00
shrinker.h linuxkpi: Add shrinker_alloc() and shrinker_free() 2025-02-19 21:39:46 +01:00
sizes.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
skbuff.h LinuxKPI: skbuff: add dummy skb_copy_header() 2025-06-03 18:35:10 +00:00
slab.h LinuxKPI: Have kvzalloc() rely on kvmalloc(), not kmalloc() 2025-07-13 15:46:49 +09:00
smp.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
socket.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
sort.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
spinlock.h linuxkpi: Add local_irq_{save,restore}() 2025-04-07 19:36:12 +02:00
srcu.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
stackdepot.h
stdarg.h machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
stddef.h LinuxKPI: add struct_group_tagged() 2025-05-28 10:42:58 +00:00
string.h linuxkpi: Add strim() 2025-03-20 20:43:44 +01:00
string_helpers.h LinuxKPI: Add str_on_off and other helpers to linux/string_helpers.h 2023-12-24 11:19:58 +03:00
stringify.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
suspend.h linuxkpi: Add more suspend defines 2023-02-17 14:50:58 +01:00
swap.h linuxkpi: Add folio and folio_batch APIs 2025-05-12 19:08:03 +02:00
sysfs.h LinuxKPI: sysfs: implement sysfs_match_string() 2025-04-24 22:13:54 +00:00
tcp.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
time.h LinuxKPI: define time64_t 2025-04-27 19:03:42 +00:00
timer.h linuxkpi: Introduce a properly typed jiffies 2025-04-29 13:53:40 +00:00
tracepoint.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
typecheck.h
types.h LinuxKPI: add type for __wsum 2025-04-22 23:42:44 +00:00
uaccess.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
udp.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
units.h linuxkpi: Add <linux/units.h> 2025-03-20 20:43:44 +01:00
usb.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
utsname.h LinuxKPI: utsname.h add missing SPDX-License-Identifier 2024-04-19 18:23:12 +00:00
uuid.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vgaarb.h linuxkpi: Update vga_client_register() and add vga_client_unregister() 2023-02-13 22:09:31 +01:00
vmalloc.h LinuxKPI: Import vanilla linux/overflow.h 2024-04-08 09:47:42 +03:00
wait.h linuxkpi: Add woken_wake_function() and wait_woken() 2025-05-12 19:08:02 +02:00
wait_bit.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
workqueue.h linuxkpi: Fix up jiffies handling 2025-05-12 14:08:39 +00:00
ww_mutex.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
xarray.h linuxkpi: Use same field names in struct xarray as Linux 2025-01-31 17:00:48 +01:00