[dpdk-dev] [PATCH v3] drivers: add a HW quirk for register definitions
Ferruh Yigit
ferruh.yigit at intel.com
Tue Jan 14 14:18:15 CET 2020
On 1/14/2020 12:35 PM, David Marchand wrote:
> On Tue, Jan 14, 2020 at 12:58 PM Selwin Sebastian
> <Selwin.Sebastian at 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
>
Nice, this looks better approach.
More information about the dev
mailing list