revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-pc / hpet / hpet_intern.h
blob6bebd00a87acf0632760ed167e90e6a7a9b17d85
1 #include <exec/libraries.h>
2 #include <exec/semaphores.h>
4 /* ID components */
5 #define HPET_HW_REV_MASK 0x000000FF
6 #define HPET_NUM_COMPARATORS_MASK 0x00001F00
7 #define HPET_NUM_COMPARATORS_SHIFT 8
8 #define HPET_COUNTER_SIZE 0x00002000
9 #define HPET_LEGACY_REPLACEMENT 0x00008000
10 #define HPET_PCI_VENDOR_MASK 0xFFFF0000
11 #define HPET_PCI_VENDOR_SHIFT 16
13 /* page_protect components */
14 #define HPET_PAGE_PROTECT_MASK 0x0F
15 #define HPET_OEM_ATTR_MASK 0xF0
16 #define HPET_OEM_ATTR_SHIFT 4
18 #define HPET_PAGE_NONE 0
19 #define HPET_PAGE_4K 1
20 #define HPET_PAGE_64K 2
23 struct HPETUnit
25 IPTR base;
26 IPTR block;
27 const char *Owner;
30 struct HPETBase
32 struct Library libnode;
33 ULONG unitCnt;
34 struct HPETUnit *units;
35 struct SignalSemaphore lock;