Re: [PATCH][OMAP 3/4+] BRIDGE: Module ISR removed

2008-09-10 Thread Hiroshi DOYU
Hi Fernando, Added to the bridge patchsets against l-o, too.

From: "ext Guzman Lugo, Fernando" <[EMAIL PROTECTED]>
Subject: [PATCH][OMAP 3/4+] BRIDGE: Module ISR removed
Date: Wed, 10 Sep 2008 20:01:33 -0500

> 
> This patch removes ISR module completely
> 
> Signed-off-by: Fernando Guzman Lugo <[EMAIL PROTECTED]>
> ---
>  arch/arm/plat-omap/include/mach/bridge/_chnl_sm.h |1 -
>  arch/arm/plat-omap/include/mach/bridge/io_sm.h|3 +-
>  arch/arm/plat-omap/include/mach/bridge/isr.h  |  154 
>  drivers/dsp/bridge/pmgr/chnl.c|1 -
>  drivers/dsp/bridge/services/isr.c |  261 
> -
>  drivers/dsp/bridge/services/services.c|   10 +-
>  drivers/dsp/bridge/wmd/_deh.h |2 -
>  drivers/dsp/bridge/wmd/io_sm.c|   46 ++--
>  drivers/dsp/bridge/wmd/mmu_fault.c|6 +-
>  drivers/dsp/bridge/wmd/mmu_fault.h|2 +-
>  drivers/dsp/bridge/wmd/tiomap_sm.c|1 -
>  drivers/dsp/bridge/wmd/ue_deh.c   |   14 +-
>  12 files changed, 38 insertions(+), 463 deletions(-)
>  delete mode 100644 arch/arm/plat-omap/include/mach/bridge/isr.h
>  delete mode 100644 drivers/dsp/bridge/services/isr.c
> 
> diff --git a/arch/arm/plat-omap/include/mach/bridge/_chnl_sm.h 
> b/arch/arm/plat-omap/include/mach/bridge/_chnl_sm.h
> index f6a6c69..4e82639 100644
> --- a/arch/arm/plat-omap/include/mach/bridge/_chnl_sm.h
> +++ b/arch/arm/plat-omap/include/mach/bridge/_chnl_sm.h
> @@ -57,7 +57,6 @@
> 
>  #include 
>  #include 
> -#include 
>  #include 
> 
>  #include 
> diff --git a/arch/arm/plat-omap/include/mach/bridge/io_sm.h 
> b/arch/arm/plat-omap/include/mach/bridge/io_sm.h
> index 413108f..892c06a 100644
> --- a/arch/arm/plat-omap/include/mach/bridge/io_sm.h
> +++ b/arch/arm/plat-omap/include/mach/bridge/io_sm.h
> @@ -132,8 +132,7 @@
>   *  Interrupts are disabled and EOI for this interrupt has been sent.
>   *  Ensures:
>   */
> -   extern bool IO_ISR(IN void *pRefData);
> -
> +   irqreturn_t IO_ISR(int irq, IN void *pRefData);
>  /*
>   *   IO_RequestChnl 
>   *  Purpose:
> diff --git a/arch/arm/plat-omap/include/mach/bridge/isr.h 
> b/arch/arm/plat-omap/include/mach/bridge/isr.h
> deleted file mode 100644
> index fb397bb..000
> --- a/arch/arm/plat-omap/include/mach/bridge/isr.h
> +++ /dev/null
> @@ -1,154 +0,0 @@
> -/*
> - * bridge/inc/isr.h
> - *
> - * DSP-BIOS Bridge driver support functions for TI OMAP processors.
> - *
> - * Copyright (C) 2005-2006 Texas Instruments, Inc.
> - *
> - * This package is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License version 2 as
> - * published by the Free Software Foundation.
> - *
> - * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
> - * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
> - * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
> - */
> -
> -
> -/*
> - *   isr.h 
> - *  Purpose:
> - *  Interrupt services.
> - *
> - *  Public Functions:
> - *  ISR_Exit
> - *  ISR_Init
> - *  ISR_Install
> - *  ISR_Uninstall
> - *
> - *  Notes:
> - *
> - *! Revision History:
> - *! 
> - *! 01-Mar-2004 vp:  Added IVA related functions.
> - *! 06-Feb-2003 kc:  Added ISR_MAILBOX1 (renamed from DSP_MAILBOX1).
> - *! 05-Nov-2001 kc:  Added interrupt type param to ISR_Install.
> - *! 31-Jan-2000 rr:  Comments modified after code review.
> - *! 29-Oct-1999 kc:  Moved header files to within ifdefed 'extern "C"'.
> - *! 17-Sep-1997 gp:  Added CFG_HOSTRES struct as argument to ISR_Install, 
> thus
> - *!  breaking backward compatibility with Ver. 1.0 mini 
> drivers.
> - *! 18-Aug-1997 cr:  Added explicit CDECL identifiers.
> - *! 03-Feb-1996 gp:  Changed behaviour of ISR_SimulateInt.
> - *! 24-Jul-1996 gp:  Created.
> - */
> -
> -#ifndef ISR_
> -#define ISR_
> -#include 
> -#include 
> -
> -/* Interrupt Object handle: */
> -   struct ISR_IRQ;
> -
> -/* ISR install type (private) */
> -#define ISR_MAILBOX10x0080 /* Arbitrary value */
> -#define ISR_MAILBOX2   0x0081
> -
> -/* Temporary until the baseport defines it */
> -#define MAIL_U3_MPU_IRQ34
> -/*
> - *   ISR_PROC 
> - *  Purpose:
> - *  Routine to service an interrupt.
> - *  Parameters:
> - *  pRefData:   Ptr to user data: passed in via ISR_Inst

[PATCH][OMAP 3/4+] BRIDGE: Module ISR removed

2008-09-10 Thread Guzman Lugo, Fernando

This patch removes ISR module completely

Signed-off-by: Fernando Guzman Lugo <[EMAIL PROTECTED]>
---
 arch/arm/plat-omap/include/mach/bridge/_chnl_sm.h |1 -
 arch/arm/plat-omap/include/mach/bridge/io_sm.h|3 +-
 arch/arm/plat-omap/include/mach/bridge/isr.h  |  154 
 drivers/dsp/bridge/pmgr/chnl.c|1 -
 drivers/dsp/bridge/services/isr.c |  261 -
 drivers/dsp/bridge/services/services.c|   10 +-
 drivers/dsp/bridge/wmd/_deh.h |2 -
 drivers/dsp/bridge/wmd/io_sm.c|   46 ++--
 drivers/dsp/bridge/wmd/mmu_fault.c|6 +-
 drivers/dsp/bridge/wmd/mmu_fault.h|2 +-
 drivers/dsp/bridge/wmd/tiomap_sm.c|1 -
 drivers/dsp/bridge/wmd/ue_deh.c   |   14 +-
 12 files changed, 38 insertions(+), 463 deletions(-)
 delete mode 100644 arch/arm/plat-omap/include/mach/bridge/isr.h
 delete mode 100644 drivers/dsp/bridge/services/isr.c

diff --git a/arch/arm/plat-omap/include/mach/bridge/_chnl_sm.h 
b/arch/arm/plat-omap/include/mach/bridge/_chnl_sm.h
index f6a6c69..4e82639 100644
--- a/arch/arm/plat-omap/include/mach/bridge/_chnl_sm.h
+++ b/arch/arm/plat-omap/include/mach/bridge/_chnl_sm.h
@@ -57,7 +57,6 @@

 #include 
 #include 
-#include 
 #include 

 #include 
diff --git a/arch/arm/plat-omap/include/mach/bridge/io_sm.h 
b/arch/arm/plat-omap/include/mach/bridge/io_sm.h
index 413108f..892c06a 100644
--- a/arch/arm/plat-omap/include/mach/bridge/io_sm.h
+++ b/arch/arm/plat-omap/include/mach/bridge/io_sm.h
@@ -132,8 +132,7 @@
  *  Interrupts are disabled and EOI for this interrupt has been sent.
  *  Ensures:
  */
