summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-10-04 19:41:10 +0000
committerAlin Năstac <mrness@gentoo.org>2006-10-04 19:41:10 +0000
commit2a44ac0b3d87a59ec4ac76bc0ef20ab83c54871b (patch)
tree8613eff202a2edf42b51f3e4d6ce0f46cb16955a /net-dialup
parentold (diff)
downloadhistorical-2a44ac0b3d87a59ec4ac76bc0ef20ab83c54871b.tar.gz
historical-2a44ac0b3d87a59ec4ac76bc0ef20ab83c54871b.tar.bz2
historical-2a44ac0b3d87a59ec4ac76bc0ef20ab83c54871b.zip
Fix compilation errors when build against kernel 2.6.18 (#149792).
Package-Manager: portage-2.1.1
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/bewan-adsl/ChangeLog8
-rw-r--r--net-dialup/bewan-adsl/Manifest25
-rw-r--r--net-dialup/bewan-adsl/bewan-adsl-0.9.3-r2.ebuild103
-rw-r--r--net-dialup/bewan-adsl/files/bewan-adsl-0.9.3-kernel-2.6.18.patch392
-rw-r--r--net-dialup/bewan-adsl/files/digest-bewan-adsl-0.9.3-r23
5 files changed, 523 insertions, 8 deletions
diff --git a/net-dialup/bewan-adsl/ChangeLog b/net-dialup/bewan-adsl/ChangeLog
index 43caf8a5a6ec..5ebac34c2ee7 100644
--- a/net-dialup/bewan-adsl/ChangeLog
+++ b/net-dialup/bewan-adsl/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-dialup/bewan-adsl
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/bewan-adsl/ChangeLog,v 1.12 2006/09/26 21:36:18 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/bewan-adsl/ChangeLog,v 1.13 2006/10/04 19:41:10 mrness Exp $
+
+*bewan-adsl-0.9.3-r2 (04 Oct 2006)
+
+ 04 Oct 2006; Alin Nastac <mrness@gentoo.org>
+ +files/bewan-adsl-0.9.3-kernel-2.6.18.patch, +bewan-adsl-0.9.3-r2.ebuild:
+ Fix compilation errors when build against kernel 2.6.18 (#149792).
26 Sep 2006; Alin Nastac <mrness@gentoo.org>
+files/bewan-adsl-0.9.3-kernel-2.6.17.patch,
diff --git a/net-dialup/bewan-adsl/Manifest b/net-dialup/bewan-adsl/Manifest
index 4fe0aa8dca99..23ce4ecb7a49 100644
--- a/net-dialup/bewan-adsl/Manifest
+++ b/net-dialup/bewan-adsl/Manifest
@@ -5,6 +5,10 @@ AUX bewan-adsl-0.9.3-kernel-2.6.17.patch 6724 RMD160 b12dbd75b9d63ed5d832556ef50
MD5 19e0cf58e90462b780609be1b3c4e97a files/bewan-adsl-0.9.3-kernel-2.6.17.patch 6724
RMD160 b12dbd75b9d63ed5d832556ef50a768f9368ad06 files/bewan-adsl-0.9.3-kernel-2.6.17.patch 6724
SHA256 51c4bbd9d97507e3601d94d0dd14e23f261b11b9f9a67c3c62ba9db0a55dc65b files/bewan-adsl-0.9.3-kernel-2.6.17.patch 6724
+AUX bewan-adsl-0.9.3-kernel-2.6.18.patch 12851 RMD160 966e75e71a1d98d7cc7147df401d1cab09dcb3a1 SHA1 8e88e0b392898866619bb60d5e6c7eb33bf4bef3 SHA256 d1e7413d3a32f651222e9e06a1f877ad0731fd0bcded54e753a4dfc1792452e1
+MD5 a03d0497677db693cbbc719198f69b49 files/bewan-adsl-0.9.3-kernel-2.6.18.patch 12851
+RMD160 966e75e71a1d98d7cc7147df401d1cab09dcb3a1 files/bewan-adsl-0.9.3-kernel-2.6.18.patch 12851
+SHA256 d1e7413d3a32f651222e9e06a1f877ad0731fd0bcded54e753a4dfc1792452e1 files/bewan-adsl-0.9.3-kernel-2.6.18.patch 12851
AUX bewan-adsl-0.9.3-no-strip.patch 868 RMD160 48e38949f3eab501f29dc71cb264cc5c2ebc010d SHA1 4887471a6b8e2be5e321a1d9efda7935a58a1cec SHA256 bb172cb26af3b98bc7c6f1535d3af1dad5d93f3833bc457843a9e0c99f1644a0
MD5 0ed7d2c36f8eb0bdfafe2bd5c6264c29 files/bewan-adsl-0.9.3-no-strip.patch 868
RMD160 48e38949f3eab501f29dc71cb264cc5c2ebc010d files/bewan-adsl-0.9.3-no-strip.patch 868
@@ -18,10 +22,14 @@ EBUILD bewan-adsl-0.9.3-r1.ebuild 2872 RMD160 1e01400e9314dc21b04f058946f89f69b2
MD5 1804733c947113b94460c7d6326b7f7a bewan-adsl-0.9.3-r1.ebuild 2872
RMD160 1e01400e9314dc21b04f058946f89f69b23ab09f bewan-adsl-0.9.3-r1.ebuild 2872
SHA256 490639bb0e727cf3e97f07887d9a5df198f9a132228fcf88f8154b854dbfb8a2 bewan-adsl-0.9.3-r1.ebuild 2872
-MISC ChangeLog 2329 RMD160 1aa52cec5eae4bb6ae5000f6c0379cc3c0478a54 SHA1 893ad5a7d81602438780da11ff4c2681175a7f4d SHA256 1d16de2565609d9078f16331986824b866ff55f1a0c07024e439661993970a2b
-MD5 441dce0e9faea789d0fb74dcde605285 ChangeLog 2329
-RMD160 1aa52cec5eae4bb6ae5000f6c0379cc3c0478a54 ChangeLog 2329
-SHA256 1d16de2565609d9078f16331986824b866ff55f1a0c07024e439661993970a2b ChangeLog 2329
+EBUILD bewan-adsl-0.9.3-r2.ebuild 2952 RMD160 e7ae44f1bfe279ac0ae0f9bdfd038b84f0a312a9 SHA1 a2542a4ed517296a7eb2d03012c91f9400f319c3 SHA256 04c94b2c9118a30164c474a816aabb777177d0172fc1bc5d3a3dbf9695d71a68
+MD5 875530838e33558085c7f607af600cc3 bewan-adsl-0.9.3-r2.ebuild 2952
+RMD160 e7ae44f1bfe279ac0ae0f9bdfd038b84f0a312a9 bewan-adsl-0.9.3-r2.ebuild 2952
+SHA256 04c94b2c9118a30164c474a816aabb777177d0172fc1bc5d3a3dbf9695d71a68 bewan-adsl-0.9.3-r2.ebuild 2952
+MISC ChangeLog 2558 RMD160 a4b82cd5aeff3dc82e315cfc5edc789fef2e2c07 SHA1 334c1995148159ea39d919f38012f4e05fd604e3 SHA256 333a8a35c7c2283628963a1e4546949ecec4aef1228d31562067460d056e84b4
+MD5 21e213ad5fe2489beff2febeff9e9037 ChangeLog 2558
+RMD160 a4b82cd5aeff3dc82e315cfc5edc789fef2e2c07 ChangeLog 2558
+SHA256 333a8a35c7c2283628963a1e4546949ecec4aef1228d31562067460d056e84b4 ChangeLog 2558
MISC metadata.xml 244 RMD160 d019a30c66a0973b91a78b298ead869bc95e116e SHA1 8c372c5959e7fdbd256a2d3f33a2cc6b410d9fc5 SHA256 8442a611ecdc33f97baafbc1bab688260b422f67f2bdef929279263ecb2e61b6
MD5 a8f204f0f809d594d055af2f544329c7 metadata.xml 244
RMD160 d019a30c66a0973b91a78b298ead869bc95e116e metadata.xml 244
@@ -29,10 +37,13 @@ SHA256 8442a611ecdc33f97baafbc1bab688260b422f67f2bdef929279263ecb2e61b6 metadata
MD5 1054945beb059f16ad93ccf247ab664b files/digest-bewan-adsl-0.9.3-r1 292
RMD160 52b3594262473a39daaf2105a4edca91135ac155 files/digest-bewan-adsl-0.9.3-r1 292
SHA256 4a7fb1dc4bbe1b7d9e132ea075423130865afe729f9f0370646a534af81ed500 files/digest-bewan-adsl-0.9.3-r1 292
+MD5 1054945beb059f16ad93ccf247ab664b files/digest-bewan-adsl-0.9.3-r2 292
+RMD160 52b3594262473a39daaf2105a4edca91135ac155 files/digest-bewan-adsl-0.9.3-r2 292
+SHA256 4a7fb1dc4bbe1b7d9e132ea075423130865afe729f9f0370646a534af81ed500 files/digest-bewan-adsl-0.9.3-r2 292
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
-iD8DBQFFGZ1d3sf9c6kjmR8RAt5yAJ0cqvuPgA4YPW3sUB7NBj5/xqAs+wCeI+nW
-nkVj/RWqkL2NlmXdEj2sRa8=
-=x0le
+iD8DBQFFJA5h3sf9c6kjmR8RAsYpAKCmsCV+K/m+x7Wm0R9Ykb9yuJwxJQCdHg3V
+wJcH9QnxeQ3IGFsDTt2OACY=
+=g8aM
-----END PGP SIGNATURE-----
diff --git a/net-dialup/bewan-adsl/bewan-adsl-0.9.3-r2.ebuild b/net-dialup/bewan-adsl/bewan-adsl-0.9.3-r2.ebuild
new file mode 100644
index 000000000000..884d6317095f
--- /dev/null
+++ b/net-dialup/bewan-adsl/bewan-adsl-0.9.3-r2.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/bewan-adsl/bewan-adsl-0.9.3-r2.ebuild,v 1.1 2006/10/04 19:41:10 mrness Exp $
+
+inherit eutils linux-mod
+
+DESCRIPTION="Bewan ADSL PCI&USB st driver"
+SRC_URI="http://www.bewan.com/bewan/drivers/A1012-A1006-A904-A888-A983-${PV}.tgz"
+HOMEPAGE="http://www.bewan.com/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="usb pcitimer slowpcibridge kt400"
+
+DEPEND="virtual/linux-sources"
+RDEPEND=""
+
+S="${WORKDIR}/unicorn"
+
+PCI_S="${S}/unicorn_pci"
+USB_S="${S}/unicorn_usb"
+BUILD_PARAMS="KERNEL_SOURCES=${KV_DIR} KVERS=${KV_FULL}"
+BUILD_TARGETS="modules"
+CONFIG_CHECK="ATM"
+ATM_ERROR="This driver requires you to build your kernel with support for Asynchronous Transfer Mode (ATM)"
+
+pkg_setup() {
+ MODULE_NAMES="unicorn_pci_atm(extra:${PCI_S}) unicorn_pci_eth(extra:${PCI_S})"
+ use usb && MODULE_NAMES="${MODULE_NAMES} unicorn_usb_atm(extra:${USB_S}) unicorn_usb_eth(extra:${USB_S})"
+
+ linux-mod_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ # Fix "unresolved symbol set_cpus_allowed" on SMP kernels (#122103)
+ # Upstream consider actual version to be thread safe
+ epatch "${FILESDIR}/${P}-smp.patch"
+
+ local f
+ for f in msw/*.cpp amu/*.cpp ; do
+ mv ${f} ${f%pp}
+ done
+ epatch "${FILESDIR}/${P}-kernel-2.6.18.patch"
+ epatch "${FILESDIR}/${P}-no-strip.patch"
+
+ # Declare desired COPTIONS in the Makefile for the PCI module
+ use kt400 && sed -i 's/^\(COPTIONS *= *\)/\1 -DKT400/g' "${PCI_S}/Makefile"
+ use pcitimer && sed -i 's/^\(COPTIONS *= *\)/\1 -DUSE_HW_TIMER/g' "${PCI_S}/Makefile"
+ use slowpcibridge && sed -i 's/^\(COPTIONS *= *\)/\1 -DPCI_BRIDGE_WORKAROUND/g' "${PCI_S}/Makefile"
+
+ # Fix up broken Makefiles
+ convert_to_m "${PCI_S}/Makefile"
+ use usb && convert_to_m "${USB_S}/Makefile"
+}
+
+src_compile() {
+ einfo "Build common library"
+ cd "${S}/libm"
+ emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die
+
+ einfo "Building tools"
+ cd "${S}/tools"
+ emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
+ cd "${S}/unicorntest"
+ emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
+
+ linux-mod_src_compile
+}
+
+src_install() {
+ linux-mod_src_install
+
+ cd "${S}"
+ #Install tools
+ dodir /usr/bin
+ cd "${S}/tools" && einstall DESTDIR="${D}" prefix=/usr || \
+ die "Cannot install tools"
+ cd "${S}/unicorntest" && einstall DESTDIR="${D}" prefix=/usr || \
+ die "Cannot install unicorntest"
+ doman "${S}/Documentation/unicorntest.8"
+
+ #Install documantation
+ cd "${S}"
+ dodoc README
+ docinto RFCs
+ dodoc RFCs/*
+ docinto scripts
+ dodoc scripts/*
+}
+
+pkg_postinst() {
+ einfo "To load the driver do 'modprobe unicorn_atm' and 'modprobe unicorn_pci' "
+ einfo "and then do what you want with it (configure your pppd)"
+ einfo "OR"
+ einfo "it's time to look at the README file, the scripts directory gives you"
+ einfo "two comprehensive ways to load the driver, configure pppd and launch it."
+
+ linux-mod_pkg_postinst
+}
diff --git a/net-dialup/bewan-adsl/files/bewan-adsl-0.9.3-kernel-2.6.18.patch b/net-dialup/bewan-adsl/files/bewan-adsl-0.9.3-kernel-2.6.18.patch
new file mode 100644
index 000000000000..8d1df64f170b
--- /dev/null
+++ b/net-dialup/bewan-adsl/files/bewan-adsl-0.9.3-kernel-2.6.18.patch
@@ -0,0 +1,392 @@
+diff -Nru unicorn.orig/amu/amas.c unicorn/amu/amas.c
+--- unicorn.orig/amu/amas.c 2003-09-26 14:19:08.000000000 +0300
++++ unicorn/amu/amas.c 2006-10-04 22:33:55.686438500 +0300
+@@ -23,9 +23,10 @@
+ // ADSL Modem Software calls this function to report any state changes
+ void AMSW_ANT_reportModemStateChange(AMSW_ModemState p_ModemState)
+ {
++ char *s;
++
+ g_ModemState = p_ModemState;
+
+- char *s;
+ switch(p_ModemState)
+ {
+ case C_AMSW_IDLE : s = "IDLE"; break;
+diff -Nru unicorn.orig/amu/amu.c unicorn/amu/amu.c
+--- unicorn.orig/amu/amu.c 2006-10-04 22:33:24.112465250 +0300
++++ unicorn/amu/amu.c 2006-10-04 22:35:11.731191000 +0300
+@@ -77,8 +77,14 @@
+ extern unsigned long Vendor_Id_code_Globspan;
+ unsigned long Vendor_Id_code_Globspan=0;
+
+-extern "C" void HandleAtmError(void);
+-extern "C" void HandleLeds(void);
++#ifdef __cplusplus
++extern "C" {
++#endif
++ void HandleAtmError(void);
++ void HandleLeds(void);
++#ifdef __cplusplus
++}
++#endif
+
+ unsigned long amu_init_modem(unsigned short MODE);
+ unsigned long amu_init_modem(unsigned short MODE)
+@@ -165,24 +171,27 @@
+ return l_RetCode;
+ }
+
+-void AMUTask(unsigned long,unsigned long , unsigned long , unsigned long )
++void AMUTask(unsigned long Arg1, unsigned long Arg2, unsigned long Arg3, unsigned long Arg4)
+ {
+ unsigned long l_RetCode = C_AMSW_REJ;
+ //static int l_Lit = 0;
+ static bool PM_toggle = TRUE;
+
+- PRINT_ERROR("FmPollingRate=%ldms,InitTimeout=%ldms,ActTimeout=%ld\n",
+- FmPollingRate,InitTimeout,ActTimeout);
+-
+ unsigned long PM_FM_POLLING_RATE = FmPollingRate;
+ unsigned long WAITFOR_SHOWTIME_COUNT = InitTimeout / PM_FM_POLLING_RATE;
+ unsigned long WAITFOR_INIT_COUNT = ActTimeout / PM_FM_POLLING_RATE;
+ unsigned long RETRY_WAIT_TIME = RETRY_WAIT_TIME_MIN_MSEC / PM_FM_POLLING_RATE;
+- if (RetryTime > RETRY_WAIT_TIME_MIN_MSEC) // STM Gian Set RetryTime Only if is Bigger then minimum value
+- RETRY_WAIT_TIME = RetryTime / PM_FM_POLLING_RATE;
+ unsigned long INIT_POLLING_TIME = 5; //(??????)
+ unsigned long WAITFOR_DISORDERLY_COUNT = 3;
+
++ UINT delay = 0;
++
++ if (RetryTime > RETRY_WAIT_TIME_MIN_MSEC) // STM Gian Set RetryTime Only if is Bigger then minimum value
++ RETRY_WAIT_TIME = RetryTime / PM_FM_POLLING_RATE;
++
++ PRINT_ERROR("FmPollingRate=%ldms,InitTimeout=%ldms,ActTimeout=%ld\n",
++ FmPollingRate,InitTimeout,ActTimeout);
++
+ NEAR_LCDNI_COUNT = LCD_Trig / PM_FM_POLLING_RATE;
+ NEAR_LCDI_COUNT = NEAR_LCDNI_COUNT;
+ NEAR_LOS_COUNT = LOS_LOF_Trig / PM_FM_POLLING_RATE;
+@@ -194,8 +203,6 @@
+ FAR_LOS_SHORT_COUNT = NEAR_LOS_COUNT;
+ FAR_LOF_SHORT_COUNT = NEAR_LOS_COUNT;
+
+- UINT delay = 0;
+-
+ while (amu_go)
+ {
+ xtm_wkafter(500);
+@@ -279,7 +286,7 @@
+ g_WaitForDisorderly++;
+ if(g_WaitForDisorderly >= WAITFOR_DISORDERLY_COUNT)
+ {
+-
++ int i;
+
+ // if (RetryTime != 0)
+ // msw_report_event(AMU_EVENT_RETRY,0);
+@@ -297,7 +304,7 @@
+ if(l_RetCode != C_AMSW_ACK) {
+ PRINT_ERROR("Error in AMSW_ANT_requestModemStateChange(C_AMSW_IDLE) = %d\n", l_RetCode);
+ }
+- else for (int i=0; i<6; i++)
++ else for (i=0; i<6; i++)
+ {
+ if (g_ModemState == C_AMSW_IDLE || GlobalRemove) break;
+ xtm_wkafter(500);
+@@ -361,8 +368,8 @@
+ //####################### Loss Of Signal ##############################
+
+ if( ((g_def_bitmap_set.near_end.status & LOS) == LOS) ||
+- ((g_def_bitmap_set.near_end.status & LOS) == 0) &&
+- ((g_def_bitmap_set.near_end.change & LOS) == LOS) )
++ (((g_def_bitmap_set.near_end.status & LOS) == 0) &&
++ ((g_def_bitmap_set.near_end.change & LOS) == LOS)) )
+ {
+ g_NEAR_LOS++;
+ }
+@@ -371,8 +378,8 @@
+ g_NEAR_LOS = 0;
+ }
+ if( ((g_def_bitmap_set.far_end.status & LOS) == LOS) ||
+- ((g_def_bitmap_set.far_end.status & LOS) == 0) &&
+- ((g_def_bitmap_set.far_end.change & LOS) == LOS) )
++ (((g_def_bitmap_set.far_end.status & LOS) == 0) &&
++ ((g_def_bitmap_set.far_end.change & LOS) == LOS)) )
+ {
+ g_FAR_LOS++;
+ }
+diff -Nru unicorn.orig/amu/bsp.h unicorn/amu/bsp.h
+--- unicorn.orig/amu/bsp.h 2006-10-04 22:33:24.112465250 +0300
++++ unicorn/amu/bsp.h 2006-10-04 22:32:34.029335250 +0300
+@@ -18,7 +18,9 @@
+ #define DMT_IN_PIN0_MASK 0x0001 // GP_IN0 bit 0
+ #define DMT_IN_PIN1_MASK 0x0002 // GP_IN1 bit 1
+
++#ifdef __cplusplus
+ extern "C" {
++#endif
+
+ unsigned short initializeBoard(void);
+ unsigned long powerUp_Modem_Chipset (unsigned long Chipset);
+@@ -26,6 +28,8 @@
+ unsigned long pull_Modem_Chipset_out_of_reset(unsigned long Chipset);
+ unsigned long put_Modem_Chipset_in_reset(unsigned long Chipset);
+
++#ifdef __cplusplus
+ } // extern "C"
++#endif
+
+ #endif
+diff -Nru unicorn.orig/amu/bsp_pci.c unicorn/amu/bsp_pci.c
+--- unicorn.orig/amu/bsp_pci.c 2006-10-04 22:33:24.112465250 +0300
++++ unicorn/amu/bsp_pci.c 2006-10-04 22:32:34.029335250 +0300
+@@ -98,10 +98,18 @@
+ return 0;
+ }
+
+-extern "C" void HandleAtmError(void)
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++void HandleAtmError(void)
+ {
+ }
+
+-extern "C" void HandleLeds(void)
++void HandleLeds(void)
+ {
+ }
++
++#ifdef __cplusplus
++}
++#endif
+diff -Nru unicorn.orig/msw/msw.c unicorn/msw/msw.c
+--- unicorn.orig/msw/msw.c 2006-10-04 22:33:24.112465250 +0300
++++ unicorn/msw/msw.c 2006-10-04 22:32:34.029335250 +0300
+@@ -6,7 +6,7 @@
+ // Copyright STMicroelectronics 2000
+ // Copyright F.H.L.P. 2000
+ //----------------------------------------------------------------------
+-#include <string.h>
++// #include <string.h>
+ #include "types.h"
+ #include "tracetool.h"
+ #include "hal.h"
+@@ -27,7 +27,7 @@
+ extern bool L3_flag;
+ extern unsigned long GlobalRemove;
+
+-#if 1
++#if 0
+ extern void *operator new(size_t size)
+ {
+ void *ptr;
+@@ -186,8 +186,9 @@
+ }
+ else
+ {
++ int i;
+ PRINT_ERROR("Waiting 5 sec to verify L3_executed\n");
+- for (int i=0; i<10; i++)
++ for (i=0; i<10; i++)
+ {
+ // Abort everything on surprise removal
+ if (GlobalRemove) return;
+diff -Nru unicorn.orig/unicorn_atm/unicorn_atmdrv.c unicorn/unicorn_atm/unicorn_atmdrv.c
+--- unicorn.orig/unicorn_atm/unicorn_atmdrv.c 2006-10-04 22:33:24.112465250 +0300
++++ unicorn/unicorn_atm/unicorn_atmdrv.c 2006-10-04 22:32:34.029335250 +0300
+@@ -101,7 +101,7 @@
+ struct unicorn_atmdrv *unicorn_atmdrv = NULL;
+
+ // driver parameters
+-unsigned char *mac_address=NULL;
++char mac_address[ETH_ALEN*2 + 1] = { 0x0 };
+ #if DEBUG
+ #ifdef ATM_DRIVER
+ unsigned long DebugLevel=0; // ATM_D,DATA_D
+@@ -1293,10 +1293,10 @@
+ return 0;
+ }
+
+-MODULE_PARM(mac_address, "s");
++module_param_string(mac_address, mac_address, sizeof(mac_address), 0);
+ #if DEBUG
+ #ifdef ATM_DRIVER
+-MODULE_PARM(DebugLevel, "i");
++module_param(DebugLevel, ulong, 0);
+ #endif
+ #endif
+
+diff -Nru unicorn.orig/unicorn_eth/unicorn_ethdrv.c unicorn/unicorn_eth/unicorn_ethdrv.c
+--- unicorn.orig/unicorn_eth/unicorn_ethdrv.c 2006-10-04 22:33:24.116465500 +0300
++++ unicorn/unicorn_eth/unicorn_ethdrv.c 2006-10-04 22:32:34.029335250 +0300
+@@ -140,12 +140,12 @@
+ struct unicorn_ethdrv *unicorn_ethdrv = NULL;
+
+ // driver parameters
+-static char *if_name = NULL;
+-static unsigned char *mac_address=NULL;
++static char if_name[IFNAMSIZ] = { 0x0 };
++static char mac_address[ETH_ALEN*2 + 1] = { 0x0 };
+ static int VPI= ATM_VPI_UNSPEC;
+ static int VCI= ATM_VCI_UNSPEC;
+-static char *PROTOCOL = NULL;
+-static char *ENCAPS = NULL;
++static char PROTOCOL[8] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 };
++static char ENCAPS[11] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 };
+ #if DEBUG
+ #ifdef ETH_DRIVER
+ unsigned long DebugLevel=0; // ATM_D,DATA_D
+@@ -1355,15 +1355,15 @@
+ WARN("\n");
+ }
+
+-MODULE_PARM(if_name,"s");
+-MODULE_PARM(mac_address, "s");
+-MODULE_PARM(VPI, "i");
+-MODULE_PARM(VCI, "i");
+-MODULE_PARM(PROTOCOL, "s");
+-MODULE_PARM(ENCAPS, "s");
++module_param_string(if_name, if_name, sizeof(if_name), 0);
++module_param_string(mac_address, mac_address, sizeof(mac_address), 0);
++module_param(VPI, int, 0);
++module_param(VCI, int, 0);
++module_param_string(PROTOCOL, PROTOCOL, sizeof(PROTOCOL), 0);
++module_param_string(ENCAPS, ENCAPS, sizeof(ENCAPS), 0);
+ #if DEBUG
+ #ifdef ETH_DRIVER
+-MODULE_PARM(DebugLevel, "i");
++module_param(DebugLevel, ulong, 0);
+ #endif
+ #endif
+
+diff -Nru unicorn.orig/unicorn_pci/unicorn_pcidrv.c unicorn/unicorn_pci/unicorn_pcidrv.c
+--- unicorn.orig/unicorn_pci/unicorn_pcidrv.c 2006-10-04 22:33:24.116465500 +0300
++++ unicorn/unicorn_pci/unicorn_pcidrv.c 2006-10-04 22:32:34.033335500 +0300
+@@ -2157,38 +2157,25 @@
+ }
+
+ /* module parameters for MSW */
+-MODULE_PARM(ActivationMode, "i");
+-//MODULE_PARM(ActivationTaskTimeout, "i");
+-MODULE_PARM(ActTimeout, "i");
+-MODULE_PARM(AutoActivation, "i");
+-//MODULE_PARM(BreakOnEntry, "i");
+-MODULE_PARM(DownstreamRate, "i");
+-MODULE_PARM(eocTrace, "i");
+-//MODULE_PARM(ExchangeDelay, "i");
+-MODULE_PARM(FmPollingRate, "i");
+-//MODULE_PARM(g_RefGain, "i");
+-MODULE_PARM(g_TeqMode, "i");
+-MODULE_PARM(InitTimeout, "i");
+-MODULE_PARM(Interoperability, "i");
+-MODULE_PARM(LCD_Trig, "i");
+-MODULE_PARM(LOS_LOF_Trig, "i");
+-MODULE_PARM(LoopbackMode, "i");
+-MODULE_PARM(MswDebugLevel, "i");
+-MODULE_PARM(RetryTime, "i");
+-MODULE_PARM(setINITIALDAC, "i");
+-//MODULE_PARM(TrainingDelay, "i");
+-//MODULE_PARM(TruncateMode, "i");
+-MODULE_PARM(useAFE, "i");
+-//MODULE_PARM(useRFC019v, "i");
+-//MODULE_PARM(useRFC029v, "i");
+-//MODULE_PARM(useRFC033v, "i");
+-//MODULE_PARM(useRFC040v, "i");
+-MODULE_PARM(useRFC041v, "i");
+-//MODULE_PARM(useRFCFixedRate, "i");
+-//MODULE_PARM(useVCXO, "i");
+-//MODULE_PARM(_no_TS652, "i");
++module_param(ActivationMode, ulong, 0);
++module_param(ActTimeout, ulong, 0);
++module_param(AutoActivation, ulong, 0);
++module_param(DownstreamRate, ulong, 0);
++module_param(eocTrace, ulong, 0);
++module_param(FmPollingRate, ulong, 0);
++module_param(g_TeqMode, ushort, 0);
++module_param(InitTimeout, ulong, 0);
++module_param(Interoperability, ulong, 0);
++module_param(LCD_Trig, ulong, 0);
++module_param(LOS_LOF_Trig, ulong, 0);
++module_param(LoopbackMode, ulong, 0);
++module_param(MswDebugLevel, ulong, 0);
++module_param(RetryTime, ulong, 0);
++module_param(setINITIALDAC, ulong, 0);
++module_param(useAFE, ulong, 0);
++module_param(useRFC041v, ulong, 0);
+ #if DEBUG
+-MODULE_PARM(DebugLevel, "i");
++module_param(DebugLevel, ulong, 0);
+ #endif
+
+ static int __init
+diff -Nru unicorn.orig/unicorn_usb/unicorn_usbdrv.c unicorn/unicorn_usb/unicorn_usbdrv.c
+--- unicorn.orig/unicorn_usb/unicorn_usbdrv.c 2006-10-04 22:33:24.120465750 +0300
++++ unicorn/unicorn_usb/unicorn_usbdrv.c 2006-10-04 22:32:34.033335500 +0300
+@@ -2289,39 +2289,32 @@
+ };
+
+ /* module parameters for MSW */
+-MODULE_PARM(ActivationMode, "i");
+-//MODULE_PARM(ActivationTaskTimeout, "i");
+-MODULE_PARM(ActTimeout, "i");
+-MODULE_PARM(AutoActivation, "i");
+-//MODULE_PARM(BreakOnEntry, "i");
+-MODULE_PARM(DownstreamRate, "i");
+-MODULE_PARM(eocTrace, "i");
+-MODULE_PARM(ExchangeDelay, "i");
+-MODULE_PARM(FmPollingRate, "i");
+-MODULE_PARM(g_RefGain, "i");
+-MODULE_PARM(g_TeqMode, "i");
+-MODULE_PARM(InitTimeout, "i");
+-MODULE_PARM(Interoperability, "i");
+-MODULE_PARM(LCD_Trig, "i");
+-MODULE_PARM(LOS_LOF_Trig, "i");
+-MODULE_PARM(LoopbackMode, "i");
+-MODULE_PARM(MswDebugLevel, "i");
+-MODULE_PARM(RetryTime, "i");
+-//MODULE_PARM(setINITIALDAC, "i");
+-MODULE_PARM(TrainingDelay, "i");
+-//MODULE_PARM(TruncateMode, "i");
+-MODULE_PARM(useAFE, "i");
+-MODULE_PARM(useRFC019v, "i");
+-MODULE_PARM(useRFC029v, "i");
+-//MODULE_PARM(useRFC033v, "i");
+-MODULE_PARM(useRFC040v, "i");
+-MODULE_PARM(useRFC041v, "i");
+-//MODULE_PARM(useRFCFixedRate, "i");
+-MODULE_PARM(useVCXO, "i");
+-MODULE_PARM(_no_TS652, "i");
+-//MODULE_PARM(FrameNumber, "i");
++module_param(ActivationMode, ulong, 0);
++module_param(ActTimeout, ulong, 0);
++module_param(AutoActivation, ulong, 0);
++module_param(DownstreamRate, ulong, 0);
++module_param(eocTrace, ulong, 0);
++module_param(ExchangeDelay, ulong, 0);
++module_param(FmPollingRate, ulong, 0);
++module_param(g_RefGain, ulong, 0);
++module_param(g_TeqMode, ushort, 0);
++module_param(InitTimeout, ulong, 0);
++module_param(Interoperability, ulong, 0);
++module_param(LCD_Trig, ulong, 0);
++module_param(LOS_LOF_Trig, ulong, 0);
++module_param(LoopbackMode, ulong, 0);
++module_param(MswDebugLevel, ulong, 0);
++module_param(RetryTime, ulong, 0);
++module_param(TrainingDelay, ulong, 0);
++module_param(useAFE, ulong, 0);
++module_param(useRFC019v, ulong, 0);
++module_param(useRFC029v, ulong, 0);
++module_param(useRFC040v, ulong, 0);
++module_param(useRFC041v, ulong, 0);
++module_param(useVCXO, ulong, 0);
++module_param(_no_TS652, ulong, 0);
+ #if DEBUG
+-MODULE_PARM(DebugLevel, "i");
++module_param(DebugLevel, ulong, 0);
+ #endif
+
+ //----------------------------------------------------------------------
diff --git a/net-dialup/bewan-adsl/files/digest-bewan-adsl-0.9.3-r2 b/net-dialup/bewan-adsl/files/digest-bewan-adsl-0.9.3-r2
new file mode 100644
index 000000000000..668a91292416
--- /dev/null
+++ b/net-dialup/bewan-adsl/files/digest-bewan-adsl-0.9.3-r2
@@ -0,0 +1,3 @@
+MD5 ff9829f03168279a079d05aea780ee99 A1012-A1006-A904-A888-A983-0.9.3.tgz 1176291
+RMD160 50cd3201b05e931e541bd9a2dc4711c1ac044ec8 A1012-A1006-A904-A888-A983-0.9.3.tgz 1176291
+SHA256 48a789f7ef026248a4a666ff5da952ef458d1a1ae7a7bc162a6d01e0ac38a954 A1012-A1006-A904-A888-A983-0.9.3.tgz 1176291