-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify libhddboot to be more generic
- Loading branch information
Showing
2 changed files
with
58 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,39 @@ | ||
#ifndef H_HDDBOOT_INC | ||
#define H_HDDBOOT_INC | ||
|
||
void CheckHDDUpdate(int device, const char *SysExecFolder); | ||
/** | ||
* @brief Executes the HDDLOAD module from a file | ||
* @param path path to the HDDLOAD IRX Module | ||
* @param ret integer pointer to obtain the Module return value. it should return 0 on successfull load | ||
* @return Module ID. if 0 or larger, success. if negative number, then MODLOAD refused to load the module (see kerr.h) | ||
*/ | ||
int BootHDDLoadFile(char* path, int* ret); | ||
|
||
/** | ||
* @brief Executes the HDDLOAD module from a buffer on EE | ||
* @param irx Pointer to the buffer holding HDDLOAD IRX Module | ||
* @param size Size of the HDDLOAD IRX Module buffer | ||
* @param ret integer pointer to obtain the Module return value. it should return 0 on successfull load | ||
* @return Module ID. if 0 or larger, success. if negative number, then MODLOAD refused to load the module (see kerr.h) | ||
*/ | ||
int BootHDDLoadBuffer(void* irx, unsigned int size, int* ret); | ||
|
||
/** | ||
* @brief Internal check for the HDDLOAD Status | ||
* @return 1 if module loaded successfully | ||
*/ | ||
int GetHddSupportEnabledStatus(void); | ||
|
||
/** | ||
* @brief Checks if the HDDLOAD Module thread has completed the DMA Transfer of the MBR.KELF from HDD to RAM | ||
* @note once it is done, check with the ::DetermineHDDLoadStatus function | ||
*/ | ||
int GetHddUpdateStatus(void); | ||
|
||
/** | ||
* @brief Returns the status of the HDDLOAD thread execution | ||
* @return 1 if module Completed it's task | ||
*/ | ||
void DetermineHDDLoadStatus(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters