home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / ramd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.6 KB  |  55 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8. /*
  9.  * Copyright 1983,1984,1986 Intel Corporation
  10.  *
  11.  *         INTEL CORPORATION PROPRIETARY INFORMATION
  12.  *
  13.  *    This software is supplied under the terms of a license 
  14.  *    agreement or nondisclosure agreement with Intel Corpo-
  15.  *    ration and may not be copied or disclosed except in
  16.  *    accordance with the terms of that agreement.
  17.  */
  18.  
  19. /*
  20.  * RAM disk device driver include file.
  21.  *
  22.  *    For UNIX 386, the physical address and size must
  23.  *    be of 4k granularity.
  24.  */
  25.  
  26. #ident    "@(#)head.sys:ramd.h    1.2"
  27. struct    ramdcfg    {
  28.         paddr_t    ramd_paddr;    /* phys address of first blk */
  29.         ulong    ramd_size;    /* Size of disk in bytes */
  30.         ushort    ramd_flag;    /* see defs below */
  31. };
  32.  
  33. struct    ramddev    {
  34.         caddr_t    ramd_addr;    /* Kernel virtual addr */
  35.         ushort    ramd_state;    /* Exists??  Open?? */
  36. };
  37.  
  38. #define    TPATTERN    0xAAAA
  39. #define RAMD_GRAN    0x1000        /* Grannularity for ram disk
  40.                      * starting address and size
  41.                      */
  42. /* Flag definitions for ramd_flags */
  43. #define RAMD_NO_INIT    00        /* Do not pre-zero the RAM Disk */
  44. #define RAMD_ZERO_FILL    01        /* Zero fill the RAM Disk at init */
  45.  
  46. /* State flags for the RAM Disks */
  47. #define RAMD_CFGERR    01        /* Disk configuration is not usable */
  48. #define RAMD_ALIVE    02        /* Disk is present */
  49. #define RAMD_OPEN    04        /* Disk is open */
  50.  
  51. extern struct ramdcfg ramdcfg[];
  52. extern struct ramddev ramddev[];
  53. extern struct buf     ramd_buf[];
  54. extern int          numramd  ;
  55.