X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fhpet.h;h=af4da7d302d88f6aa66146926507b223eb242b00;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=9ab04e9887dc0a7e6ff4e77ebbfd3ad4f48d45de;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/include/linux/hpet.h b/include/linux/hpet.h index 9ab04e988..af4da7d30 100644 --- a/include/linux/hpet.h +++ b/include/linux/hpet.h @@ -54,12 +54,6 @@ struct hpet { #define HPET_LEG_RT_CNF_MASK (2UL) #define HPET_ENABLE_CNF_MASK (1UL) -/* - * HPET interrupt status register - */ - -#define HPET_ISR_CLEAR(HPET, TIMER) \ - (HPET)->hpet_isr |= (1UL << TIMER) /* * Timer configuration register @@ -125,6 +119,12 @@ struct hpet_data { #define HPET_DATA_PLATFORM 0x0001 /* platform call to hpet_alloc */ +static inline void hpet_reserve_timer(struct hpet_data *hd, int timer) +{ + hd->hd_state |= (1 << timer); + return; +} + int hpet_alloc(struct hpet_data *); int hpet_register(struct hpet_task *, int); int hpet_unregister(struct hpet_task *);