···11-/*22- * This program is free software; you can redistribute it and/or modify33- * it under the terms of the GNU General Public License, version 2, as44- * published by the Free Software Foundation.55- *66- * This program is distributed in the hope that it will be useful,77- * but WITHOUT ANY WARRANTY; without even the implied warranty of88- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the99- * GNU General Public License for more details.1010- *1111- * You should have received a copy of the GNU General Public License1212- * along with this program; if not, write to the Free Software1313- * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.1414- *1515- * Copyright (C) 2013 Red Hat, Inc.1616- * Copyright (C) 2013 Freescale Semiconductor, Inc.1717- *1818- */1919-#ifndef __IOMMU_PCI_H2020-#define __IOMMU_PCI_H2121-2222-/* Helper function for swapping pci device reference */2323-static inline void swap_pci_ref(struct pci_dev **from, struct pci_dev *to)2424-{2525- pci_dev_put(*from);2626- *from = to;2727-}2828-2929-#endif /* __IOMMU_PCI_H */