From: Ichiro Hieda (qmwt@sapuri.co.jp)
Date: Wed Jan 03 2001 - 01:27:24 EET
Hi all,
Sorry if somebody has done the work already (no related results were given
by searche engines).
The following is patch to RocketPort that enables compilation of the driver
with kernel 2.2.18 and up (possiblly).
Please apply the patch to the latest driver (version 1.21) which is found at
ftp://tsx-11.mit.edu//pub/linux/packages/comtrol/
The patched driver works fine on both an x86 platform and a PowerMac with
kernel 2.2.18.
----------
diff -u -r -b -B comtrol/rocket.c comtrol-1.22-hie1/rocket.c
--- comtrol/rocket.c Tue Jun 13 15:40:22 2000
+++ comtrol-1.22-hie1/rocket.c Tue Jan 2 20:48:30 2001
@@ -2104,10 +2104,18 @@
num_chan = ports_per_aiop;
for (chan = 0; chan < num_chan; chan++)
sPCIModemReset(ctlp, chan, 1);
+#if (LINUX_VERSION_CODE < 0x020212) /* 2.2.18 */
__delay(loops_per_sec/2);
+#else
+ __delay(loops_per_jiffy/2 * HZ);
+#endif
for (chan = 0; chan < num_chan; chan++)
sPCIModemReset(ctlp, chan, 0);
+#if (LINUX_VERSION_CODE < 0x020212) /* 2.2.18 */
__delay(loops_per_sec);
+#else
+ __delay(loops_per_jiffy * HZ);
+#endif
}
return(1);
}
@@ -2211,10 +2219,18 @@
num_chan = sGetAiopNumChan(ctlp, 0);
for (chan = 0; chan < num_chan; chan++)
sModemReset(ctlp, chan, 1);
+#if (LINUX_VERSION_CODE < 0x020212) /* 2.2.18 */
__delay(loops_per_sec/2);
+#else
+ __delay(loops_per_jiffy/2 * HZ);
+#endif
for (chan = 0; chan < num_chan; chan++)
sModemReset(ctlp, chan, 0);
+#if (LINUX_VERSION_CODE < 0x020212) /* 2.2.18 */
__delay(loops_per_sec);
+#else
+ __delay(loops_per_jiffy * HZ);
+#endif
}
return(1);
}
----------
--- Ichiro Hieda Email: jqqzfwhu@gilat.com.pe Packet-FWD: terhi.victor@logonet.com- To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to ayq@hunterlink.net.au
This archive was generated by hypermail 2b30 : Wed Jan 03 2001 - 01:36:20 EET