~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/pm8xxx/irq.h

Version: ~ [ linux-5.5-rc1 ] ~ [ linux-5.4.2 ] ~ [ linux-5.3.15 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.88 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.158 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.206 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.206 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.78 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
  3  *
  4  * This program is free software; you can redistribute it and/or modify
  5  * it under the terms of the GNU General Public License version 2 and
  6  * only version 2 as published by the Free Software Foundation.
  7  *
  8  * This program is distributed in the hope that it will be useful,
  9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 11  * GNU General Public License for more details.
 12  */
 13 /*
 14  * Qualcomm PMIC irq 8xxx driver header file
 15  *
 16  */
 17 
 18 #ifndef __MFD_PM8XXX_IRQ_H
 19 #define __MFD_PM8XXX_IRQ_H
 20 
 21 #include <linux/errno.h>
 22 #include <linux/err.h>
 23 
 24 struct pm8xxx_irq_core_data {
 25         u32             rev;
 26         int             nirqs;
 27 };
 28 
 29 struct pm8xxx_irq_platform_data {
 30         int                             irq_base;
 31         struct pm8xxx_irq_core_data     irq_cdata;
 32         int                             devirq;
 33         int                             irq_trigger_flag;
 34 };
 35 
 36 struct pm_irq_chip;
 37 
 38 #ifdef CONFIG_MFD_PM8XXX_IRQ
 39 int pm8xxx_get_irq_stat(struct pm_irq_chip *chip, int irq);
 40 struct pm_irq_chip * __devinit pm8xxx_irq_init(struct device *dev,
 41                                 const struct pm8xxx_irq_platform_data *pdata);
 42 int __devexit pm8xxx_irq_exit(struct pm_irq_chip *chip);
 43 #else
 44 static inline int pm8xxx_get_irq_stat(struct pm_irq_chip *chip, int irq)
 45 {
 46         return -ENXIO;
 47 }
 48 static inline struct pm_irq_chip * __devinit pm8xxx_irq_init(
 49                                 const struct device *dev,
 50                                 const struct pm8xxx_irq_platform_data *pdata)
 51 {
 52         return ERR_PTR(-ENXIO);
 53 }
 54 static inline int __devexit pm8xxx_irq_exit(struct pm_irq_chip *chip)
 55 {
 56         return -ENXIO;
 57 }
 58 #endif /* CONFIG_MFD_PM8XXX_IRQ */
 59 #endif /* __MFD_PM8XXX_IRQ_H */
 60 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp