linuxkpi: Fix pcie_set_readrq()
We were passing a LinuxKPI struct device * to a pci(4) function that expects a device_t. Reviewed by: manu, hselasky, bz MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29675
This commit is contained in:
parent
56cbd386fb
commit
3f322b22e0
@ -709,7 +709,7 @@ lkpi_pci_restore_state(struct pci_dev *pdev)
|
||||
/* XXX This should not be necessary. */
|
||||
#define pcix_set_mmrbc(d, v) 0
|
||||
#define pcix_get_max_mmrbc(d) 0
|
||||
#define pcie_set_readrq(d, v) pci_set_max_read_req(&(d)->dev, (v))
|
||||
#define pcie_set_readrq(d, v) pci_set_max_read_req((d)->dev.bsddev, (v))
|
||||
|
||||
#define PCI_DMA_BIDIRECTIONAL 0
|
||||
#define PCI_DMA_TODEVICE 1
|
||||
|
Loading…
Reference in New Issue
Block a user