-   extern bool IO_ISR(IN void *pRefData);
-
+   irqreturn_t IO_ISR(int irq, IN void *pRefData);
 /*
  *   IO_RequestChnl 
  *  Purpose:
diff --git a/arch/arm/plat-omap/include/mach/bridge/isr.h 
b/arch/arm/plat-omap/include/mach/bridge/isr.h
deleted file mode 100644
index fb397bb..000
--- a/arch/arm/plat-omap/include/mach/bridge/isr.h
+++ /dev/null
@@ -1,154 +0,0 @@
-/*
- * bridge/inc/isr.h
- *
- * DSP-BIOS Bridge driver support functions for TI OMAP processors.
- *
- * Copyright (C) 2005-2006 Texas Instruments, Inc.
- *
- * This package is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-
-/*
- *   isr.h 
- *  Purpose:
- *  Interrupt services.
- *
- *  Public Functions:
- *  ISR_Exit
- *  ISR_Init
- *  ISR_Install
- *  ISR_Uninstall
- *
- *  Notes:
- *
- *! Revision History:
- *! 
- *! 01-Mar-2004 vp:  Added IVA related functions.
- *! 06-Feb-2003 kc:  Added ISR_MAILBOX1 (renamed from DSP_MAILBOX1).
- *! 05-Nov-2001 kc:  Added interrupt type param to ISR_Install.
- *! 31-Jan-2000 rr:  Comments modified after code review.
- *! 29-Oct-1999 kc:  Moved header files to within ifdefed 'extern "C"'.
- *! 17-Sep-1997 gp:  Added CFG_HOSTRES struct as argument to ISR_Install, thus
- *!  breaking backward compatibility with Ver. 1.0 mini 
drivers.
- *! 18-Aug-1997 cr:  Added explicit CDECL identifiers.
- *! 03-Feb-1996 gp:  Changed behaviour of ISR_SimulateInt.
- *! 24-Jul-1996 gp:  Created.
- */
-
-#ifndef ISR_
-#define ISR_
-#include 
-#include 
-
-/* Interrupt Object handle: */
-   struct ISR_IRQ;
-
-/* ISR install type (private) */
-#define ISR_MAILBOX10x0080 /* Arbitrary value */
-#define ISR_MAILBOX2   0x0081
-
-/* Temporary until the baseport defines it */
-#define MAIL_U3_MPU_IRQ34
-/*
- *   ISR_PROC 
- *  Purpose:
- *  Routine to service an interrupt.
- *  Parameters:
- *  pRefData:   Ptr to user data: passed in via ISR_Install.
- *  Returns:
- *  TRUE if the interrupt was handled; FALSE otherwise.
- *  Requires:
- *  ISR code must be in locked memory.
- *  All data touched must be locked.
- *  No resources should be acquired within the ISR.
- *  May only call asynchrounous services.
- *  Ensures:
- *  This routine must not affect the state of the physical PIC.
- *  (i.e.; don't send an EOI).
- */
-   typedef bool (CDECL *ISR_PROC) (void *pRefData);
-
-/*
- *   ISR_Exit 
- *  Purpose:
- *  Discontinue usage of the ISR module.
- *  Parameters:
- *  Returns:
- *  Requires:
- *  ISR_Init() was previously called.
- *  Ensures:
- *  Resources acquired in ISR_Init() are freed.
- */
-   extern void CDECL ISR_Exit();
-
-/*
- *   ISR_Init 
- *  Purpose:
- *  Initialize the ISR module's private state.
- *  Parameters:
- *  Returns:
- *