pci_virtio_input.c (b0de25cb23668fa4535078d18a0618eee442c000) | pci_virtio_input.c (4f3f3e9a1dee62c031fa67cfe64e11d6dd3fab1b) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2021 Beckhoff Automation GmbH & Co. KG 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 758 unchanged lines hidden (view full) --- 767 if (sc->vsc_fd) 768 close(sc->vsc_fd); 769 770 free(sc); 771 772 return (-1); 773} 774 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2021 Beckhoff Automation GmbH & Co. KG 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 758 unchanged lines hidden (view full) --- 767 if (sc->vsc_fd) 768 close(sc->vsc_fd); 769 770 free(sc); 771 772 return (-1); 773} 774 |
775struct pci_devemu pci_de_vinput = { | 775static const struct pci_devemu pci_de_vinput = { |
776 .pe_emu = "virtio-input", 777 .pe_init = pci_vtinput_init, 778 .pe_legacy_config = pci_vtinput_legacy_config, 779 .pe_barwrite = vi_pci_write, 780 .pe_barread = vi_pci_read, 781}; 782PCI_EMUL_SET(pci_de_vinput); | 776 .pe_emu = "virtio-input", 777 .pe_init = pci_vtinput_init, 778 .pe_legacy_config = pci_vtinput_legacy_config, 779 .pe_barwrite = vi_pci_write, 780 .pe_barread = vi_pci_read, 781}; 782PCI_EMUL_SET(pci_de_vinput); |