PCI: Update VPD definitions
authorHannes Reinecke <hare@suse.de>
Mon, 15 Feb 2016 08:41:59 +0000 (09:41 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 18 Feb 2016 22:18:49 +0000 (16:18 -0600)
commit9eb45d5cc541142896f5fe7896d824c1091197c9
treeabdc3022295264db7329e2eaea3b7f8e8ac2d78c
parent92e963f50fc74041b5e9e744c330dca48e04f08d
PCI: Update VPD definitions

The 'end' tag is actually 0x0f; it's the representation as a small resource
data type tag that's 0x78 (i.e., shifted by 3).  Correct PCI_VPD_STIN_END
and PCI_VPD_SRDT_END accordingly.

Also, add helper functions to extract the resource data type tags for both
large and small resource data types.

[bhelgaas: changelog]
Tested-by: Shane Seymour <shane.seymour@hpe.com>
Tested-by: Babu Moger <babu.moger@oracle.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Alexander Duyck <alexander.duyck@gmail.com>
include/linux/pci.h