blob: 11c2106cb045228fed468894becda24070a71cf2 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8PCMCIA_MENU:=PCMCIA support
9
10define KernelPackage/pcmcia-core
11 SUBMENU:=$(PCMCIA_MENU)
12 TITLE:=PCMCIA/CardBus support
13 DEPENDS:=@PCMCIA_SUPPORT
14 KCONFIG:= \
15 CONFIG_PCMCIA \
16 CONFIG_PCMCIA_LOAD_CIS=y \
17 CONFIG_CARDBUS \
18 CONFIG_PCCARD \
19 PCMCIA_DEBUG=n
20 FILES:= \
21 $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.ko \
22 $(LINUX_DIR)/drivers/pcmcia/pcmcia.ko
23 AUTOLOAD:=$(call AutoLoad,25,pcmcia_core pcmcia)
24endef
25
26define KernelPackage/pcmcia-core/description
27 Kernel support for PCMCIA/CardBus controllers
28endef
29
30$(eval $(call KernelPackage,pcmcia-core))
31
32
33define AddDepends/pcmcia
34 SUBMENU:=$(PCMCIA_MENU)
35 DEPENDS+=kmod-pcmcia-core $(1)
36endef
37
38
39define KernelPackage/pcmcia-rsrc
40 TITLE:=PCMCIA resource support
41 KCONFIG:=CONFIG_PCCARD_NONSTATIC=y
42 FILES:=$(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko
43 AUTOLOAD:=$(call AutoLoad,26,pcmcia_rsrc)
44 $(call AddDepends/pcmcia)
45endef
46
47define KernelPackage/pcmcia-rsrc/description
48 Kernel support for PCMCIA resource allocation
49endef
50
51$(eval $(call KernelPackage,pcmcia-rsrc))
52
53
54define KernelPackage/pcmcia-yenta
55 TITLE:=yenta socket driver
56 KCONFIG:=CONFIG_YENTA
57 FILES:=$(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
58 AUTOLOAD:=$(call AutoLoad,41,yenta_socket)
59 DEPENDS:=+kmod-pcmcia-rsrc
60 $(call AddDepends/pcmcia)
61endef
62
63$(eval $(call KernelPackage,pcmcia-yenta))
64
65
66define KernelPackage/pcmcia-serial
67 TITLE:=Serial devices support
68 KCONFIG:= \
69 CONFIG_PCMCIA_SERIAL_CS \
70 CONFIG_SERIAL_8250_CS
71 FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/serial_cs.ko
72 AUTOLOAD:=$(call AutoLoad,45,serial_cs)
73 DEPENDS:=+kmod-serial-8250
74 $(call AddDepends/pcmcia)
75endef
76
77define KernelPackage/pcmcia-serial/description
78 Kernel support for PCMCIA/CardBus serial devices
79endef
80
81$(eval $(call KernelPackage,pcmcia-serial))
82
83
84define KernelPackage/pcmcia-pd6729
85 TITLE:=Cirrus PD6729 compatible bridge support
86 KCONFIG:=CONFIG_PD6729
87 FILES:=$(LINUX_DIR)/drivers/pcmcia/pd6729.ko
88 AUTOLOAD:=$(call AutoLoad,41,pd6729)
89 DEPENDS:=+kmod-pcmcia-rsrc
90 $(call AddDepends/pcmcia)
91endef
92
93define KernelPackage/pcmcia-pd6729/description
94 Kernel support for the Cirrus PD6729 PCI-to-PCMCIA bridge
95endef
96
97$(eval $(call KernelPackage,pcmcia-pd6729))
98
99
100define KernelPackage/pcmcia-nozomi
101 TITLE:=Option Fusion+ card
102 KCONFIG:=CONFIG_NOZOMI
103 FILES:=$(LINUX_DIR)/drivers/tty/nozomi.ko
104 AUTOLOAD:=$(call AutoLoad,60,nozomi)
105 DEPENDS:=+kmod-pcmcia-rsrc
106 $(call AddDepends/pcmcia)
107endef
108
109define KernelPackage/pcmcia-nozomi/description
110 Kernel support for Option Fusion+ card
111endef
112
113$(eval $(call KernelPackage,pcmcia-nozomi))