redpill-lkm5/shim/bios/bios_hwcap_shim.h
2022-12-16 14:34:30 +02:00

24 lines
750 B
C

#ifndef REDPILL_BIOS_HWCAP_SHIM_H
#define REDPILL_BIOS_HWCAP_SHIM_H
#include <linux/types.h> //bool
struct hw_config;
int register_bios_hwcap_shim(const struct hw_config *hw);
/**
* This function should be called when we're unloading cleanly (=mfgBIOS is alive, we're going away). If the bios went
* away on its own call reset_bios_hwcap_shim()
*/
int unregister_bios_hwcap_shim(void);
/**
* This function should be called when we're unloading because mfgBIOS went away. If the unload should be clean and
* restore all mfgBIOS elements to its original state (i.e. the mfgBIOS is still loaded and not currently unloading)
* call unregister_bios_hwcap_shim() instead.
*/
int reset_bios_hwcap_shim(void);
#endif //REDPILL_BIOS_HWCAP_SHIM_H