Skip to content

Instantly share code, notes, and snippets.

@woachk
Created April 8, 2022 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woachk/7ab78e6ba818ccfd89a8f365f6e5276b to your computer and use it in GitHub Desktop.
Save woachk/7ab78e6ba818ccfd89a8f365f6e5276b to your computer and use it in GitHub Desktop.
#define PCI_DEVICE_F_INTERNAL_CHIP_SKU BIT(31)
#define PCI_DEVICE_F_FUSA_CHIP_SKU BIT(30)
static struct pci_device_id nvgpu_pci_table[] = {
{
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1ebf),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 0,
},
{
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1eba),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 1,
},
{
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1eb0),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 2,
},
{
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1efa),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 1,
},
{
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1ebb),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 1,
},
{
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1efb),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 1,
},
{
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1eae),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 1 | PCI_DEVICE_F_INTERNAL_CHIP_SKU,
},
{
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1eaf),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 1 | PCI_DEVICE_F_INTERNAL_CHIP_SKU,
},
{
/* TU104-QS SKU*/
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1ebc),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 1 | PCI_DEVICE_F_FUSA_CHIP_SKU,
},
{
/* TU104-QS SKU*/
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1efc),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 1 | PCI_DEVICE_F_FUSA_CHIP_SKU,
},
{
/* PG209 SKU*/
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x20b0),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 3,
},
{
/* PG199 SKU*/
PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x20bb),
.class = PCI_BASE_CLASS_DISPLAY << 16,
.class_mask = 0xff << 16,
.driver_data = 3,
},
{}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment