1 /* $NetBSD: pci.h,v 1.4 2021/12/19 10:51:56 riastradh Exp $ */ 2 3 /* SPDX-License-Identifier: MIT */ 4 #ifndef __NVKM_DEVICE_PCI_H__ 5 #define __NVKM_DEVICE_PCI_H__ 6 #include <core/device.h> 7 8 struct nvkm_device_pci { 9 struct nvkm_device device; 10 struct pci_dev *pdev; 11 #ifdef __NetBSD__ 12 bus_dma_tag_t bus_dmat; 13 bus_dma_tag_t dmat; 14 #endif 15 bool suspend; 16 }; 17 18 int nvkm_device_pci_new(struct pci_dev *, const char *cfg, const char *dbg, 19 bool detect, bool mmio, u64 subdev_mask, 20 struct nvkm_device **); 21 #endif 22