ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / net / sk98lin / Makefile
1 #
2 # Makefile for the SysKonnect SK-98xx device driver.
3 #
4
5
6 #
7 # Standalone driver params
8 # SKPARAM += -DSK_KERNEL_24
9 # SKPARAM += -DSK_KERNEL_24_26
10 # SKPARAM += -DSK_KERNEL_26
11 # SKPARAM += -DSK_KERNEL_22_24
12
13 obj-$(CONFIG_SK98LIN) += sk98lin.o
14 sk98lin-objs    :=      \
15                 skge.o          \
16                 skdim.o         \
17                 skaddr.o        \
18                 skgehwt.o       \
19                 skgeinit.o      \
20                 skgepnmi.o      \
21                 skgesirq.o      \
22                 ski2c.o         \
23                 sklm80.o        \
24                 skqueue.o       \
25                 skrlmt.o        \
26                 sktimer.o       \
27                 skvpd.o         \
28                 skxmac2.o       \
29                 skproc.o        \
30                 skcsum.o
31
32 # DBGDEF =  \
33 # -DDEBUG
34
35 ifdef DEBUG
36 DBGDEF +=  \
37 -DSK_DEBUG_CHKMOD=0x00000000L \
38 -DSK_DEBUG_CHKCAT=0x00000000L
39 endif
40
41
42 # **** possible debug modules for SK_DEBUG_CHKMOD *****************
43 # SK_DBGMOD_MERR        0x00000001L     /* general module error indication */
44 # SK_DBGMOD_HWM         0x00000002L     /* Hardware init module */
45 # SK_DBGMOD_RLMT        0x00000004L     /* RLMT module */
46 # SK_DBGMOD_VPD         0x00000008L     /* VPD module */
47 # SK_DBGMOD_I2C         0x00000010L     /* I2C module */
48 # SK_DBGMOD_PNMI        0x00000020L     /* PNMI module */
49 # SK_DBGMOD_CSUM        0x00000040L     /* CSUM module */
50 # SK_DBGMOD_ADDR        0x00000080L     /* ADDR module */
51 # SK_DBGMOD_DRV         0x00010000L     /* DRV module */
52
53 # **** possible debug categories for SK_DEBUG_CHKCAT **************
54 # *** common modules ***
55 # SK_DBGCAT_INIT        0x00000001L     module/driver initialization
56 # SK_DBGCAT_CTRL        0x00000002L     controlling: add/rmv MCA/MAC and other controls (IOCTL)
57 # SK_DBGCAT_ERR         0x00000004L     error handling paths
58 # SK_DBGCAT_TX          0x00000008L     transmit path
59 # SK_DBGCAT_RX          0x00000010L     receive path
60 # SK_DBGCAT_IRQ         0x00000020L     general IRQ handling
61 # SK_DBGCAT_QUEUE       0x00000040L     any queue management
62 # SK_DBGCAT_DUMP        0x00000080L     large data output e.g. hex dump
63 # SK_DBGCAT_FATAL       0x00000100L     large data output e.g. hex dump
64
65 # *** driver (file skge.c) ***
66 # SK_DBGCAT_DRV_ENTRY           0x00010000      entry points
67 # SK_DBGCAT_DRV_???             0x00020000      not used
68 # SK_DBGCAT_DRV_MCA             0x00040000      multicast
69 # SK_DBGCAT_DRV_TX_PROGRESS     0x00080000      tx path
70 # SK_DBGCAT_DRV_RX_PROGRESS     0x00100000      rx path
71 # SK_DBGCAT_DRV_PROGRESS        0x00200000      general runtime
72 # SK_DBGCAT_DRV_???             0x00400000      not used
73 # SK_DBGCAT_DRV_PROM            0x00800000      promiscuous mode
74 # SK_DBGCAT_DRV_TX_FRAME        0x01000000      display tx frames
75 # SK_DBGCAT_DRV_ERROR           0x02000000      error conditions
76 # SK_DBGCAT_DRV_INT_SRC         0x04000000      interrupts sources
77 # SK_DBGCAT_DRV_EVENT           0x08000000      driver events
78
79 EXTRA_CFLAGS += -Idrivers/net/sk98lin -DSK_DIAG_SUPPORT -DSK_USE_CSUM -DGENESIS -DYUKON $(DBGDEF) $(SKPARAM)
80
81 clean:
82         rm -f core *.o *.a *.s
83
84
85
86
87
88