|
sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
|
Go to the source code of this file.
Classes | |
| struct | alarm_struct_ |
Macros | |
| #define | PTR_TO_ALARM_ID(ptr_, cid_) |
| #define | ALARM_ID_TO_PTR(id_) |
| #define | ALARM_ID_IS_VALID(id_) |
| #define | ALARM_COUNT 64 |
Functions | |
| struct alarm_struct_ | __attribute__ ((aligned(16))) |
| __attribute__ ((weak)) | |
| u64 | AlarmHandler (s32 alarm_id, u64 scheduled_time, u64 actual_time, void *arg, void *last_pc) |
| s32 | iSetTimerAlarm (u64 clock_cycles, timer_alarm_handler_t callback_handler, void *arg) |
| s32 | SetTimerAlarm (u64 clock_cycles, timer_alarm_handler_t callback_handler, void *arg) |
| s32 | iReleaseTimerAlarm (s32 id) |
| s32 | ReleaseTimerAlarm (s32 id) |
Variables | |
| struct alarm_struct_ * | alarm_next |
| vs32 | timer_counter_id |
| timer_alarm_handler_t | callback_handler |
| void * | callback_handler_arg |
| alarm_struct_t * | g_pFreeAlarm = NULL |
Some routines to do some timer alarm work
Definition in file timer_alarm.c.
| #define ALARM_COUNT 64 |
Definition at line 32 of file timer_alarm.c.
| #define ALARM_ID_IS_VALID | ( | id_ | ) |
Definition at line 30 of file timer_alarm.c.
| #define ALARM_ID_TO_PTR | ( | id_ | ) |
Definition at line 29 of file timer_alarm.c.
| #define PTR_TO_ALARM_ID | ( | ptr_, | |
| cid_ ) |
Definition at line 28 of file timer_alarm.c.
| struct alarm_struct_ __attribute__ | ( | (aligned(16)) | ) |
| __attribute__ | ( | (weak) | ) |
Definition at line 37 of file timer_alarm.c.
| u64 AlarmHandler | ( | s32 | alarm_id, |
| u64 | scheduled_time, | ||
| u64 | actual_time, | ||
| void * | arg, | ||
| void * | last_pc ) |
Definition at line 65 of file timer_alarm.c.
| s32 iReleaseTimerAlarm | ( | s32 | id | ) |
Definition at line 134 of file timer_alarm.c.
| s32 iSetTimerAlarm | ( | u64 | clock_cycles, |
| timer_alarm_handler_t | callback_handler, | ||
| void * | arg ) |
Definition at line 84 of file timer_alarm.c.
| s32 ReleaseTimerAlarm | ( | s32 | id | ) |
Definition at line 152 of file timer_alarm.c.
| s32 SetTimerAlarm | ( | u64 | clock_cycles, |
| timer_alarm_handler_t | callback_handler, | ||
| void * | arg ) |
Sets up alarm paramenters.
| clock_cycles | Number of bus cycles when the alarm will trigger |
| callback_handler | Function pointer to call when the alarm triggers (in IRQ) |
| arg | Argument to pass to callback_handler |
Starts the alarm. If the alarm was already started, it does nothing.
Definition at line 120 of file timer_alarm.c.
| struct alarm_struct_* alarm_next |
Definition at line 0 of file timer_alarm.c.
| timer_alarm_handler_t callback_handler |
Definition at line 2 of file timer_alarm.c.
| void* callback_handler_arg |
Definition at line 3 of file timer_alarm.c.
| alarm_struct_t* g_pFreeAlarm = NULL |
Definition at line 35 of file timer_alarm.c.
| vs32 timer_counter_id |
Definition at line 1 of file timer_alarm.c.