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

Subversion Repositories or1k_old

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

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

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 *  smb_fs_sb.h
3
 *
4
 *  Copyright (C) 1995 by Paal-Kr. Engstad and Volker Lendecke
5
 *
6
 */
7
 
8
#ifndef _SMB_FS_SB
9
#define _SMB_FS_SB
10
 
11
#include <linux/smb.h>
12
#include <linux/smb_fs_i.h>
13
#include <linux/smb_mount.h>
14
#include <linux/types.h>
15
 
16
#ifdef __KERNEL__
17
 
18
struct smb_server {
19
        enum smb_protocol  protocol;       /* The protocol this
20
                                              connection accepts. */
21
        enum smb_case_hndl case_handling;
22
        struct file *      sock_file;      /* The socket we transfer
23
                                              data on. */
24
        int                lock;           /* To prevent mismatch in
25
                                              protocols. */
26
        struct wait_queue *wait;
27
 
28
        __u32              max_xmit;
29
        char               hostname[256];
30
        word               pid;
31
        word               server_uid;
32
        word               mid;
33
        word               tid;
34
 
35
        struct smb_mount_data m; /* We store the complete information here
36
                                  * to be able to reconnect.
37
                                  */
38
 
39
        unsigned short     rcls; /* The error codes we received */
40
        unsigned short     err;
41
 
42
        __u32              packet_size;
43
        unsigned char *    packet;
44
 
45
        enum smb_conn_state state;
46
        unsigned long reconnect_time; /* The time of the last attempt */
47
 
48
        /* The following are LANMAN 1.0 options transferred to us in
49
           SMBnegprot */
50
        word   secmode;
51
        word   maxmux;
52
        word   maxvcs;
53
        word   blkmode;
54
        dword  sesskey;
55
 
56
        /* We use our on data_ready callback, but need the original one */
57
        void *data_ready;
58
 
59
        /* We do not have unique numbers for files in the smb protocol
60
           like NFS-filehandles. (SMB was designed for DOS, not for
61
           UNIX!) So we have to create our own inode numbers. We keep
62
           a complete path of smb_inode_info's to each active
63
           inode. The inode number is then created by the address of
64
           this structure. */
65
        struct smb_inode_info root;
66
};
67
 
68
/*
69
 * This is the part of the super-block (in memory) for the SMB file system.
70
 */
71
 
72
struct smb_sb_info {
73
        struct smb_server  s_server;
74
        struct smb_dskattr s_attr;
75
};
76
 
77
#endif /* __KERNEL__ */
78
 
79
#endif

powered by: WebSVN 2.1.0

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