Package AHCI driver
[openwrt/staging/yousong.git] / package / kernel / modules / block.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 BLOCK_MENU:=Block Devices
10
11 define KernelPackage/ata-core
12 SUBMENU:=$(BLOCK_MENU)
13 TITLE:=Serial and Parallel ATA support
14 DEPENDS:=@PCI_SUPPORT @LINUX_2_6 +kmod-scsi-core
15 KCONFIG:=CONFIG_ATA
16 FILES:=$(LINUX_DIR)/drivers/ata/libata.$(LINUX_KMOD_SUFFIX)
17 AUTOLOAD:=$(call AutoLoad,21,libata)
18 endef
19
20 $(eval $(call KernelPackage,ata-core))
21
22
23 define KernelPackage/ata-ahci
24 SUBMENU:=$(BLOCK_MENU)
25 TITLE:=AHCI Serial ATA support
26 DEPENDS:=kmod-ata-core
27 KCONFIG:=CONFIG_SATA_AHCI
28 FILES:=$(LINUX_DIR)/drivers/ata/ahci.$(LINUX_KMOD_SUFFIX)
29 AUTOLOAD:=$(call AutoLoad,41,ahci)
30 endef
31
32 define KernelPackage/ata-ahci/description
33 Support for AHCI Serial ATA controllers.
34 endef
35
36 $(eval $(call KernelPackage,ata-ahci))
37
38
39 define KernelPackage/ata-artop
40 SUBMENU:=$(BLOCK_MENU)
41 TITLE:=ARTOP 6210/6260 PATA support
42 DEPENDS:=kmod-ata-core
43 KCONFIG:=CONFIG_PATA_ARTOP
44 FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
45 AUTOLOAD:=$(call AutoLoad,41,pata_artop)
46 endef
47
48 define KernelPackage/ata-artop/description
49 PATA support for ARTOP 6210/6260 host controllers.
50 endef
51
52 $(eval $(call KernelPackage,ata-artop))
53
54
55 define KernelPackage/ata-ixp4xx-cf
56 SUBMENU:=$(BLOCK_MENU)
57 TITLE:=IXP4XX Compact Flash support
58 DEPENDS:=kmod-ata-core
59 KCONFIG:=CONFIG_PATA_IXP4XX_CF
60 FILES:=$(LINUX_DIR)/drivers/ata/pata_ixp4xx_cf.$(LINUX_KMOD_SUFFIX)
61 AUTOLOAD:=$(call AutoLoad,41,pata_ixp4xx_cf)
62 endef
63
64 define KernelPackage/ata-ixp4xx-cf/description
65 IXP4XX Compact Flash support.
66 endef
67
68 $(eval $(call KernelPackage,ata-ixp4xx-cf))
69
70
71
72 define KernelPackage/ata-piix
73 SUBMENU:=$(BLOCK_MENU)
74 TITLE:=Intel PIIX PATA/SATA support
75 DEPENDS:=kmod-ata-core +kmod-ide-core
76 KCONFIG:=CONFIG_ATA_PIIX
77 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
78 AUTOLOAD:=$(call AutoLoad,41,ata_piix)
79 endef
80
81 define KernelPackage/ata-piix/description
82 SATA support for Intel ICH5/6/7/8 series host controllers and
83 PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers.
84 endef
85
86 $(eval $(call KernelPackage,ata-piix))
87
88
89 define KernelPackage/ata-via-sata
90 SUBMENU:=$(BLOCK_MENU)
91 TITLE:=VIA SATA support
92 DEPENDS:=kmod-ata-core
93 KCONFIG:=CONFIG_SATA_VIA
94 FILES:=$(LINUX_DIR)/drivers/ata/sata_via.$(LINUX_KMOD_SUFFIX)
95 AUTOLOAD:=$(call AutoLoad,41,sata_via)
96 endef
97
98 define KernelPackage/ata-via-sata/description
99 This option enables support for VIA Serial ATA.
100 endef
101
102 $(eval $(call KernelPackage,ata-via-sata))
103
104
105 define KernelPackage/ide-core
106 SUBMENU:=$(BLOCK_MENU)
107 TITLE:=IDE (ATA/ATAPI) device support
108 KCONFIG:= \
109 CONFIG_IDE \
110 CONFIG_IDE_GENERIC \
111 CONFIG_BLK_DEV_IDE \
112 CONFIG_IDE_GENERIC \
113 CONFIG_BLK_DEV_IDEDISK \
114 CONFIG_BLK_DEV_IDEDMA_PCI=y \
115 CONFIG_BLK_DEV_IDEPCI=y
116 FILES:= \
117 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
118 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
119 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,40,ide-disk)
120 endef
121
122 define KernelPackage/ide-core/2.4
123 FILES+=$(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX)
124 AUTOLOAD+=$(call AutoLoad,30,ide-detect)
125 endef
126
127 define KernelPackage/ide-core/2.6
128 FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
129 AUTOLOAD+=$(call AutoLoad,30,ide-generic)
130 endef
131
132 define KernelPackage/ide-core/description
133 Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
134 Includes:
135 - ide-core
136 - ide-detect
137 - ide-disk
138 endef
139
140 $(eval $(call KernelPackage,ide-core))
141
142
143 define KernelPackage/ide-aec62xx
144 SUBMENU:=$(BLOCK_MENU)
145 TITLE:=Acard AEC62xx IDE driver
146 DEPENDS:=@PCI_SUPPORT +kmod-ide-core
147 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
148 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
149 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
150 endef
151
152 define KernelPackage/ide-aec62xx/description
153 Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
154 endef
155
156 $(eval $(call KernelPackage,ide-aec62xx))
157
158
159 define KernelPackage/ide-pdc202xx
160 SUBMENU:=$(BLOCK_MENU)
161 TITLE:=Promise PDC202xx IDE driver
162 DEPENDS:=@LINUX_2_4 +kmod-ide-core
163 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
164 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
165 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
166 endef
167
168 define KernelPackage/ide-pdc202xx/description
169 Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
170 controllers.
171 endef
172
173 $(eval $(call KernelPackage,ide-pdc202xx))
174
175
176 define KernelPackage/scsi-core
177 SUBMENU:=$(BLOCK_MENU)
178 TITLE:=SCSI device support
179 KCONFIG:= \
180 CONFIG_SCSI \
181 CONFIG_BLK_DEV_SD
182 FILES:= \
183 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
184 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
185 AUTOLOAD:=$(call AutoLoad,20,scsi_mod) $(call AutoLoad,40,sd_mod)
186 endef
187
188 $(eval $(call KernelPackage,scsi-core))
189
190
191 define KernelPackage/scsi-generic
192 SUBMENU:=$(BLOCK_MENU)
193 TITLE:=Kernel support for SCSI generic
194 KCONFIG:= \
195 CONFIG_CHR_DEV_SG
196 FILES:= \
197 $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
198 AUTOLOAD:=$(call AutoLoad,65,sg)
199 endef
200
201 $(eval $(call KernelPackage,scsi-generic))
202
203
204 define KernelPackage/loop
205 SUBMENU:=$(BLOCK_MENU)
206 TITLE:=Loopback device support
207 KCONFIG:= \
208 CONFIG_BLK_DEV_LOOP \
209 CONFIG_BLK_DEV_CRYPTOLOOP=n
210 FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
211 AUTOLOAD:=$(call AutoLoad,30,loop)
212 endef
213
214 define KernelPackage/loop/description
215 Kernel module for loopback device support
216 endef
217
218 $(eval $(call KernelPackage,loop))
219
220
221 define KernelPackage/nbd
222 SUBMENU:=$(BLOCK_MENU)
223 TITLE:=Network block device support
224 KCONFIG:=CONFIG_BLK_DEV_NBD
225 FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
226 AUTOLOAD:=$(call AutoLoad,30,nbd)
227 endef
228
229 define KernelPackage/nbd/description
230 Kernel module for network block device support
231 endef
232
233 $(eval $(call KernelPackage,nbd))
234
235
236 define KernelPackage/pata-rb153-cf
237 SUBMENU:=$(BLOCK_MENU)
238 DEPENDS:=kmod-ata-core @TARGET_adm5120_router_le
239 TITLE:=RouterBOARD 153 CF Slot support
240 KCONFIG:=CONFIG_PATA_RB153_CF
241 FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
242 AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf)
243 endef
244
245 define KernelPackage/pata-rb153-cf/description
246 Kernel support for the RouterBoard 153 CF slot.
247 endef
248
249 $(eval $(call KernelPackage,pata-rb153-cf))