884
|
1 |
--- tu-2.6.0b/adddrv.sh.orig 2008-02-09 23:48:41.696455870 +0530
|
|
2 |
+++ tu-2.6.0b/adddrv.sh 2008-02-09 23:49:02.053319040 +0530
|
|
3 |
@@ -35,27 +35,5 @@
|
|
4 |
set DEVLIST = ($DEVLIST '"pci10b9,5261"') # ULi integrated nic
|
|
5 |
set DEVLIST = ($DEVLIST '"pci10b9,5263"') # ULi integrated nic
|
|
6 |
|
|
7 |
-#echo $DEVLIST
|
|
8 |
-
|
|
9 |
-set DEVLIST2 = ( )
|
|
10 |
-foreach i ($DEVLIST)
|
|
11 |
- set pcidev = `grep $i /etc/driver_aliases`
|
|
12 |
- echo $pcidev
|
|
13 |
- if ("$pcidev" == "") then
|
|
14 |
- set DEVLIST2 = ( $DEVLIST2 "$i" )
|
|
15 |
- endif
|
|
16 |
-end
|
|
17 |
-
|
|
18 |
-if ("$DEVLIST2" == "") then
|
|
19 |
- echo nothing to do.
|
|
20 |
- exit 1
|
|
21 |
-endif
|
|
22 |
-
|
|
23 |
-set existing = `grep "^tu " /etc/driver_aliases`
|
|
24 |
-echo $existing
|
|
25 |
-if ("$existing" == "") then
|
|
26 |
- /usr/sbin/add_drv -n -v -m '* 0600 root sys' -i "$DEVLIST2" tu
|
|
27 |
-else
|
|
28 |
- /usr/sbin/update_drv -a -v -m '* 0600 root sys' -i "$DEVLIST2" tu
|
|
29 |
-endif
|
|
30 |
+/usr/sbin/add_drv -n -v -m '* 0600 root sys' -i "$DEVLIST" tu
|
|
31 |
sync
|
1698
|
32 |
--- tu-2.6.0b/tu_gem.c.orig 2007-09-25 07:07:00.000000000 -0400
|
|
33 |
+++ tu-2.6.0b/tu_gem.c 2009-02-19 23:10:01.232578853 -0500
|
|
34 |
@@ -4918,6 +4918,9 @@
|
|
35 |
* OS depend (loadable streams driver) routine
|
|
36 |
*/
|
|
37 |
/* ======================================================== */
|
|
38 |
+#ifdef GEM_CONFIG_GLDv3
|
|
39 |
+GEM_STREAM_OPS(tu_ops, tuattach, tudetach);
|
|
40 |
+#else
|
|
41 |
static struct module_info tuminfo = {
|
|
42 |
0, /* mi_idnum */
|
|
43 |
"tu", /* mi_idname */
|
|
44 |
@@ -4985,7 +4988,7 @@
|
|
45 |
NULL, /* devo_bus_ops */
|
|
46 |
gem_power /* devo_power */
|
|
47 |
};
|
|
48 |
-
|
|
49 |
+#endif /* GEM_CONFIG_GLDv3 */
|
|
50 |
static struct modldrv modldrv = {
|
|
51 |
&mod_driverops, /* Type of module. This one is a driver */
|
|
52 |
ident,
|