Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * EHV_PIC private definitions and structure.
0003  *
0004  * Copyright 2008-2010 Freescale Semiconductor, Inc.
0005  *
0006  * This file is licensed under the terms of the GNU General Public License
0007  * version 2.  This program is licensed "as is" without any warranty of any
0008  * kind, whether express or implied.
0009  */
0010 #ifndef __EHV_PIC_H__
0011 #define __EHV_PIC_H__
0012 
0013 #include <linux/irq.h>
0014 
0015 #define NR_EHV_PIC_INTS 1024
0016 
0017 #define EHV_PIC_INFO(name) EHV_PIC_##name
0018 
0019 #define EHV_PIC_VECPRI_POLARITY_NEGATIVE 0
0020 #define EHV_PIC_VECPRI_POLARITY_POSITIVE 1
0021 #define EHV_PIC_VECPRI_SENSE_EDGE 0
0022 #define EHV_PIC_VECPRI_SENSE_LEVEL 0x2
0023 #define EHV_PIC_VECPRI_POLARITY_MASK 0x1
0024 #define EHV_PIC_VECPRI_SENSE_MASK 0x2
0025 
0026 struct ehv_pic {
0027     /* The remapper for this EHV_PIC */
0028     struct irq_domain   *irqhost;
0029 
0030     /* The "linux" controller struct */
0031     struct irq_chip hc_irq;
0032 
0033     /* core int flag */
0034     int coreint_flag;
0035 };
0036 
0037 void ehv_pic_init(void);
0038 unsigned int ehv_pic_get_irq(void);
0039 
0040 #endif /* __EHV_PIC_H__ */