Skip to contentSkip to conversation

fw-core resend

PATCH New Kristian Høgsberg 1 participant 3 messages Dec 5, 2006

lore
Share & tools
lore
#0 lore raw

cover fw-core resend

Oops, looks like the fw-core patch was to big for the list. I've split it into two parts: fw-core which is the transaction logic and bus reset handling and fw-device which is device probing and sysfs integration.

cheers,
Kristian

#1 lore raw

PATCH 1/2 Import fw-core driver.

Pull in the core stack and build system changes.

---

 drivers/Kconfig             |    2 
 drivers/Makefile            |    1 
 drivers/fw/Kconfig          |   23 +
 drivers/fw/Makefile         |    7 
 drivers/fw/fw-card.c        |  410 +++++++++++++++++++++
 drivers/fw/fw-iso.c         |  136 +++++++
 drivers/fw/fw-topology.c    |  444 ++++++++++++++++++++++
 drivers/fw/fw-topology.h    |  131 +++++++
 drivers/fw/fw-transaction.c |  856 +++++++++++++++++++++++++++++++++++++++++++
 drivers/fw/fw-transaction.h |  415 +++++++++++++++++++++
 10 files changed, 2425 insertions(+), 0 deletions(-)
drivers/Kconfig +2 -0
index f394634..cf39e45 100644
@@ -30,6 +30,8 @@ source "drivers/md/Kconfig"
 
 source "drivers/message/fusion/Kconfig"
 
+source "drivers/fw/Kconfig"
+
 source "drivers/ieee1394/Kconfig"
 
 source "drivers/message/i2o/Kconfig"
drivers/Makefile +1 -0
index 4ac14da..43335ef 100644
@@ -36,6 +36,7 @@ obj-$(CONFIG_FC4)		+= fc4/
 obj-$(CONFIG_SCSI)		+= scsi/
 obj-$(CONFIG_ATA)		+= ata/
 obj-$(CONFIG_FUSION)		+= message/
+obj-$(CONFIG_FW_CORE)		+= fw/
 obj-$(CONFIG_IEEE1394)		+= ieee1394/
 obj-y				+= cdrom/
 obj-$(CONFIG_MTD)		+= mtd/
drivers/fw/Kconfig new file +23 -0
new file mode 100644
index 0000000..f09ed59
@@ -0,0 +1,23 @@
+# -*- shell-script -*-
+
+menu "IEEE 1394 (FireWire) support (JUJU alternative stack)"
+
+config FW_CORE
+	tristate "IEEE 1394 (FireWire) support (JUJU alternative stack)"
+	help
+	  IEEE 1394 describes a high performance serial bus, which is also
+	  known as FireWire(tm) or i.Link(tm) and is used for connecting all
+	  sorts of devices (most notably digital video cameras) to your
+	  computer.
+
+	  If you have FireWire hardware and want to use it, say Y here.  This
+	  is the core support only, you will also need to select a driver for
+	  your IEEE 1394 adapter.
+
+	  This is the "JUJU" firewire stack, an alternative
+	  implementation designed for roboustness and simplicity.
+
+	  To compile this driver as a module, say M here: the
+	  module will be called fw-core.
+
+endmenu
drivers/fw/Makefile new file +7 -0
new file mode 100644
index 0000000..1b2a3ad
@@ -0,0 +1,7 @@
+#
+# Makefile for the Linux IEEE 1394 implementation
+#
+
+fw-core-objs := fw-card.o fw-topology.o fw-transaction.o fw-iso.o
+
+obj-$(CONFIG_FW_CORE) += fw-core.o
drivers/fw/fw-card.c new file +410 -0

410 lines not on this page · raw message

drivers/fw/fw-iso.c new file +136 -0

136 lines not on this page · raw message

drivers/fw/fw-topology.c new file +444 -0

444 lines not on this page · raw message

drivers/fw/fw-topology.h new file +131 -0

131 lines not on this page · raw message

drivers/fw/fw-transaction.c new file +856 -0

856 lines not on this page · raw message

drivers/fw/fw-transaction.h new file +415 -0

415 lines not on this page · raw message

#2 lore raw

PATCH 2/2 Add device probing, sysfs interface and char device code.

In reply to Kristian Høgsberg

This patch add code to probe devices and integrate with the device model, adds minimal sysfs structure and implements a char device for user space control.
---

 drivers/fw/Makefile         |    3 
 drivers/fw/fw-device-cdev.c |  580 +++++++++++++++++++++++++++++++++++++++++
 drivers/fw/fw-device-cdev.h |  141 ++++++++++
 drivers/fw/fw-device.c      |  611 +++++++++++++++++++++++++++++++++++++++++++
 drivers/fw/fw-device.h      |  156 +++++++++++
 drivers/fw/fw-topology.c    |    4 
 6 files changed, 1490 insertions(+), 5 deletions(-)
drivers/fw/Makefile +2 -1
index 1b2a3ad..fb6003e 100644
@@ -2,6 +2,7 @@ #
 # Makefile for the Linux IEEE 1394 implementation
 #
 
-fw-core-objs := fw-card.o fw-topology.o fw-transaction.o fw-iso.o
+fw-core-objs := fw-card.o fw-topology.o fw-transaction.o fw-iso.o \
+	fw-device.o fw-device-cdev.o
 
 obj-$(CONFIG_FW_CORE) += fw-core.o
drivers/fw/fw-device-cdev.c new file +580 -0

580 lines not on this page · raw message

drivers/fw/fw-device-cdev.h new file +141 -0

141 lines not on this page · raw message

drivers/fw/fw-device.c new file +611 -0

611 lines not on this page · raw message

drivers/fw/fw-device.h new file +156 -0

156 lines not on this page · raw message

drivers/fw/fw-topology.c +0 -4
index 9fe1ab8..d691115 100644
@@ -438,7 +438,3 @@ fw_core_handle_bus_reset(struct fw_card 
 }
 
 EXPORT_SYMBOL(fw_core_handle_bus_reset);
-
-void fw_node_event(struct fw_card *card, struct fw_node *node, int event)
-{
-}