Topcliff: Update PCH_PHUB driver to 2.6.35
PATCH 1/1 Topcliff: Update PCH_PHUB driver to 2.6.35
Hi Greg,
We have modified our phub driver for your indication. Please check below.
Best Regards, Ohtake(OKISEMI).
---
Packet hub driver of Topcliff PCH
Topcliff PCH is the platform controller hub that is going to be used in Intel's upcoming general embedded platform. All IO peripherals in Topcliff PCH are actually devices sitting on AMBA bus. Packet hub is a special converter device in Topcliff PCH that translate AMBA transactions to PCI Express transactions and vice versa. Thus packet hub helps present all IO peripherals in Topcliff PCH as PCIE devices to IA system. Topcliff PCH has MAC address and Option ROM data.
These data are in SROM which is connected to PCIE bus.
Packet hub driver of Topcliff PCH can access MAC address and Option ROM data in SROM via sysfs interface.
--- Documentation/ABI/testing/sysfs-module | 14 + drivers/misc/Kconfig | 9 + drivers/misc/Makefile | 1 + drivers/misc/pch_phub.c | 719 ++++++++++++++++++++++++++++++++ 4 files changed, 743 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-module create mode 100755 drivers/misc/pch_phub.c
Documentation/ABI/testing/sysfs-module new file +14 -0
@@ -0,0 +1,14 @@ +What: /sys/module/pch_phub/drivers/pci:pch_phub/<dev>/pch_mac +Date: August 2010 +KernelVersion: 2.6.35 +Contact: [email protected] +Description: Write/read GbE MAC address. +Users: [email protected] + +What: /sys/module/pch_phub/drivers/pci:pch_phub/<dev>/pch_firmware +Date: August 2010 +KernelVersion: 2.6.35 +Contact: [email protected] +Description: Write/read Option ROM data. +Users: [email protected] +
drivers/misc/Kconfig +9 -0
@@ -353,6 +353,15 @@ config VMWARE_BALLOON To compile this driver as a module, choose M here: the module will be called vmware_balloon. +config PCH_PHUB + tristate "PCH Packet Hub of Intel Topcliff" + depends on PCI + help + This driver is for PCH(Platform controller Hub) PHUB(Packet Hub) of + Intel Topcliff which is an IOH(Input/Output Hub) for x86 embedded + processor. The Topcliff has MAC address and Option ROM data in SROM. + This driver can access MAC address and Option ROM data in SROM. + source "drivers/misc/c2port/Kconfig" source "drivers/misc/eeprom/Kconfig" source "drivers/misc/cb710/Kconfig"
drivers/misc/Makefile +1 -0
@@ -31,3 +31,4 @@ obj-$(CONFIG_IWMC3200TOP) += iwmc3200top/ obj-y += eeprom/ obj-y += cb710/ obj-$(CONFIG_VMWARE_BALLOON) += vmware_balloon.o +obj-$(CONFIG_PCH_PHUB) += pch_phub.o
drivers/misc/pch_phub.c new file +719 -0
719 lines not on this page · raw message
Signature · 1 line
1.6.2.2
Quoted 37 lines · Masayuki Ohtak
Hi Greg,
We have modified our phub driver for your indication. Please check below.
Best Regards, Ohtake(OKISEMI).
---
Packet hub driver of Topcliff PCHTopcliff PCH is the platform controller hub that is going to be used in Intel's upcoming general embedded platform. All IO peripherals in Topcliff PCH are actually devices sitting on AMBA bus. Packet hub is a special converter device in Topcliff PCH that translate AMBA transactions to PCI Express transactions and vice versa. Thus packet hub helps present all IO peripherals in Topcliff PCH as PCIE devices to IA system. Topcliff PCH has MAC address and Option ROM data.
These data are in SROM which is connected to PCIE bus.
Packet hub driver of Topcliff PCH can access MAC address and Option ROM data in SROM via sysfs interface.Signed-off-by Masayuki Ohtake <[email protected]>--- Documentation/ABI/testing/sysfs-module | 14 + drivers/misc/Kconfig | 9 + drivers/misc/Makefile | 1 + drivers/misc/pch_phub.c | 719 ++++++++++++++++++++++++++++++++ 4 files changed, 743 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-module create mode 100755 drivers/misc/pch_phub.cDocumentation/ABI/testing/sysfs-module new file +0
-0
Documentation/ABI/testing/sysfs-module line 1
Quoted 1 line
Documentation/ABI/testing/sysfs-module new file +1
-0@@ -0,0 +1,14 @@ +What: /sys/module/pch_phub/drivers/pci:pch_phub/<dev>/pch_mac
Please don't put a ':' in your driver name.
Documentation/ABI/testing/sysfs-module line 6
Quoted 5 lines
Documentation/ABI/testing/sysfs-module new file +5
-0+Date: August 2010 +KernelVersion: 2.6.35 +Contact: [email protected] +Description: Write/read GbE MAC address. +Users: [email protected]
You are really going to be the only user of this file?
Quoted 15 lines
Documentation/ABI/testing/sysfs-module new file +8
-0+ +What: /sys/module/pch_phub/drivers/pci:pch_phub/<dev>/pch_firmware +Date: August 2010 +KernelVersion: 2.6.35 +Contact: [email protected] +Description: Write/read Option ROM data. +Users: [email protected] +drivers/misc/Kconfig +0
-0@@ -353,6 +353,15 @@ config VMWARE_BALLOON To compile this driver as a module, choose M here: the module will be called vmware_balloon.
drivers/misc/Kconfig config VMWARE_BALLOON · line 364
Quoted 10 lines
drivers/misc/Kconfig +9
-0+config PCH_PHUB + tristate "PCH Packet Hub of Intel Topcliff" + depends on PCI + help + This driver is for PCH(Platform controller Hub) PHUB(Packet Hub) of + Intel Topcliff which is an IOH(Input/Output Hub) for x86 embedded + processor. The Topcliff has MAC address and Option ROM data in SROM. + This driver can access MAC address and Option ROM data in SROM. +
Please add the wording "To compile this driver..." here as well.
Your driver code looks much better, nice job.
thanks,
greg k-h