uio_netx: Add support for netPLC cards
PATCH v2 1/1 uio_netx: Add support for netPLC cards
This patch adds support for Hilscher / IBHsoftec netPLC cards to uio_netx userspace IO driver.
Changes from v1 -> v2:
Fixed whitespace errors reported by scripts/checkpatch.pl which were caused by email client.
Signed-off-by Daniel Trautmann <[email protected]>
--- drivers/uio/uio_netx.c | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-)
drivers/uio/uio_netx.c +19 -0
@@ -18,6 +18,9 @@#define PCI_VENDOR_ID_HILSCHER 0x15CF#define PCI_DEVICE_ID_HILSCHER_NETX 0x0000 +#define PCI_DEVICE_ID_HILSCHER_NETPLC 0x0010 +#define PCI_SUBDEVICE_ID_NETPLC_RAM 0x0000 +#define PCI_SUBDEVICE_ID_NETPLC_FLASH 0x0001#define PCI_SUBDEVICE_ID_NXSB_PCA 0x3235#define PCI_SUBDEVICE_ID_NXPCA 0x3335
@@ -66,6 +69,10 @@ static int __devinit netx_pci_probe(struct pci_dev *dev, bar =0 ; info->name ="netx" ;break ; +case PCI_DEVICE_ID_HILSCHER_NETPLC : + bar =0 ; + info->name ="netplc" ; +break ;default : bar =2 ; info->name ="netx_plx" ;
@@ -134,6 +141,18 @@ static struct pci_device_id netx_pci_ids[] = { .subdevice = 0, }, { + .vendor = PCI_VENDOR_ID_HILSCHER, + .device = PCI_DEVICE_ID_HILSCHER_NETPLC, + .subvendor = PCI_VENDOR_ID_HILSCHER, + .subdevice = PCI_SUBDEVICE_ID_NETPLC_RAM, + }, + { + .vendor = PCI_VENDOR_ID_HILSCHER, + .device = PCI_DEVICE_ID_HILSCHER_NETPLC, + .subvendor = PCI_VENDOR_ID_HILSCHER, + .subdevice = PCI_SUBDEVICE_ID_NETPLC_FLASH, + }, + { .vendor = PCI_VENDOR_ID_PLX, .device = PCI_DEVICE_ID_PLX_9030, .subvendor = PCI_VENDOR_ID_PLX,
Quoted 4 lines · Daniel Trautmann
This patch adds support for Hilscher / IBHsoftec netPLC cards to
uio_netxuserspace IO driver.Changes from v1 -> v2:
Fixed whitespace errors reported byscripts/checkpatch.plwhich were caused by email client.
Looks OK to me.
Thanks for your contribution,
Hans
Quoted 2 lines
Signed-off-by Daniel Trautmann <[email protected]>
Signed-off-by "Hans J. Koch" <[email protected]>
Quoted 51 lines
--- drivers/uio/uio_netx.c | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-)drivers/uio/uio_netx.c +19
-0@@ -18,6 +18,9 @@#define PCI_VENDOR_ID_HILSCHER 0x15CF#define PCI_DEVICE_ID_HILSCHER_NETX 0x0000 +#define PCI_DEVICE_ID_HILSCHER_NETPLC 0x0010 +#define PCI_SUBDEVICE_ID_NETPLC_RAM 0x0000 +#define PCI_SUBDEVICE_ID_NETPLC_FLASH 0x0001#define PCI_SUBDEVICE_ID_NXSB_PCA 0x3235#define PCI_SUBDEVICE_ID_NXPCA 0x3335@@ -66,6 +69,10 @@ static int __devinit netx_pci_probe(struct pci_dev *dev, bar =0 ; info->name ="netx" ;break ; +case PCI_DEVICE_ID_HILSCHER_NETPLC : + bar =0 ; + info->name ="netplc" ; +break ;default : bar =2 ; info->name ="netx_plx" ;@@ -134,6 +141,18 @@ static struct pci_device_id netx_pci_ids[] = { .subdevice = 0, }, { + .vendor = PCI_VENDOR_ID_HILSCHER, + .device = PCI_DEVICE_ID_HILSCHER_NETPLC, + .subvendor = PCI_VENDOR_ID_HILSCHER, + .subdevice = PCI_SUBDEVICE_ID_NETPLC_RAM, + }, + { + .vendor = PCI_VENDOR_ID_HILSCHER, + .device = PCI_DEVICE_ID_HILSCHER_NETPLC, + .subvendor = PCI_VENDOR_ID_HILSCHER, + .subdevice = PCI_SUBDEVICE_ID_NETPLC_FLASH, + }, + { .vendor = PCI_VENDOR_ID_PLX, .device = PCI_DEVICE_ID_PLX_9030, .subvendor = PCI_VENDOR_ID_PLX,