Re: [PATCH 1/5] Add pci_read_vpd() function and internal read_vpd() method

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

 



> index 8f4773f..deef985 100644
> --- a/lib/pci.h
> +++ b/lib/pci.h
> @@ -144,6 +144,7 @@ u8 pci_read_byte(struct pci_dev *, int pos) PCI_ABI; /* Access to configuration
>  u16 pci_read_word(struct pci_dev *, int pos) PCI_ABI;
>  u32 pci_read_long(struct pci_dev *, int pos) PCI_ABI;
>  int pci_read_block(struct pci_dev *, int pos, u8 *buf, int len) PCI_ABI;
> +int pci_read_vpd(struct pci_dev *d, int pos, u8 *buf, int len) PCI_ABI;
>  int pci_write_byte(struct pci_dev *, int pos, u8 data) PCI_ABI;
>  int pci_write_word(struct pci_dev *, int pos, u16 data) PCI_ABI;
>  int pci_write_long(struct pci_dev *, int pos, u32 data) PCI_ABI;

This has to be properly versioned in order to avoid breaking ABI
compatibility. See how pci_find_cap() got added in my current development
tree.

				Have a nice fortnight
-- 
Martin `MJ' Mares                          <mj@xxxxxx>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Do not believe in miracles -- rely on them.
--
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