1 /* Automatically generated header! Do not edit! */ 2 3 #ifndef _PPCINLINE_BATTCLOCK_H 4 #define _PPCINLINE_BATTCLOCK_H 5 6 #ifndef __PPCINLINE_MACROS_H 7 #include <ppcinline/macros.h> 8 #endif /* !__PPCINLINE_MACROS_H */ 9 10 #ifndef BATTCLOCK_BASE_NAME 11 #define BATTCLOCK_BASE_NAME BattClockBase 12 #endif /* !BATTCLOCK_BASE_NAME */ 13 14 #define ReadBattClock() \ 15 LP0(12, ULONG , ReadBattClock, \ 16 , BATTCLOCK_BASE_NAME, 0, 0, 0, 0, 0, 0) 17 18 #define ResetBattClock() \ 19 LP0NR(6, ResetBattClock, \ 20 , BATTCLOCK_BASE_NAME, 0, 0, 0, 0, 0, 0) 21 22 #define ReadUTCBattClock() \ 23 (((ULONG (*)(void *))*(void**)((long)(BATTCLOCK_BASE_NAME) - 40))((void*)(BATTCLOCK_BASE_NAME))) 24 25 #define WriteUTCBattClock(__p0) \ 26 (((VOID (*)(void *, ULONG ))*(void**)((long)(BATTCLOCK_BASE_NAME) - 46))((void*)(BATTCLOCK_BASE_NAME), __p0)) 27 28 #define WriteBattClock(__p0) \ 29 LP1NR(18, WriteBattClock, \ 30 ULONG , __p0, d0, \ 31 , BATTCLOCK_BASE_NAME, 0, 0, 0, 0, 0, 0) 32 33 #endif /* !_PPCINLINE_BATTCLOCK_H */