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

TOMOYO Linux Cross Reference
Linux/arch/powerpc/sysdev/ipic.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  * IPIC private definitions and structure.
  4  *
  5  * Maintainer: Kumar Gala <galak@kernel.crashing.org>
  6  *
  7  * Copyright 2005 Freescale Semiconductor, Inc
  8  */
  9 #ifndef __IPIC_H__
 10 #define __IPIC_H__
 11 
 12 #include <asm/ipic.h>
 13 
 14 #define NR_IPIC_INTS 128
 15 
 16 /* External IRQS */
 17 #define IPIC_IRQ_EXT0 48
 18 #define IPIC_IRQ_EXT1 17
 19 #define IPIC_IRQ_EXT7 23
 20 
 21 /* Default Priority Registers */
 22 #define IPIC_PRIORITY_DEFAULT 0x05309770
 23 
 24 /* System Global Interrupt Configuration Register */
 25 #define SICFR_IPSA      0x00010000
 26 #define SICFR_IPSB      0x00020000
 27 #define SICFR_IPSC      0x00040000
 28 #define SICFR_IPSD      0x00080000
 29 #define SICFR_MPSA      0x00200000
 30 #define SICFR_MPSB      0x00400000
 31 
 32 /* System External Interrupt Mask Register */
 33 #define SEMSR_SIRQ0     0x00008000
 34 
 35 /* System Error Control Register */
 36 #define SERCR_MCPR      0x00000001
 37 
 38 struct ipic {
 39         volatile u32 __iomem    *regs;
 40 
 41         /* The remapper for this IPIC */
 42         struct irq_domain               *irqhost;
 43 };
 44 
 45 struct ipic_info {
 46         u8      ack;            /* pending register offset from base if the irq
 47                                    supports ack operation */
 48         u8      mask;           /* mask register offset from base */
 49         u8      prio;           /* priority register offset from base */
 50         u8      force;          /* force register offset from base */
 51         u8      bit;            /* register bit position (as per doc)
 52                                    bit mask = 1 << (31 - bit) */
 53         u8      prio_mask;      /* priority mask value */
 54 };
 55 
 56 #endif /* __IPIC_H__ */
 57 

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php