xref: /linux/rust/helpers/pci.c (revision 260f6f4fda93c8485c8037865c941b42b9cba5d2)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/pci.h>
4 
5 resource_size_t rust_helper_pci_resource_len(struct pci_dev *pdev, int bar)
6 {
7 	return pci_resource_len(pdev, bar);
8 }
9 
10 bool rust_helper_dev_is_pci(const struct device *dev)
11 {
12 	return dev_is_pci(dev);
13 }
14