diff options
| author | Takashi Iwai <tiwai@suse.de> | 2025-10-16 20:14:24 +0200 | 
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2025-10-16 20:14:24 +0200 | 
| commit | ec2e0fb07d789976c601bec19ecced7a501c3705 (patch) | |
| tree | d593e7b6153618ca10855a3141404e952debe73c /rust/helpers/pci.c | |
| parent | c6fceaf166479c05f7d3158ef08e78ae3e3dfa23 (diff) | |
| parent | f1a450f9e17d341f69f8fb19f6d13ef9f1aa508b (diff) | |
Merge tag 'asoc-fix-v6.18-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v6.18
A moderately large collection of driver specific fixes, plus a few new
quirks and device IDs.  The NAU8821 changes are a little large but more
in mechanical ways than in ways that are complex.
Diffstat (limited to 'rust/helpers/pci.c')
| -rw-r--r-- | rust/helpers/pci.c | 18 | 
1 files changed, 18 insertions, 0 deletions
diff --git a/rust/helpers/pci.c b/rust/helpers/pci.c index ef9cb38c81a6..fb814572b236 100644 --- a/rust/helpers/pci.c +++ b/rust/helpers/pci.c @@ -2,6 +2,16 @@  #include <linux/pci.h> +u16 rust_helper_pci_dev_id(struct pci_dev *dev) +{ +	return PCI_DEVID(dev->bus->number, dev->devfn); +} + +resource_size_t rust_helper_pci_resource_start(struct pci_dev *pdev, int bar) +{ +	return pci_resource_start(pdev, bar); +} +  resource_size_t rust_helper_pci_resource_len(struct pci_dev *pdev, int bar)  {  	return pci_resource_len(pdev, bar); @@ -11,3 +21,11 @@ bool rust_helper_dev_is_pci(const struct device *dev)  {  	return dev_is_pci(dev);  } + +#ifndef CONFIG_PCI_MSI +int rust_helper_pci_irq_vector(struct pci_dev *pdev, unsigned int nvec) +{ +	return pci_irq_vector(pdev, nvec); +} + +#endif  | 
