source: trunk/athena/bin/attach/rvdlib.h @ 3274

Revision 3274, 1.4 KB checked in by jfc, 34 years ago (diff)
Initial revision
Line 
1/*
2 * $Header: /afs/dev.mit.edu/source/repository/athena/bin/attach/rvdlib.h,v 1.1 1990-07-16 08:01:33 jfc Exp $
3 * $Author: jfc $
4 * $Source: /afs/dev.mit.edu/source/repository/athena/bin/attach/rvdlib.h,v $
5 */
6#ifndef _RVDLIB_H_
7#define _RVDLIB_H_
8
9#include <netinet/rvdconst.h>
10#define RVDETAB         0100    /* can't read rvdtab */
11#define RVDEARGN        0101    /* too few args */
12#define RVDENOENT       0102    /* pack not found */
13#define RVDEUP          0103    /* already spunup */
14#define RVDEDOWN        0104    /* already spundown */
15#define RVDENOTAVAIL    0105    /* pack not available */
16
17#include <machineio/vdreg.h>
18
19#define RVD_DEV VD_NAME_LEN     /* max block device name */
20#define RVD_PW  VD_CAPAB_LEN    /* max capability chars */
21#define RVD_NAM VD_NAME_LEN     /* max pack name */
22
23#define RVD_TIMEOUT     3       /* timeout on each attempt (secs) */
24#define RVD_XMIT        5       /* number of retransmits */
25#define RVD_RETRY       0       /* number of spinup retries */
26#define RVD_INTERVAL    60      /* retry interval */
27
28#define RVD_MODES       "RrXx"
29#define RVD_RD_HARD     'R'
30#define RVD_RD  'r'
31#define RVD_EX_HARD     'X'
32#define RVD_EX  'x'
33#define RVD_SH_HARD     'S'
34#define RVD_SH  's'
35
36#define RVDGETM "/etc/athena/rvdgetm"
37#define RVD_GETM "/etc/athena/rvdgetm","rvdgetm"
38#define RVD_GETMOTD "operation=get_message\n"
39
40#define vdnam(_d_,_n_)        (((void)sprintf((_d_),"/dev/vd%da",(_n_))),_d_)
41
42#define rvdnam(_d_,_n_)       (((void)sprintf((_d_),"/dev/rvd%da",(_n_))),_d_)
43
44#define VDCONTROL "/dev/rvdcontrol"
45#endif
Note: See TracBrowser for help on using the repository browser.