Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
27 lines
629 B
C
27 lines
629 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __nosy_user_h
|
|
#define __nosy_user_h
|
|
|
|
#include <linux/ioctl.h>
|
|
#include <linux/types.h>
|
|
|
|
#define NOSY_IOC_GET_STATS _IOR('&', 0, struct nosy_stats)
|
|
#define NOSY_IOC_START _IO('&', 1)
|
|
#define NOSY_IOC_STOP _IO('&', 2)
|
|
#define NOSY_IOC_FILTER _IOW('&', 2, __u32)
|
|
|
|
struct nosy_stats {
|
|
__u32 total_packet_count;
|
|
__u32 lost_packet_count;
|
|
};
|
|
|
|
/*
|
|
* Format of packets returned from the kernel driver:
|
|
*
|
|
* quadlet with timestamp (microseconds, CPU endian)
|
|
* quadlet-padded packet data... (little endian)
|
|
* quadlet with ack (little endian)
|
|
*/
|
|
|
|
#endif /* __nosy_user_h */
|