blob: 3dfbaa06ce37c31d2c9ad664b76897ad4757cfd3 [file] [log] [blame]
Dan Albert287553d2017-02-16 10:47:51 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ASM_XTALK_XTALK_H
20#define _ASM_XTALK_XTALK_H
21#ifndef __ASSEMBLY__
22typedef char xwidgetnum_t;
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define XWIDGET_NONE -1
25typedef int xwidget_part_num_t;
26#define XWIDGET_PART_NUM_NONE -1
27typedef int xwidget_rev_num_t;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define XWIDGET_REV_NUM_NONE -1
30typedef int xwidget_mfg_num_t;
31#define XWIDGET_MFG_NUM_NONE -1
32typedef struct xtalk_piomap_s *xtalk_piomap_t;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define XIO_NOWHERE (0xFFFFFFFFFFFFFFFFull)
35#define XIO_ADDR_BITS (0x0000FFFFFFFFFFFFull)
36#define XIO_PORT_BITS (0xF000000000000000ull)
37#define XIO_PORT_SHIFT (60)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define XIO_PACKED(x) (((x)&XIO_PORT_BITS) != 0)
40#define XIO_ADDR(x) ((x)&XIO_ADDR_BITS)
41#define XIO_PORT(x) ((xwidgetnum_t)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT))
42#define XIO_PACK(p, o) ((((uint64_t)(p))<<XIO_PORT_SHIFT) | ((o)&XIO_ADDR_BITS))
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#endif
45#endif