Re: [PATCH 1/3] PCI: support device-specific reset methods.

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

 



On Fri, Nov 06, 2009 at 05:24:55PM +0800, Dexuan Cui wrote:
> diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
> index d92d195..02247ac 100644
> --- a/drivers/pci/pci.h
> +++ b/drivers/pci/pci.h
> @@ -311,4 +311,12 @@ static inline int pci_resource_alignment(struct pci_dev *dev,
>  	return resource_alignment(res);
>  }
>  
> +struct pci_dev_reset_methods {
> +	u16 vendor;
> +	u16 device;
> +	int (*reset)(struct pci_dev *dev, int probe);
> +};
> +
> +extern struct pci_dev_reset_methods pci_dev_reset_methods[];
> +
>  #endif /* DRIVERS_PCI_H */

Why do it this way instead of having a ->reset method in struct pci_driver?

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
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