0f79521706
Kernel headers coming from: Git: https://android.googlesource.com/kernel/common/ Branch: android-mainline Tag: android-mainline-6.7 NOTE: The file bionic/libc/kernel/uapi/linux/usb/f_accessory.h was deleted in the 6.7 kernel along with the functionality. However, there is no current replacement. For now keep the file here, but at some point when the new implementation is ready, this file will need to be moved to the places that still need to be backwards compatible. Test: Builds and bionic unit tests pass on raven. Test: Able to log in to an Android GO 32 bit device. Change-Id: Ibf5684ed140616c02bb9464bbd6422a9281a29cf
38 lines
1 KiB
C
38 lines
1 KiB
C
/*
|
|
* This file is auto-generated. Modifications will be lost.
|
|
*
|
|
* See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
|
|
* for more information.
|
|
*/
|
|
#ifndef _UAPI_LINUX_USER_EVENTS_H
|
|
#define _UAPI_LINUX_USER_EVENTS_H
|
|
#include <linux/types.h>
|
|
#include <linux/ioctl.h>
|
|
#define USER_EVENTS_SYSTEM "user_events"
|
|
#define USER_EVENTS_PREFIX "u:"
|
|
#define DYN_LOC(offset,size) ((size) << 16 | (offset))
|
|
enum user_reg_flag {
|
|
USER_EVENT_REG_PERSIST = 1U << 0,
|
|
USER_EVENT_REG_MAX = 1U << 1,
|
|
};
|
|
struct user_reg {
|
|
__u32 size;
|
|
__u8 enable_bit;
|
|
__u8 enable_size;
|
|
__u16 flags;
|
|
__u64 enable_addr;
|
|
__u64 name_args;
|
|
__u32 write_index;
|
|
} __attribute__((__packed__));
|
|
struct user_unreg {
|
|
__u32 size;
|
|
__u8 disable_bit;
|
|
__u8 __reserved;
|
|
__u16 __reserved2;
|
|
__u64 disable_addr;
|
|
} __attribute__((__packed__));
|
|
#define DIAG_IOC_MAGIC '*'
|
|
#define DIAG_IOCSREG _IOWR(DIAG_IOC_MAGIC, 0, struct user_reg *)
|
|
#define DIAG_IOCSDEL _IOW(DIAG_IOC_MAGIC, 1, char *)
|
|
#define DIAG_IOCSUNREG _IOW(DIAG_IOC_MAGIC, 2, struct user_unreg *)
|
|
#endif
|