root/include/linux/ncp_fs_sb.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  *  ncp_fs_sb.h
   3  *
   4  *  Copyright (C) 1995 by Volker Lendecke
   5  *
   6  */
   7 
   8 #ifndef _NCP_FS_SB
   9 #define _NCP_FS_SB
  10 
  11 #include <linux/ncp_mount.h>
  12 #include <linux/types.h>
  13 
  14 #ifdef __KERNEL__
  15 
  16 #define NCP_DEFAULT_BUFSIZE 1024
  17 
  18 struct ncp_server {
  19 
  20         struct ncp_mount_data m; /* Nearly all of the mount data is of
  21                                     interest for us later, so we store
  22                                     it completely. */
  23 
  24         struct file *ncp_filp;  /* File pointer to ncp socket */
  25 
  26         struct file *wdog_filp; /* File pointer to wdog socket */
  27         void *data_ready;       /* The wdog socket gets a new
  28                                    data_ready callback. We store the
  29                                    old one for checking purposes and
  30                                    to reset it on unmounting. */
  31 
  32         u8         sequence;
  33         u8         task;
  34         u16        connection;  /* Remote connection number */
  35 
  36         u8         completion;  /* Status message from server */
  37         u8         conn_status; /* Bit 4 = 1 ==> Server going down, no
  38                                    requests allowed anymore */
  39 
  40         int        buffer_size; /* Negotiated bufsize */
  41 
  42         int        reply_size;  /* Size of last reply */
  43 
  44         int        packet_size;
  45         unsigned char *packet;  /* Here we prepare requests and
  46                                    receive replies */
  47 
  48         int        lock;        /* To prevent mismatch in protocols. */
  49         struct wait_queue *wait;
  50 
  51         int        current_size; /* for packet preparation */
  52         int        has_subfunction;
  53         int        ncp_reply_size;
  54 
  55         struct ncp_inode_info root;
  56         char       root_path;   /* '\0' */
  57 };
  58 
  59 #endif /* __KERNEL__ */
  60 
  61 #endif

/* [previous][next][first][last][top][bottom][index][help] */