[Skiboot] [PATCH 4/6] include/pci-cfg.h: Add PCI vendor specific capability definitions
Benjamin Herrenschmidt
benh at kernel.crashing.org
Sat Oct 17 12:54:18 AEDT 2015
On Fri, 2015-10-16 at 16:08 +1100, Alistair Popple wrote:
> +/* Vendor specific extend capability */
> +#define PCIECAP_ID_VNDR 0x0b
> +#define PCIECAP_VNDR_HDR 0x04
> +#define PCIECAP_VNDR_HDR_ID_MASK 0x0000ffff
> +#define PCIECAP_VNDR_HDR_ID_LSH 0
> +#define PCIECAP_VNDR_HDR_REV_MASK 0x000f0000
> +#define PCIECAP_VNDR_HDR_REV_LSH 16
> +#define PCIECAP_VNDR_HDR_LEN_MASK 0xfff00000
> +#define PCIECAP_VNDR_HDR_LEN_LSH 20
> +
The new versions of GETFIELD/SETFIELD no longer need that _MASK/_LSH
distinction.
Cheers,
Ben.
More information about the Skiboot
mailing list