From: "Hans J. Koch" <hjk@hansjkoch.de>
To: Daniel Trautmann <dtrautmann@ibhsoftec-sps.de>
Cc: linux-kernel@vger.kernel.org, gregkh@suse.de, hjk@hansjkoch.de,
manut@linutronix.de
Subject: Re: [PATCH v2] uio_netx: Add support for netPLC cards
Date: Mon, 21 Mar 2011 18:06:49 +0100 [thread overview]
Message-ID: <20110321170649.GA2750@local> (raw)
In-Reply-To: <1300718195.3457.43.camel@ubuntu-vm>
On Mon, Mar 21, 2011 at 03:36:35PM +0100, Daniel Trautmann wrote:
> 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.
Looks OK to me.
Thanks for your contribution,
Hans
>
> Signed-off-by: Daniel Trautmann <dtrautmann@ibhsoftec-sps.de>
Signed-off-by: "Hans J. Koch" <hjk@hansjkoch.de>
> ---
> drivers/uio/uio_netx.c | 19 +++++++++++++++++++
> 1 files changed, 19 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/uio/uio_netx.c b/drivers/uio/uio_netx.c
> index 5ffdb48..a879fd5 100644
> --- a/drivers/uio/uio_netx.c
> +++ b/drivers/uio/uio_netx.c
> @@ -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,
>
>
>
prev parent reply other threads:[~2011-03-21 17:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 14:36 [PATCH v2] uio_netx: Add support for netPLC cards Daniel Trautmann
2011-03-21 17:06 ` Hans J. Koch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110321170649.GA2750@local \
--to=hjk@hansjkoch.de \
--cc=dtrautmann@ibhsoftec-sps.de \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=manut@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.