/*1* Copyright (C) 2007-2008 Freescale Semiconductor, Inc. All rights reserved.2*3* Author: Tony Li <[email protected]>4* Jason Jin <[email protected]>5*6* This program is free software; you can redistribute it and/or7* modify it under the terms of the GNU General Public License8* as published by the Free Software Foundation; version 2 of the9* License.10*11*/12#ifndef _POWERPC_SYSDEV_FSL_MSI_H13#define _POWERPC_SYSDEV_FSL_MSI_H1415#include <asm/msi_bitmap.h>1617#define NR_MSI_REG 818#define IRQS_PER_MSI_REG 3219#define NR_MSI_IRQS (NR_MSI_REG * IRQS_PER_MSI_REG)2021#define FSL_PIC_IP_MASK 0x0000000F22#define FSL_PIC_IP_MPIC 0x0000000123#define FSL_PIC_IP_IPIC 0x000000022425struct fsl_msi {26struct irq_host *irqhost;2728unsigned long cascade_irq;2930u32 msi_addr_lo;31u32 msi_addr_hi;32void __iomem *msi_regs;33u32 feature;34int msi_virqs[NR_MSI_REG];3536struct msi_bitmap bitmap;3738struct list_head list; /* support multiple MSI banks */39};4041#endif /* _POWERPC_SYSDEV_FSL_MSI_H */42434445