2026-02-19 19:13:44 +00:00
|
|
|
#ifndef KERNEL_X86_64_HWLOCK_H_
|
|
|
|
|
#define KERNEL_X86_64_HWLOCK_H_
|
|
|
|
|
|
|
|
|
|
#define ML_HWLOCK_INIT (0)
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
typedef int ml_hwlock_t;
|
|
|
|
|
|
|
|
|
|
extern void ml_hwlock_lock(ml_hwlock_t *lck);
|
|
|
|
|
extern void ml_hwlock_unlock(ml_hwlock_t *lck);
|
|
|
|
|
|
2026-02-23 18:24:49 +00:00
|
|
|
extern void ml_hwlock_lock_irq(ml_hwlock_t *lck);
|
|
|
|
|
extern void ml_hwlock_unlock_irq(ml_hwlock_t *lck);
|
|
|
|
|
|
2026-02-19 19:13:44 +00:00
|
|
|
extern void ml_hwlock_lock_irqsave(ml_hwlock_t *lck, unsigned long *flags);
|
|
|
|
|
extern void ml_hwlock_unlock_irqrestore(ml_hwlock_t *lck, unsigned long flags);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|