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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [linux/] [ncp_mount.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 *  ncp_mount.h
3
 *
4
 *  Copyright (C) 1995, 1996 by Volker Lendecke
5
 *
6
 */
7
 
8
#ifndef _LINUX_NCP_MOUNT_H
9
#define _LINUX_NCP_MOUNT_H
10
 
11
#include <linux/types.h>
12
#include <linux/ipx.h>
13
#include <linux/ncp.h>
14
#include <linux/ncp_fs_i.h>
15
 
16
#define NCP_MOUNT_VERSION 2
17
 
18
#define NCP_USERNAME_LEN (NCP_BINDERY_NAME_LEN)
19
#define NCP_PASSWORD_LEN 20
20
 
21
/* Values for flags */
22
#define NCP_MOUNT_SOFT 0x0001
23
#define NCP_MOUNT_INTR 0x0002
24
#define NCP_MOUNT_STRONG 0x0004   /* enable delete/rename of r/o files */
25
#define NCP_MOUNT_NO_OS2 0x0008
26
#define NCP_MOUNT_NO_NFS 0x0010
27
 
28
struct ncp_mount_data {
29
        int version;
30
        unsigned int ncp_fd;    /* The socket to the ncp port */
31
        unsigned int wdog_fd;   /* Watchdog packets come here */
32
        unsigned int message_fd; /* Message notifications come here */
33
        __kernel_uid_t mounted_uid;      /* Who may umount() this filesystem? */
34
 
35
        struct sockaddr_ipx serv_addr;
36
        unsigned char server_name[NCP_BINDERY_NAME_LEN];
37
 
38
        unsigned char mount_point[PATH_MAX+1];
39
        unsigned char mounted_vol[NCP_VOLNAME_LEN+1];
40
 
41
        unsigned int time_out;  /* How long should I wait after
42
                                   sending a NCP request? */
43
        unsigned int retry_count; /* And how often should I retry? */
44
        unsigned int flags;
45
 
46
        __kernel_uid_t uid;
47
        __kernel_gid_t gid;
48
        __kernel_mode_t file_mode;
49
        __kernel_mode_t dir_mode;
50
};
51
 
52
#endif

powered by: WebSVN 2.1.0

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