mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
[cmdline] Add "poweroff" command
Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Marin Hannache <git@mareo.fr> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
9b93b669d1
commit
c0af8c0433
@@ -63,6 +63,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#define ERRFILE_test ( ERRFILE_CORE | 0x00170000 )
|
||||
#define ERRFILE_xferbuf ( ERRFILE_CORE | 0x00180000 )
|
||||
#define ERRFILE_pending ( ERRFILE_CORE | 0x00190000 )
|
||||
#define ERRFILE_null_reboot ( ERRFILE_CORE | 0x001a0000 )
|
||||
|
||||
#define ERRFILE_eisa ( ERRFILE_DRIVER | 0x00000000 )
|
||||
#define ERRFILE_isa ( ERRFILE_DRIVER | 0x00010000 )
|
||||
@@ -277,6 +278,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#define ERRFILE_efi_umalloc ( ERRFILE_OTHER | 0x003b0000 )
|
||||
#define ERRFILE_linux_pci ( ERRFILE_OTHER | 0x003c0000 )
|
||||
#define ERRFILE_pci_settings ( ERRFILE_OTHER | 0x003d0000 )
|
||||
#define ERRFILE_efi_reboot ( ERRFILE_OTHER | 0x003e0000 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
@@ -55,4 +55,14 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
*/
|
||||
void reboot ( int warm );
|
||||
|
||||
/**
|
||||
* Power off system
|
||||
*
|
||||
* @ret rc Return status code
|
||||
*
|
||||
* This function may fail, since not all systems support being powered
|
||||
* off by software.
|
||||
*/
|
||||
int poweroff ( void );
|
||||
|
||||
#endif /* _IPXE_REBOOT_H */
|
||||
|
||||
Reference in New Issue
Block a user