Reactos
at listview 49 lines 1.1 kB view raw
1/* 2 * PROJECT: ReactOS HAL 3 * LICENSE: BSD - See COPYING.ARM in the top level directory 4 * FILE: hal/halarm/generic/reboot.c 5 * PURPOSE: Reboot Function 6 * PROGRAMMERS: ReactOS Portable Systems Group 7 */ 8 9/* INCLUDES ******************************************************************/ 10 11#include <hal.h> 12 13/* PUBLIC FUNCTIONS **********************************************************/ 14 15#ifndef _MINIHAL_ 16/* 17 * @implemented 18 */ 19VOID 20NTAPI 21HalReturnToFirmware( 22 _In_ FIRMWARE_REENTRY Action) 23{ 24 /* Check what kind of action this is */ 25 switch (Action) 26 { 27 /* All recognized actions */ 28 case HalHaltRoutine: 29 case HalPowerDownRoutine: 30 case HalRestartRoutine: 31 case HalRebootRoutine: 32 { 33 /* Acquire the display */ 34 InbvAcquireDisplayOwnership(); 35 // TODO: Reboot 36 } 37 38 /* Anything else */ 39 default: 40 { 41 /* Print message and break */ 42 DbgPrint("HalReturnToFirmware called!\n"); 43 DbgBreakPoint(); 44 } 45 } 46} 47#endif // _MINIHAL_ 48 49/* EOF */