Skip to content

Commit

Permalink
PCI: Move PCI_VENDOR_ID_REDHAT definition to pci_ids.h
Browse files Browse the repository at this point in the history
Instead of duplicating the PCI_VENDOR_ID_REDHAT definition everywhere, move
it to include/linux/pci_ids.h.

[bhelgaas: also update MDPY_PCI_VENDOR_ID]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Huacai Chen <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Gerd Hoffmann <[email protected]>
  • Loading branch information
chenhuacai authored and bjorn-helgaas committed Jul 9, 2020
1 parent c7c337c commit 2575b2f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/qxl/qxl_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ enum SpiceCursorType {

#pragma pack(push, 1)

#define REDHAT_PCI_VENDOR_ID 0x1b36

/* 0x100-0x11f reserved for spice, 0x1ff used for unstable work */
#define QXL_DEVICE_ID_STABLE 0x0100

Expand Down
1 change: 0 additions & 1 deletion drivers/net/ethernet/rocker/rocker_hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ enum {

#define ROCKER_FP_PORTS_MAX 62

#define PCI_VENDOR_ID_REDHAT 0x1b36
#define PCI_DEVICE_ID_REDHAT_ROCKER 0x0006

#define ROCKER_PCI_BAR0_SIZE 0x2000
Expand Down
2 changes: 2 additions & 0 deletions include/linux/pci_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -2585,6 +2585,8 @@

#define PCI_VENDOR_ID_ASMEDIA 0x1b21

#define PCI_VENDOR_ID_REDHAT 0x1b36

#define PCI_VENDOR_ID_AMAZON_ANNAPURNA_LABS 0x1c36

#define PCI_VENDOR_ID_CIRCUITCO 0x1cc8
Expand Down
2 changes: 1 addition & 1 deletion samples/vfio-mdev/mdpy-defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

/* pci ids */
#define MDPY_PCI_VENDOR_ID 0x1b36 /* redhat */
#define MDPY_PCI_VENDOR_ID PCI_VENDOR_ID_REDHAT
#define MDPY_PCI_DEVICE_ID 0x000f
#define MDPY_PCI_SUBVENDOR_ID PCI_SUBVENDOR_ID_REDHAT_QUMRANET
#define MDPY_PCI_SUBDEVICE_ID PCI_SUBDEVICE_ID_QEMU
Expand Down

0 comments on commit 2575b2f

Please sign in to comment.