86ec05acc9
Note that the Linux kernel handed over responsibility for most of the socket constants to glibc some time ago. Someone had updated our external/kernel-headers file but not regenerated the bionic headers, so this change copies the missing stuff from the old bionic <linux/socket.h> into <sys/socket.h>. This is what glibc does. I've hacked a few of the other files to #include <sys/socket.h> for backward compatibility, but even so this requires numerous other changes to switch people over from direct inclusion of <linux/...> headers. Change-Id: I0e4af64e631d3cef911a31d90f2f806e058278a0
107 lines
3.6 KiB
C
107 lines
3.6 KiB
C
/****************************************************************************
|
|
****************************************************************************
|
|
***
|
|
*** This header was automatically generated from a Linux kernel header
|
|
*** of the same name, to make information necessary for userspace to
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
*** structures, and macros generated from the original header, and thus,
|
|
*** contains no copyrightable information.
|
|
***
|
|
*** To edit the content of this header, modify the corresponding
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
***
|
|
*** Any manual change here will be lost the next time this script will
|
|
*** be run. You've been warned!
|
|
***
|
|
****************************************************************************
|
|
****************************************************************************/
|
|
#ifndef CAN_GW_H
|
|
#define CAN_GW_H
|
|
#include <linux/types.h>
|
|
#include <linux/can.h>
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
struct rtcanmsg {
|
|
__u8 can_family;
|
|
__u8 gwtype;
|
|
__u16 flags;
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
};
|
|
enum {
|
|
CGW_TYPE_UNSPEC,
|
|
CGW_TYPE_CAN_CAN,
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
__CGW_TYPE_MAX
|
|
};
|
|
#define CGW_TYPE_MAX (__CGW_TYPE_MAX - 1)
|
|
enum {
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
CGW_UNSPEC,
|
|
CGW_MOD_AND,
|
|
CGW_MOD_OR,
|
|
CGW_MOD_XOR,
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
CGW_MOD_SET,
|
|
CGW_CS_XOR,
|
|
CGW_CS_CRC8,
|
|
CGW_HANDLED,
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
CGW_DROPPED,
|
|
CGW_SRC_IF,
|
|
CGW_DST_IF,
|
|
CGW_FILTER,
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
__CGW_MAX
|
|
};
|
|
#define CGW_MAX (__CGW_MAX - 1)
|
|
#define CGW_FLAGS_CAN_ECHO 0x01
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
#define CGW_FLAGS_CAN_SRC_TSTAMP 0x02
|
|
#define CGW_MOD_FUNCS 4
|
|
#define CGW_MOD_ID 0x01
|
|
#define CGW_MOD_DLC 0x02
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
#define CGW_MOD_DATA 0x04
|
|
#define CGW_FRAME_MODS 3
|
|
#define MAX_MODFUNCTIONS (CGW_MOD_FUNCS * CGW_FRAME_MODS)
|
|
struct cgw_frame_mod {
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
struct can_frame cf;
|
|
__u8 modtype;
|
|
} __attribute__((packed));
|
|
#define CGW_MODATTR_LEN sizeof(struct cgw_frame_mod)
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
struct cgw_csum_xor {
|
|
__s8 from_idx;
|
|
__s8 to_idx;
|
|
__s8 result_idx;
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
__u8 init_xor_val;
|
|
} __attribute__((packed));
|
|
struct cgw_csum_crc8 {
|
|
__s8 from_idx;
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
__s8 to_idx;
|
|
__s8 result_idx;
|
|
__u8 init_crc_val;
|
|
__u8 final_xor_val;
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
__u8 crctab[256];
|
|
__u8 profile;
|
|
__u8 profile_data[20];
|
|
} __attribute__((packed));
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
#define CGW_CS_XOR_LEN sizeof(struct cgw_csum_xor)
|
|
#define CGW_CS_CRC8_LEN sizeof(struct cgw_csum_crc8)
|
|
enum {
|
|
CGW_CRC8PRF_UNSPEC,
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
CGW_CRC8PRF_1U8,
|
|
CGW_CRC8PRF_16U8,
|
|
CGW_CRC8PRF_SFFID_XOR,
|
|
__CGW_CRC8PRF_MAX
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
|
};
|
|
#define CGW_CRC8PRF_MAX (__CGW_CRC8PRF_MAX - 1)
|
|
#endif
|