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

  1. /*
  2.  * $Header: /ax/networking:include/sys/reboot.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/reboot.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    reboot.h,v $
  8.  * Revision 1.1  95/01/11  10:19:38  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.4  88/11/17  02:09:11  keith
  12.  * New definitions for our RISC-OS/RISC-iX world, also it #includes cmos.h
  13.  * since there are relevant definitions in  there as well.
  14.  * 
  15.  * Revision 1.3  88/06/17  20:20:40  beta
  16.  * Acorn Unix initial beta version
  17.  * 
  18.  */
  19. /* @(#)reboot.h    1.2 87/05/15 3.2/4.3NFSSRC */
  20. /*
  21.  * Copyright (c) 1982, 1986 Regents of the University of California.
  22.  * All rights reserved.  The Berkeley software License Agreement
  23.  * specifies the terms and conditions for redistribution.
  24.  *
  25.  *    @(#)reboot.h    7.1 (Berkeley) 6/4/86
  26.  */
  27.  
  28. #ifdef KERNEL
  29. # include "../arm/cmos.h"
  30. #else
  31. # include <dev/cmos.h>
  32. #endif KERNEL
  33.  
  34. /*
  35.  * Arguments to reboot system call.
  36.  * These are used to set up a byte of CMOS ram for the boot program
  37.  * and eventually get returned on next boot for the kernel to give to
  38.  * /etc/init on startup.
  39.  */
  40. #define    RB_AUTOBOOT    0    /* flags for system auto-booting itself */
  41.  
  42. #define    RB_ASKNAME    0x01    /* ask for file name to reboot from */
  43. #define    RB_SINGLE    0x02    /* reboot to single user only */
  44. #define    RB_NOSYNC    0x04    /* dont sync before reboot */
  45. #define    RB_HALT        0x08    /* don't reboot, just halt */
  46. #define    RB_INITNAME    0x10    /* name given for /etc/init */
  47. #define    RB_DFLTROOT    0x20    /* use compiled-in rootdev */
  48.  
  49. #define    RB_PANIC    0    /* reboot due to panic */
  50. #define    RB_BOOT        1    /* reboot due to boot() */
  51.  
  52.  
  53. /*
  54.  * These are the bits defined in the CMOS ram boot control byte which are
  55.  * used by RISC-iX to pass information back to RISC-OS.
  56.  * Also are bits used by RISC-OS to control its prompting behaviour under user
  57.  * request (*fx 162,... ) and to check that RISC-iX boot did actually complete
  58.  * sucessfully.
  59.  * The interpretation of these has changed in RISC-iX Beta 2.3, and is different
  60.  * in A680 kernels. These differences are needed beacaues of interpretation of
  61.  * CMOS ram on a uninitialised machine.
  62.  */
  63. #define RISCiXFailedBoot (1<<6)    /* RISC-iX did not successfully boot. This bit is set by
  64.                  * the RISC-OS boot program each time RISC-iX is booted.
  65.                  * It needs to be cleared before RISC-OS is re-entered.
  66.                  */
  67. #define noRISCOS    (1<<5)    /* RISC-OS does not stop, entry is always to RISCix
  68.                  * If set, the /etc/halt will cause RISC-iX kernel to loop
  69.                  * This is user-configuarable. 
  70.                  */
  71. #define    rebootMULTI    (1<<4)    /* RISC-iX wants RISC-OS to reboot multiuser immediately */
  72. #define    rebootSINGLE    (1<<3)    /* RISC-iX wants RISC-OS to reboot single user immediately */
  73.  
  74. /* EOF reboot.h */
  75.