summaryrefslogtreecommitdiff
path: root/package/sangam-atm/patches/patch-tn7atm_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-17 20:17:21 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-17 20:17:21 +0100
commitf9b8f27119a5fc811c2a0a25e686638c8b5680b8 (patch)
tree53cbbe8044f43ed924da0c725c2df9b9b331f3a3 /package/sangam-atm/patches/patch-tn7atm_h
parentbb17a19fcc7f7d10369eed7f6c8662f6e4df9d4b (diff)
add sangam-atm package
- driver package for ag241 dsl modem, it loads, but we will see if it works..
Diffstat (limited to 'package/sangam-atm/patches/patch-tn7atm_h')
-rw-r--r--package/sangam-atm/patches/patch-tn7atm_h50
1 files changed, 50 insertions, 0 deletions
diff --git a/package/sangam-atm/patches/patch-tn7atm_h b/package/sangam-atm/patches/patch-tn7atm_h
new file mode 100644
index 000000000..e26e0441a
--- /dev/null
+++ b/package/sangam-atm/patches/patch-tn7atm_h
@@ -0,0 +1,50 @@
+--- sangam-atm-1.0.orig/tn7atm.h 2006-04-05 07:33:06.000000000 +0200
++++ sangam-atm-1.0/tn7atm.h 2009-12-17 19:15:08.310494800 +0100
+@@ -19,7 +19,8 @@
+ //#include "mips_support.h"
+ #include <linux/list.h>
+
+-#include <linux/config.h>
++#define MIPS_EXCEPTION_OFFSET 8
++#define LNXINTNUM(x)((x) + MIPS_EXCEPTION_OFFSET)
+
+ #ifdef CONFIG_MODVERSIONS
+ #include <linux/modversions.h>
+@@ -61,37 +62,6 @@ extern int avalanche_request_pacing(int
+ #include <linux/release.h>
+ #endif /* CONFIG_HAS_RELEASE_H_FILE */
+
+-/* Base PSP 7.4 support */
+-#if ((PSP_VERSION_MAJOR == 7) && (PSP_VERSION_MINOR == 4))
+-#define TIATM_INST_SUPP /* Enable Instrumentation code. */
+-#define __NO__VOICE_PATCH__ /* Not required anymore. */
+-
+-#if defined (CONFIG_MIPS_AVALANCHE_COLORED_LED)
+-#include <asm/avalanche/generic/led_manager.h>
+-
+-/* LED handles */
+-extern void *hnd_LED_0;
+-
+-#define MOD_ADSL 1
+-#define DEF_ADSL_IDLE 1
+-#define DEF_ADSL_TRAINING 2
+-#define DEF_ADSL_SYNC 3
+-#define DEF_ADSL_ACTIVITY 4
+-
+-#define LED_NUM_1 0
+-#define LED_NUM_2 1
+-
+-#endif /*defined (CONFIG_MIPS_AVALANCHE_COLORED_LED)*/
+-
+-/* So as to not cause any confusion. */
+-#ifdef BASE_PSP_7X
+-#undef BASE_PSP_7X
+-#endif /*BASE_PSP_7X*/
+-
+-#define TN7DSL_LED_ACTION(module_handle, module_name, state_id) led_manager_led_action(module_handle, state_id)
+-
+-#endif /*((PSP_VERSION_MAJOR == 7) && (PSP_VERSION_MINOR == 4)) */
+-
+ #ifdef CONFIG_LED_MODULE
+ #ifndef BASE_PSP_7X
+ #include <asm/avalanche/ledapp.h>