1
0

patch-tn7atm_h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --- sangam-atm-1.0.orig/tn7atm.h 2006-04-05 07:33:06.000000000 +0200
  2. +++ sangam-atm-1.0/tn7atm.h 2009-12-17 23:42:04.069784991 +0100
  3. @@ -19,7 +19,8 @@
  4. //#include "mips_support.h"
  5. #include <linux/list.h>
  6. -#include <linux/config.h>
  7. +#define MIPS_EXCEPTION_OFFSET 8
  8. +#define LNXINTNUM(x)((x) + MIPS_EXCEPTION_OFFSET)
  9. #ifdef CONFIG_MODVERSIONS
  10. #include <linux/modversions.h>
  11. @@ -61,37 +62,6 @@ extern int avalanche_request_pacing(int
  12. #include <linux/release.h>
  13. #endif /* CONFIG_HAS_RELEASE_H_FILE */
  14. -/* Base PSP 7.4 support */
  15. -#if ((PSP_VERSION_MAJOR == 7) && (PSP_VERSION_MINOR == 4))
  16. -#define TIATM_INST_SUPP /* Enable Instrumentation code. */
  17. -#define __NO__VOICE_PATCH__ /* Not required anymore. */
  18. -
  19. -#if defined (CONFIG_MIPS_AVALANCHE_COLORED_LED)
  20. -#include <asm/avalanche/generic/led_manager.h>
  21. -
  22. -/* LED handles */
  23. -extern void *hnd_LED_0;
  24. -
  25. -#define MOD_ADSL 1
  26. -#define DEF_ADSL_IDLE 1
  27. -#define DEF_ADSL_TRAINING 2
  28. -#define DEF_ADSL_SYNC 3
  29. -#define DEF_ADSL_ACTIVITY 4
  30. -
  31. -#define LED_NUM_1 0
  32. -#define LED_NUM_2 1
  33. -
  34. -#endif /*defined (CONFIG_MIPS_AVALANCHE_COLORED_LED)*/
  35. -
  36. -/* So as to not cause any confusion. */
  37. -#ifdef BASE_PSP_7X
  38. -#undef BASE_PSP_7X
  39. -#endif /*BASE_PSP_7X*/
  40. -
  41. -#define TN7DSL_LED_ACTION(module_handle, module_name, state_id) led_manager_led_action(module_handle, state_id)
  42. -
  43. -#endif /*((PSP_VERSION_MAJOR == 7) && (PSP_VERSION_MINOR == 4)) */
  44. -
  45. #ifdef CONFIG_LED_MODULE
  46. #ifndef BASE_PSP_7X
  47. #include <asm/avalanche/ledapp.h>
  48. @@ -275,4 +245,4 @@ typedef struct
  49. #define PHYS_TO_K1(X) (PHYS_ADDR(X)|K1BASE)
  50. #endif
  51. -#endif __TN7ATM_H
  52. +#endif