lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <SJ0PR11MB58653BE471F6DE907423A8878F072@SJ0PR11MB5865.namprd11.prod.outlook.com>
Date: Fri, 20 Dec 2024 09:56:07 +0000
From: "Romanowski, Rafal" <rafal.romanowski@...el.com>
To: "Kwapulinski, Piotr" <piotr.kwapulinski@...el.com>,
	"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>, "Kwapulinski, Piotr"
	<piotr.kwapulinski@...el.com>, "Kitszel, Przemyslaw"
	<przemyslaw.kitszel@...el.com>, Bjorn Helgaas <bhelgaas@...gle.com>
Subject: RE: [Intel-wired-lan] [PATCH iwl-next v3 1/2] PCI: Add
 PCI_VDEVICE_SUB helper macro

> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@...osl.org> On Behalf Of Piotr
> Kwapulinski
> Sent: Wednesday, December 18, 2024 2:13 PM
> To: intel-wired-lan@...ts.osuosl.org
> Cc: netdev@...r.kernel.org; Kwapulinski, Piotr <piotr.kwapulinski@...el.com>;
> Kitszel, Przemyslaw <przemyslaw.kitszel@...el.com>; Bjorn Helgaas
> <bhelgaas@...gle.com>
> Subject: [Intel-wired-lan] [PATCH iwl-next v3 1/2] PCI: Add PCI_VDEVICE_SUB
> helper macro
> 
> PCI_VDEVICE_SUB generates the pci_device_id struct layout for the specific PCI
> device/subdevice. Private data may follow the output.
> 
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@...el.com>
> Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski@...el.com>
> Acked-by: Bjorn Helgaas <bhelgaas@...gle.com>
> ---
>  include/linux/pci.h | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/include/linux/pci.h b/include/linux/pci.h index db9b47c..414ee5f
> 100644
> --- a/include/linux/pci.h
> +++ b/include/linux/pci.h
> @@ -1046,6 +1046,20 @@ struct pci_driver {
>  	.vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
>  	.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
> 
> +/**
> + * PCI_VDEVICE_SUB - describe a specific PCI device/subdevice in a
> +short form
> + * @vend: the vendor name
> + * @dev: the 16 bit PCI Device ID
> + * @subvend: the 16 bit PCI Subvendor ID
> + * @subdev: the 16 bit PCI Subdevice ID
> + *
> + * Generate the pci_device_id struct layout for the specific PCI
> + * device/subdevice. Private data may follow the output.
> + */
> +#define PCI_VDEVICE_SUB(vend, dev, subvend, subdev) \
> +	.vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
> +	.subvendor = (subvend), .subdevice = (subdev), 0, 0
> +
>  /**
>   * PCI_DEVICE_DATA - macro used to describe a specific PCI device in very short
> form
>   * @vend: the vendor name (without PCI_VENDOR_ID_ prefix)
> --
> 2.43.0


Tested-by: Rafal Romanowski <rafal.romanowski@...el.com>



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