xref: /linux/rust/helpers/pci.c (revision bc6d6a4172a7fa599fe66f16e9a2c1cdc6983207)
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