Re: [PATCH] Add some PCI Express constants to pci.h

From: Greg KH
Date: Fri Jul 02 2004 - 16:03:38 EST


On Wed, Jun 30, 2004 at 11:26:47AM -0700, Roland Dreier wrote:
> This patch adds some PCI Express register constants to <linux/pci.h>
>
> For my device, setting the Max_Read_Request_Size value in the PCI
> Express device control register makes a huge performance difference.
> I wanted my driver code that does this to be a little more
> self-documenting than:
>
> pci_read_config_word(mdev->pdev, cap + 8, &val);
> val = (val & ~(5 << 12)) | (5 << 12);
>
> I went a little overboard and added all the basic device register
> fields. If desired I could go even further overboard and add the
> link, slot and root registers as well.
>
> This patch is based on Matthew Wilcox's patch for pciutils, corrected
> for some PCI Express spec 1.0a changes.
>
> Signed-off-by: Roland Dreier <roland@xxxxxxxxxxx>

Applied, thanks.

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/