]>
Commit | Line | Data |
---|---|---|
231d385e AF |
1 | diff -Naur dm9601-2.6.org/dm9601.h dm9601-2.6/dm9601.h |
2 | --- dm9601-2.6.org/dm9601.h 2006-11-24 10:06:02.000000000 +0100 | |
3 | +++ dm9601-2.6/dm9601.h 2008-04-04 09:54:06.000000000 +0200 | |
4 | @@ -162,6 +162,8 @@ | |
5 | DEFAULT_GPIO_RESET )\r | |
6 | DM9601_DEV( "Davicom USB-100", 0x3334, 0x1701,\r | |
7 | DEFAULT_GPIO_RESET )\r | |
8 | +DM9601_DEV( "ShanTou ST268 USB", 0x0a46, 0x0268,\r | |
9 | + DEFAULT_GPIO_RESET )\r | |
10 | DM9601_DEV( "Billionton USB-100", VENDOR_BILLIONTON, 0x0986,\r | |
11 | DEFAULT_GPIO_RESET )\r | |
12 | DM9601_DEV( "Billionton USBLP-100", VENDOR_BILLIONTON, 0x0987,\r | |
13 | diff -Naur dm9601-2.6.org/Makefile dm9601-2.6/Makefile | |
14 | --- dm9601-2.6.org/Makefile 2006-11-24 10:06:04.000000000 +0100 | |
15 | +++ dm9601-2.6/Makefile 2008-04-03 22:34:04.000000000 +0200 | |
16 | @@ -1,51 +1,17 @@ | |
17 | -##================================================================ | |
18 | -## Davicom Semiconductor Inc. For DM9601 V0.00 | |
19 | -## -------------------------------------------------------- | |
20 | -## Description: | |
21 | -## Compile driver dm9601.c to dm9601.o | |
22 | -## | |
23 | -## Modification List: | |
24 | -## 09/05/2000 Fixed SMPFALGS wrong on smp & smp_mod | |
25 | -## 08/02/2000 Changed some description string & include file path | |
26 | -## 07/25/2000 Append smp_mod and changed some descriptions | |
27 | -## 01/25/2000 by Sten Wang | |
28 | -##================================================================ | |
29 | -# Comment/uncomment the following line to disable/enable debugging | |
30 | -#DEBUG = y | |
31 | +obj-m := dm9601.o | |
32 | ||
33 | -# Add your debugging flag (or not) to CFLAGS | |
34 | -ifeq ($(DEBUG),y) | |
35 | - DEBFLAGS = -O -g # "-O" is needed to expand inlines | |
36 | -else | |
37 | - DEBFLAGS = -O2 | |
38 | -endif | |
39 | - | |
40 | -CFLAGS += $(DEBFLAGS) -I$(LDDINCDIR) | |
41 | - | |
42 | -ifneq ($(KERNELRELEASE),) | |
43 | -# call from kernel build system | |
44 | - | |
45 | -obj-m := dm9601.o | |
46 | - | |
47 | -else | |
48 | - | |
49 | -KERNELDIR ?= /lib/modules/$(shell uname -r)/build | |
50 | -PWD := $(shell pwd) | |
51 | +KDIR := /lib/modules/$(shell uname -r)/build | |
52 | +PWD := $(shell pwd) | |
53 | ||
54 | default: | |
55 | - $(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINCDIR=$(PWD)/../include modules | |
56 | - | |
57 | -endif | |
58 | - | |
59 | - | |
60 | + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules; | |
61 | +install: | |
62 | + insmod dm9601.ko | |
63 | +remove: | |
64 | + rmmod dm9601 | |
65 | ||
66 | clean: | |
67 | - rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions | |
68 | - | |
69 | -depend .depend dep: | |
70 | - $(CC) $(CFLAGS) -M *.c > .depend | |
71 | + rm -rf .tmp_versions Modules.symvers *.mod.c *.o *.ko .*.cmd | |
72 | ||
73 | + | |
74 | ||
75 | -ifeq (.depend,$(wildcard .depend)) | |
76 | -include .depend | |
77 | -endif |