Skip to contentSkip to conversation

pcmcia: replace cardctl with in-kernel socketctl

PATCH New Dominik Brodowski 1 participant 1 message Apr 2, 2003 Pcmcia

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pcmcia: replace cardctl with in-kernel socketctl

Socketctl can replace the userspace tool "cardctl" and provide the user with many useful information in sysfs directories (one per socket) below the actual socket device. Also, "insert", "eject", "suspend", "resume" and "reset" commands can be echo'ed into the file "status" in that directory.

As this does not depend on any other change, is a Good Thing IMO, and will us enable to get rid of the ds.c ioctl after my devices/hotplug/matching changes are merged.

Dominik

 Kconfig     |    9 +
 Makefile    |    2
 socketctl.c |  448 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 459 insertions(+)
drivers/pcmcia/Kconfig +9 -0
diff -ruN linux-original/drivers/pcmcia/Kconfig linux/drivers/pcmcia/Kconfig
@@ -103,5 +103,14 @@
 	bool
 	default y if ISA && !ARCH_SA1100 && !ARCH_CLPS711X
 
+config PCMCIA_SOCKETCTL
+	tristate "Socket-Control"
+	depends on PCMCIA
+	help
+	  Say Y here for the new in-kernel functionality of the tool
+	  "cardctl". Specifically, you will be able to pass "insert",
+	  "eject", "suspend", "resume" and "reset" commands to the
+	  PCMCIA socket using a new sysfs interface. If unsure, say Y.
+
 endmenu
 
drivers/pcmcia/Makefile +2 -0
diff -ruN linux-original/drivers/pcmcia/Makefile linux/drivers/pcmcia/Makefile
@@ -7,6 +7,8 @@
   obj-$(CONFIG_PCMCIA) 				+= yenta_socket.o
 endif
 
+obj-$(CONFIG_PCMCIA_SOCKETCTL)			+= socketctl.o
+
 obj-$(CONFIG_I82365)				+= i82365.o
 obj-$(CONFIG_I82092)				+= i82092.o
 obj-$(CONFIG_TCIC)				+= tcic.o
drivers/pcmcia/socketctl.c +448 -0

448 lines not on this page · raw message