All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: Selwin Sebastian <Selwin.Sebastian@amd.com>
Cc: dev <dev@dpdk.org>, "Yigit, Ferruh" <ferruh.yigit@intel.com>,
	 Thomas Monjalon <thomas@monjalon.net>
Subject: Re: [dpdk-dev] [PATCH v3] drivers: add a HW quirk for register definitions
Date: Tue, 14 Jan 2020 13:35:49 +0100	[thread overview]
Message-ID: <CAJFAV8xCDsUF7kaY=sGxbtXSWL1Br9N6dc60Q1JQ6C684-Oa3g@mail.gmail.com> (raw)
In-Reply-To: <20200114173019.14097-1-Selwin.Sebastian@amd.com>

On Tue, Jan 14, 2020 at 12:58 PM Selwin Sebastian
<Selwin.Sebastian@amd.com> wrote:
>
> V1000/R1000 processors are using the same PCI ids for the network
> device as SNOWYOWL processor but has altered register definitions
> for determining the window settings for the indirect PCS access.
> Add support to check for this hardware and if found use the new
> register values.
>
> Added a new routine rte_pci_search_device to pci driver to search
> for a device.

You can already iterate on a bus devices.

struct rte_bus *pci_bus = rte_bus_find_by_name("pci");
return pci_bus != NULL && pci_bus->find_device(NULL, callback, args) != NULL;

See: https://git.dpdk.org/dpdk/tree/drivers/bus/pci/pci_params.c#n38


-- 
David Marchand


  parent reply	other threads:[~2020-01-14 12:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-14 17:30 [dpdk-dev] [PATCH v3] drivers: add a HW quirk for register definitions Selwin Sebastian
2020-01-14 12:30 ` Ferruh Yigit
2020-01-14 12:35 ` David Marchand [this message]
2020-01-14 13:18   ` Ferruh Yigit
2020-01-20  7:14     ` Sebastian, Selwin

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='CAJFAV8xCDsUF7kaY=sGxbtXSWL1Br9N6dc60Q1JQ6C684-Oa3g@mail.gmail.com' \
    --to=david.marchand@redhat.com \
    --cc=Selwin.Sebastian@amd.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=thomas@monjalon.net \
    /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.