OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [fs/] [ncpfs/] [ncplib_kernel.h] - Blame information for rev 1628

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1628 jcastillo
/*
2
 *  ncplib_kernel.h
3
 *
4
 *  Copyright (C) 1995, 1996 by Volker Lendecke
5
 *
6
 */
7
 
8
#ifndef _NCPLIB_H
9
#define _NCPLIB_H
10
 
11
#include <linux/config.h>
12
 
13
#include <linux/fs.h>
14
#include <linux/ncp.h>
15
#include <linux/ncp_fs.h>
16
#include <linux/ncp_fs_sb.h>
17
#include <linux/types.h>
18
#include <linux/errno.h>
19
#include <linux/malloc.h>
20
#include <linux/stat.h>
21
#include <linux/fcntl.h>
22
#include <asm/segment.h>
23
#include <asm/string.h>
24
 
25
#include <linux/ncp.h>
26
 
27
int
28
ncp_negotiate_size_and_options(struct ncp_server *server, int size,
29
                          int options, int *ret_size, int *ret_options);
30
int
31
ncp_negotiate_buffersize(struct ncp_server *server, int size,
32
                         int *target);
33
int
34
ncp_get_encryption_key(struct ncp_server *server,
35
                       char *target);
36
int
37
ncp_get_bindery_object_id(struct ncp_server *server,
38
                          int object_type, char *object_name,
39
                          struct ncp_bindery_object *target);
40
int
41
ncp_login_encrypted(struct ncp_server *server,
42
                    struct ncp_bindery_object *object,
43
                    unsigned char *key,
44
                    unsigned char *passwd);
45
int
46
ncp_login_user(struct ncp_server *server,
47
               unsigned char *username,
48
               unsigned char *password);
49
int
50
ncp_get_volume_info_with_number(struct ncp_server *server, int n,
51
                                struct ncp_volume_info *target);
52
 
53
int
54
ncp_get_volume_number(struct ncp_server *server, const char *name,
55
                      int *target);
56
 
57
int
58
ncp_file_search_init(struct ncp_server *server,
59
                     int dir_handle, const char *path,
60
                     struct ncp_filesearch_info *target);
61
 
62
int
63
ncp_file_search_continue(struct ncp_server *server,
64
                         struct ncp_filesearch_info *fsinfo,
65
                         int attributes, const char *path,
66
                         struct ncp_file_info *target);
67
 
68
int
69
ncp_get_finfo(struct ncp_server *server,
70
              int dir_handle, const char *path, const char *name,
71
              struct ncp_file_info *target);
72
 
73
int
74
ncp_open_file(struct ncp_server *server,
75
              int dir_handle, const char *path,
76
              int attr, int access,
77
              struct ncp_file_info *target);
78
int
79
ncp_close_file(struct ncp_server *server, const char *file_id);
80
 
81
int
82
ncp_create_newfile(struct ncp_server *server,
83
                   int dir_handle, const char *path,
84
                   int attr,
85
                   struct ncp_file_info *target);
86
 
87
int
88
ncp_create_file(struct ncp_server *server,
89
                int dir_handle, const char *path,
90
                int attr,
91
                struct ncp_file_info *target);
92
 
93
int
94
ncp_erase_file(struct ncp_server *server,
95
               int dir_handle, const char *path,
96
               int attr);
97
 
98
int
99
ncp_rename_file(struct ncp_server *server,
100
                int old_handle, const char *old_path,
101
                int attr,
102
                int new_handle, const char *new_path);
103
 
104
int
105
ncp_create_directory(struct ncp_server *server,
106
                     int dir_handle, const char *path,
107
                     int inherit_mask);
108
 
109
int
110
ncp_delete_directory(struct ncp_server *server,
111
                     int dir_handle, const char *path);
112
 
113
int
114
ncp_rename_directory(struct ncp_server *server,
115
                     int dir_handle,
116
                     const char *old_path, const char *new_path);
117
 
118
int
119
ncp_read(struct ncp_server *server, const char *file_id,
120
         __u32 offset, __u16 to_read,
121
         char *target, int *bytes_read);
122
 
123
int
124
ncp_write(struct ncp_server *server, const char *file_id,
125
          __u32 offset, __u16 to_write,
126
          const char *source, int *bytes_written);
127
 
128
int
129
ncp_obtain_info(struct ncp_server *server,
130
                __u8 vol_num, __u32 dir_base,
131
                char *path, /* At most 1 component */
132
                struct nw_info_struct *target);
133
 
134
int
135
ncp_lookup_volume(struct ncp_server *server,
136
                  char *volname,
137
                  struct nw_info_struct *target);
138
 
139
 
140
int
141
ncp_modify_file_or_subdir_dos_info(struct ncp_server *server,
142
                                   struct nw_info_struct *file,
143
                                   __u32 info_mask,
144
                                   struct nw_modify_dos_info *info);
145
 
146
int
147
ncp_del_file_or_subdir(struct ncp_server *server,
148
                       struct nw_info_struct *dir, char *name);
149
 
150
int
151
ncp_open_create_file_or_subdir(struct ncp_server *server,
152
                               struct nw_info_struct *dir, char *name,
153
                               int open_create_mode,
154
                               __u32 create_attributes,
155
                               int desired_acc_rights,
156
                               struct nw_file_info *target);
157
 
158
int
159
ncp_initialize_search(struct ncp_server *server,
160
                      struct nw_info_struct *dir,
161
                      struct nw_search_sequence *target);
162
 
163
int
164
ncp_search_for_file_or_subdir(struct ncp_server *server,
165
                              struct nw_search_sequence *seq,
166
                              struct nw_info_struct *target);
167
 
168
int
169
ncp_ren_or_mov_file_or_subdir(struct ncp_server *server,
170
                              struct nw_info_struct *old_dir, char *old_name,
171
                              struct nw_info_struct *new_dir, char *new_name);
172
 
173
#ifdef CONFIG_NCPFS_IOCTL_LOCKING
174
int
175
ncp_LogPhysicalRecord(struct ncp_server *server,
176
                      const char *file_id, __u8 locktype,
177
                      __u32 offset, __u32 length, __u16 timeout);
178
 
179
int
180
ncp_ClearPhysicalRecord(struct ncp_server *server,
181
                        const char *file_id,
182
                        __u32 offset, __u32 length);
183
#endif  /* CONFIG_NCPFS_IOCTL_LOCKING */
184
 
185
#ifdef CONFIG_NCPFS_MOUNT_SUBDIR
186
int
187
ncp_mount_subdir(struct ncp_server* server, __u8 volNumber,
188
                 __u8 srcNS, __u32 srcDirEntNum);
189
#endif  /* CONFIG_NCPFS_MOUNT_SUBDIR */
190
 
191
#endif /* _NCPLIB_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.