Checking PCIe generation in driver code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm dealing with Broadcom devices and it appears I need to know if the
current PCIe device is Gen 1 or Gen 2. This is because they have
slightly different registers:
#define PCI_BAR0_WIN2 0xac
#define PCIE2_BAR0_WIN2 0x70

Is there a way to know that? I keep starring at struct pci_dev, but
can't see "generation" field. Tried Googling, but couldn't find
anything.

-- 
Rafał
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux