Speed-up finding next free cluster by starting the search from where the
[AROS.git] / arch / m68k-amiga / battclock / battclock_intern.h
blob62abefdd591947872944c4c62a407794b0377d70
1 /*
2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
4 Desc: Internal data structures for battclock.resource
5 Lang: english
6 */
8 #ifndef BATTCLOCK_INTERN_H
9 #define BATTCLOCK_INTERN_H
11 #ifndef EXEC_TYPES_H
12 #include <exec/types.h>
13 #endif
14 #ifndef EXEC_NODES_H
15 #include <exec/nodes.h>
16 #endif
17 #ifndef UTILITY_UTILITY_H
18 #include <utility/utility.h>
19 #endif
21 #define MSM6242B 1
22 #define RF5C01A 2
24 struct BattClockBase
26 struct Library bb_LibNode;
27 struct UtilityBase *UtilityBase;
28 volatile UBYTE *clockptr;
29 UBYTE clocktype;
32 void resetbattclock(struct BattClockBase *Battclock);
33 UBYTE getreg(volatile UBYTE *p, UBYTE regnum);
34 void putreg(volatile UBYTE *p, UBYTE regnum, UBYTE v);
35 UBYTE getbcd(volatile UBYTE *p, UBYTE regnum);
36 void putbcd(volatile UBYTE *p, UBYTE regnum, UBYTE v);
37 void stopclock(struct BattClockBase *Battclock);
38 void startclock(struct BattClockBase *Battclock);
40 #endif //BATTCLOCK_INTERN_H