mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-08 14:54:42 +00:00
* Add missing Linux headers. Closes #9837 * Update existing headers to latest Linux. * Consolidate headers that are the same for multiple Zig target CPU architectures. For example, Linux has only an x86 directory for both x86_64 and x86 CPU architectures. Now Zig only ships an x86 directory for Linux headers, and will emit the proper corresponding -isystem flags. * tools/update-linux-headers.zig is now available for upgrading to newer Linux headers, and the update process is now documented on the wiki.
31 lines
No EOL
877 B
C
Vendored
31 lines
No EOL
877 B
C
Vendored
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/*
|
|
* pcitest.h - PCI test uapi defines
|
|
*
|
|
* Copyright (C) 2017 Texas Instruments
|
|
* Author: Kishon Vijay Abraham I <kishon@ti.com>
|
|
*
|
|
*/
|
|
|
|
#ifndef __UAPI_LINUX_PCITEST_H
|
|
#define __UAPI_LINUX_PCITEST_H
|
|
|
|
#define PCITEST_BAR _IO('P', 0x1)
|
|
#define PCITEST_LEGACY_IRQ _IO('P', 0x2)
|
|
#define PCITEST_MSI _IOW('P', 0x3, int)
|
|
#define PCITEST_WRITE _IOW('P', 0x4, unsigned long)
|
|
#define PCITEST_READ _IOW('P', 0x5, unsigned long)
|
|
#define PCITEST_COPY _IOW('P', 0x6, unsigned long)
|
|
#define PCITEST_MSIX _IOW('P', 0x7, int)
|
|
#define PCITEST_SET_IRQTYPE _IOW('P', 0x8, int)
|
|
#define PCITEST_GET_IRQTYPE _IO('P', 0x9)
|
|
#define PCITEST_CLEAR_IRQ _IO('P', 0x10)
|
|
|
|
#define PCITEST_FLAGS_USE_DMA 0x00000001
|
|
|
|
struct pci_endpoint_test_xfer_param {
|
|
unsigned long size;
|
|
unsigned char flags;
|
|
};
|
|
|
|
#endif /* __UAPI_LINUX_PCITEST_H */ |