Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / i386-pc / exec / shutdowna.c
blobe661d66ddf288794d5beee94526c4b00aac56521
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id: coldreboot.c 18441 2003-07-07 20:01:00Z hkiel $
5 Desc: ShutdownA() - Shut down the operating system.
6 Lang: english
7 */
9 #include <asm/io.h>
10 #include <exec/tasks.h>
12 /*****************************************************************************
14 NAME */
15 #include <proto/exec.h>
17 AROS_LH1(ULONG, ShutdownA,
19 /* SYNOPSIS */
20 AROS_LHA(ULONG, action, D0),
22 /* LOCATION */
23 struct ExecBase *, SysBase, 173, Exec)
25 /* FUNCTION
26 This function will shut down the operating system.
28 INPUTS
29 action - what to do:
30 * SD_ACTION_POWEROFF - power off the machine.
31 * SD_ACTION_COLDREBOOT - cold reboot the machine (not only AROS).
33 RESULT
34 This function does not return in case of success. Otherwise is returns
35 zero.
37 NOTES
38 It can be quite harmful to call this function. It may be possible that
39 you will lose data from other tasks not having saved, or disk buffers
40 not being flushed. Plus you could annoy the (other) users.
42 EXAMPLE
44 BUGS
46 SEE ALSO
47 ColdReboot()
49 ******************************************************************************/
51 AROS_LIBFUNC_INIT
53 if (action == SD_ACTION_COLDREBOOT)
54 outb(0xFE, 0x64);
55 return 0;
57 AROS_LIBFUNC_EXIT