122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _UAPI__LINUX_N_R3964_H__
2022851890Sopenharmony_ci#define _UAPI__LINUX_N_R3964_H__
2122851890Sopenharmony_ci#define R3964_ENABLE_SIGNALS 0x5301
2222851890Sopenharmony_ci#define R3964_SETPRIORITY 0x5302
2322851890Sopenharmony_ci#define R3964_USE_BCC 0x5303
2422851890Sopenharmony_ci#define R3964_READ_TELEGRAM 0x5304
2522851890Sopenharmony_ci#define R3964_MASTER 0
2622851890Sopenharmony_ci#define R3964_SLAVE 1
2722851890Sopenharmony_ci#define R3964_SIG_ACK 0x0001
2822851890Sopenharmony_ci#define R3964_SIG_DATA 0x0002
2922851890Sopenharmony_ci#define R3964_SIG_ALL 0x000f
3022851890Sopenharmony_ci#define R3964_SIG_NONE 0x0000
3122851890Sopenharmony_ci#define R3964_USE_SIGIO 0x1000
3222851890Sopenharmony_cienum {
3322851890Sopenharmony_ci  R3964_MSG_ACK = 1,
3422851890Sopenharmony_ci  R3964_MSG_DATA
3522851890Sopenharmony_ci};
3622851890Sopenharmony_ci#define R3964_MAX_MSG_COUNT 32
3722851890Sopenharmony_ci#define R3964_OK 0
3822851890Sopenharmony_ci#define R3964_TX_FAIL - 1
3922851890Sopenharmony_ci#define R3964_OVERFLOW - 2
4022851890Sopenharmony_cistruct r3964_client_message {
4122851890Sopenharmony_ci  int msg_id;
4222851890Sopenharmony_ci  int arg;
4322851890Sopenharmony_ci  int error_code;
4422851890Sopenharmony_ci};
4522851890Sopenharmony_ci#define R3964_MTU 256
4622851890Sopenharmony_ci#endif
47