Lines Matching +full:non +full:- +full:compliant
1 // SPDX-License-Identifier: GPL-2.0
2 /* uio_pci_generic - generic UIO driver for PCI 2.3 devices
11 * # echo -n 0000:00:19.0 > /sys/bus/pci/drivers/e1000e/unbind
12 * # echo -n 0000:00:19.0 > /sys/bus/pci/drivers/uio_pci_generic/bind
13 * # ls -l /sys/bus/pci/devices/0000:00:19.0/driver
14 * .../0000:00:19.0/driver -> ../../../bus/pci/drivers/uio_pci_generic
17 * in the command register. All devices compliant to PCI 2.3 (circa 2002) and
18 * all compliant PCI Express devices should support this bit.
51 * Note that there's a non-zero chance doing this will wedge the device in release()
54 pci_clear_master(gdev->pdev); in release()
64 if (!pci_check_and_mask_intx(gdev->pdev)) in irqhandler()
79 dev_err(&pdev->dev, "%s: pci_enable_device failed: %d\n", in probe()
84 if (pdev->irq && !pci_intx_mask_supported(pdev)) { in probe()
85 err = -ENODEV; in probe()
91 err = -ENOMEM; in probe()
95 gdev->info.name = "uio_pci_generic"; in probe()
96 gdev->info.version = DRIVER_VERSION; in probe()
97 gdev->info.release = release; in probe()
98 gdev->pdev = pdev; in probe()
99 if (pdev->irq) { in probe()
100 gdev->info.irq = pdev->irq; in probe()
101 gdev->info.irq_flags = IRQF_SHARED; in probe()
102 gdev->info.handler = irqhandler; in probe()
104 dev_warn(&pdev->dev, "No IRQ assigned to device: " in probe()
108 err = uio_register_device(&pdev->dev, &gdev->info); in probe()
126 uio_unregister_device(&gdev->info); in remove()