Skip to content

Commit d8408ae

Browse files
Daniel Trautmanngregkh
authored andcommitted
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 <dtrautmann@ibhsoftec-sps.de> Signed-off-by: "Hans J. Koch" <hjk@hansjkoch.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 5934b5f commit d8408ae

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎drivers/uio/uio_netx.c‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
#define PCI_VENDOR_ID_HILSCHER 0x15CF
2020
#define PCI_DEVICE_ID_HILSCHER_NETX 0x0000
21+
#define PCI_DEVICE_ID_HILSCHER_NETPLC 0x0010
22+
#define PCI_SUBDEVICE_ID_NETPLC_RAM 0x0000
23+
#define PCI_SUBDEVICE_ID_NETPLC_FLASH 0x0001
2124
#define PCI_SUBDEVICE_ID_NXSB_PCA 0x3235
2225
#define PCI_SUBDEVICE_ID_NXPCA 0x3335
2326

@@ -66,6 +69,10 @@ static int __devinit netx_pci_probe(struct pci_dev *dev,
6669
bar = 0;
6770
info->name = "netx";
6871
break;
72+
case PCI_DEVICE_ID_HILSCHER_NETPLC:
73+
bar = 0;
74+
info->name = "netplc";
75+
break;
6976
default:
7077
bar = 2;
7178
info->name = "netx_plx";
@@ -133,6 +140,18 @@ static struct pci_device_id netx_pci_ids[] = {
133140
.subvendor = 0,
134141
.subdevice = 0,
135142
},
143+
{
144+
.vendor = PCI_VENDOR_ID_HILSCHER,
145+
.device = PCI_DEVICE_ID_HILSCHER_NETPLC,
146+
.subvendor = PCI_VENDOR_ID_HILSCHER,
147+
.subdevice = PCI_SUBDEVICE_ID_NETPLC_RAM,
148+
},
149+
{
150+
.vendor = PCI_VENDOR_ID_HILSCHER,
151+
.device = PCI_DEVICE_ID_HILSCHER_NETPLC,
152+
.subvendor = PCI_VENDOR_ID_HILSCHER,
153+
.subdevice = PCI_SUBDEVICE_ID_NETPLC_FLASH,
154+
},
136155
{
137156
.vendor = PCI_VENDOR_ID_PLX,
138157
.device = PCI_DEVICE_ID_PLX_9030,

0 commit comments

Comments
 (0)