Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / arm / plat-samsung / include / plat / wakeup-mask.h
blob43e4acd2e1c63a50605e5cc83750a85ab69585e3
1 /* arch/arm/plat-samsung/include/plat/wakeup-mask.h
3 * Copyright 2010 Ben Dooks <ben-linux@fluff.org>
5 * Support for wakeup mask interrupts on newer SoCs
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
13 #ifndef __PLAT_WAKEUP_MASK_H
14 #define __PLAT_WAKEUP_MASK_H __file__
16 /* if no irq yet defined, but still want to mask */
17 #define NO_WAKEUP_IRQ (0x90000000)
19 /**
20 * struct samsung_wakeup_mask - wakeup mask information
21 * @irq: The interrupt associated with this wakeup.
22 * @bit: The bit, as a (1 << bitno) controlling this source.
23 */
24 struct samsung_wakeup_mask {
25 unsigned int irq;
26 u32 bit;
29 /**
30 * samsung_sync_wakemask - sync wakeup mask information for pm
31 * @reg: The register that is used.
32 * @masks: The list of masks to use.
33 * @nr_masks: The number of entries pointed to buy @masks.
35 * Synchronise the wakeup mask information at suspend time from the list
36 * of interrupts and control bits in @masks. We do this at suspend time
37 * as overriding the relevant irq chips is harder and the register is only
38 * required to be correct before we enter sleep.
40 extern void samsung_sync_wakemask(void __iomem *reg,
41 struct samsung_wakeup_mask *masks,
42 int nr_masks);
44 #endif /* __PLAT_WAKEUP_MASK_H */