1/****************************************************************************
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 _LINUX_NCP_H
20#define _LINUX_NCP_H
21#include <linux/types.h>
22#define NCP_PTYPE (0x11)
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define NCP_PORT (0x0451)
25#define NCP_ALLOC_SLOT_REQUEST (0x1111)
26#define NCP_REQUEST (0x2222)
27#define NCP_DEALLOC_SLOT_REQUEST (0x5555)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29struct ncp_request_header {
30 __u16 type;
31 __u8 sequence;
32 __u8 conn_low;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 __u8 task;
35 __u8 conn_high;
36 __u8 function;
37 __u8 data[0];
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39} __attribute__((packed));
40#define NCP_REPLY (0x3333)
41#define NCP_WATCHDOG (0x3E3E)
42#define NCP_POSITIVE_ACK (0x9999)
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44struct ncp_reply_header {
45 __u16 type;
46 __u8 sequence;
47 __u8 conn_low;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u8 task;
50 __u8 conn_high;
51 __u8 completion_code;
52 __u8 connection_state;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 __u8 data[0];
55} __attribute__((packed));
56#define NCP_VOLNAME_LEN (16)
57#define NCP_NUMBER_OF_VOLUMES (256)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59struct ncp_volume_info {
60 __u32 total_blocks;
61 __u32 free_blocks;
62 __u32 purgeable_blocks;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 __u32 not_yet_purgeable_blocks;
65 __u32 total_dir_entries;
66 __u32 available_dir_entries;
67 __u8 sectors_per_block;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 char volume_name[NCP_VOLNAME_LEN + 1];
70};
71#define AR_READ (cpu_to_le16(1))
72#define AR_WRITE (cpu_to_le16(2))
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define AR_EXCLUSIVE (cpu_to_le16(0x20))
75#define NCP_FILE_ID_LEN 6
76#define NW_NS_DOS 0
77#define NW_NS_MAC 1
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define NW_NS_NFS 2
80#define NW_NS_FTAM 3
81#define NW_NS_OS2 4
82#define RIM_NAME (cpu_to_le32(1))
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define RIM_SPACE_ALLOCATED (cpu_to_le32(2))
85#define RIM_ATTRIBUTES (cpu_to_le32(4))
86#define RIM_DATA_SIZE (cpu_to_le32(8))
87#define RIM_TOTAL_SIZE (cpu_to_le32(0x10))
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define RIM_EXT_ATTR_INFO (cpu_to_le32(0x20))
90#define RIM_ARCHIVE (cpu_to_le32(0x40))
91#define RIM_MODIFY (cpu_to_le32(0x80))
92#define RIM_CREATION (cpu_to_le32(0x100))
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define RIM_OWNING_NAMESPACE (cpu_to_le32(0x200))
95#define RIM_DIRECTORY (cpu_to_le32(0x400))
96#define RIM_RIGHTS (cpu_to_le32(0x800))
97#define RIM_ALL (cpu_to_le32(0xFFF))
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define RIM_COMPRESSED_INFO (cpu_to_le32(0x80000000))
100#define NSIBM_NFS_NAME 0x0001
101#define NSIBM_NFS_MODE 0x0002
102#define NSIBM_NFS_GID 0x0004
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define NSIBM_NFS_NLINKS 0x0008
105#define NSIBM_NFS_RDEV 0x0010
106#define NSIBM_NFS_LINK 0x0020
107#define NSIBM_NFS_CREATED 0x0040
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define NSIBM_NFS_UID 0x0080
110#define NSIBM_NFS_ACSFLAG 0x0100
111#define NSIBM_NFS_MYFLAG 0x0200
112#define OC_MODE_OPEN 0x01
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define OC_MODE_TRUNCATE 0x02
115#define OC_MODE_REPLACE 0x02
116#define OC_MODE_CREATE 0x08
117#define OC_ACTION_NONE 0x00
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define OC_ACTION_OPEN 0x01
120#define OC_ACTION_CREATE 0x02
121#define OC_ACTION_TRUNCATE 0x04
122#define OC_ACTION_REPLACE 0x04
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#ifndef AR_READ_ONLY
125#define AR_READ_ONLY 0x0001
126#define AR_WRITE_ONLY 0x0002
127#define AR_DENY_READ 0x0004
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define AR_DENY_WRITE 0x0008
130#define AR_COMPATIBILITY 0x0010
131#define AR_WRITE_THROUGH 0x0040
132#define AR_OPEN_COMPRESSED 0x0100
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#endif
135struct nw_nfs_info {
136 __u32 mode;
137 __u32 rdev;
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139};
140struct nw_info_struct {
141 __u32 spaceAlloc;
142 __le32 attributes;
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 __u16 flags;
145 __le32 dataStreamSize;
146 __le32 totalStreamSize;
147 __u16 numberOfStreams;
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 __le16 creationTime;
150 __le16 creationDate;
151 __u32 creatorID;
152 __le16 modifyTime;
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 __le16 modifyDate;
155 __u32 modifierID;
156 __le16 lastAccessDate;
157 __u16 archiveTime;
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 __u16 archiveDate;
160 __u32 archiverID;
161 __u16 inheritedRightsMask;
162 __le32 dirEntNum;
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 __le32 DosDirNum;
165 __u32 volNumber;
166 __u32 EADataSize;
167 __u32 EAKeyCount;
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 __u32 EAKeySize;
170 __u32 NSCreator;
171 __u8 nameLen;
172 __u8 entryName[256];
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174} __attribute__((packed));
175#define DM_ATTRIBUTES (cpu_to_le32(0x02))
176#define DM_CREATE_DATE (cpu_to_le32(0x04))
177#define DM_CREATE_TIME (cpu_to_le32(0x08))
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179#define DM_CREATOR_ID (cpu_to_le32(0x10))
180#define DM_ARCHIVE_DATE (cpu_to_le32(0x20))
181#define DM_ARCHIVE_TIME (cpu_to_le32(0x40))
182#define DM_ARCHIVER_ID (cpu_to_le32(0x80))
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184#define DM_MODIFY_DATE (cpu_to_le32(0x0100))
185#define DM_MODIFY_TIME (cpu_to_le32(0x0200))
186#define DM_MODIFIER_ID (cpu_to_le32(0x0400))
187#define DM_LAST_ACCESS_DATE (cpu_to_le32(0x0800))
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189#define DM_INHERITED_RIGHTS_MASK (cpu_to_le32(0x1000))
190#define DM_MAXIMUM_SPACE (cpu_to_le32(0x2000))
191struct nw_modify_dos_info {
192 __le32 attributes;
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194 __le16 creationDate;
195 __le16 creationTime;
196 __u32 creatorID;
197 __le16 modifyDate;
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 __le16 modifyTime;
200 __u32 modifierID;
201 __u16 archiveDate;
202 __u16 archiveTime;
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 __u32 archiverID;
205 __le16 lastAccessDate;
206 __u16 inheritanceGrantMask;
207 __u16 inheritanceRevokeMask;
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 __u32 maximumSpace;
210} __attribute__((packed));
211struct nw_search_sequence {
212 __u8 volNumber;
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214 __u32 dirBase;
215 __u32 sequence;
216} __attribute__((packed));
217#endif
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219