home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / conf < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.8 KB  |  102 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/conf.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/conf.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    conf.h,v $
  8.  * Revision 1.1  95/01/11  10:19:02  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:18:33  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)conf.h    1.3 87/05/15 3.2/4.3NFSSRC */
  16. /*
  17.  * Copyright (c) 1982, 1986 Regents of the University of California.
  18.  * All rights reserved.  The Berkeley software License Agreement
  19.  * specifies the terms and conditions for redistribution.
  20.  *
  21.  *    @(#)conf.h    7.1 (Berkeley) 6/4/86
  22.  */
  23.  
  24. /*
  25.  * Declaration of block device
  26.  * switch. Each entry (row) is
  27.  * the only link between the
  28.  * main unix code and the driver.
  29.  * The initialization of the
  30.  * device switches is in the
  31.  * file conf.c.
  32.  */
  33. struct bdevsw
  34. {
  35.     int    (*d_open)();
  36.     int    (*d_close)();
  37.     int    (*d_strategy)();
  38.     int    (*d_dump)();
  39.     int    (*d_psize)();
  40.     int    d_flags;
  41.     char    d_name[2];
  42. };
  43. #ifdef KERNEL
  44. extern struct    bdevsw bdevsw[];  /* Added extern for specfs routines */
  45. #endif
  46.  
  47. /*
  48.  * Character device switch.
  49.  */
  50. struct cdevsw
  51. {
  52.     int    (*d_open)();
  53.     int    (*d_close)();
  54.     int    (*d_read)();
  55.     int    (*d_write)();
  56.     int    (*d_ioctl)();
  57.     int    (*d_stop)();
  58.     int    (*d_reset)();
  59.     struct tty *d_ttys;
  60.     int    (*d_select)();
  61.     int    (*d_mmap)();
  62.     int    (*d_sectorsize)();
  63. };
  64. #ifdef KERNEL
  65. extern struct    cdevsw cdevsw[];  /* Added extern for specfs routines */
  66. #endif
  67.  
  68. /*
  69.  * tty line control switch.
  70.  */
  71. struct linesw
  72. {
  73.     int    (*l_open)();
  74.     int    (*l_close)();
  75.     int    (*l_read)();
  76.     int    (*l_write)();
  77.     int    (*l_ioctl)();
  78.     int    (*l_rint)();
  79.     int    (*l_rend)();
  80.     int    (*l_meta)();
  81.     int    (*l_start)();
  82.     int    (*l_modem)();
  83. };
  84. #ifdef KERNEL
  85. struct    linesw linesw[];
  86. #endif
  87.  
  88. /*
  89.  * Swap device information
  90.  */
  91. struct swdevt
  92. {
  93.     dev_t    sw_dev;
  94.     int    sw_freed;
  95.     int    sw_nblks;
  96. };
  97. #ifdef KERNEL
  98. struct    swdevt swdevt[];
  99. #endif
  100.  
  101. /* EOF conf.h */
  102.