pci_virtio_rnd.c (d7b72f7b52f902da47cc7210a9121f4caabbcb9c) pci_virtio_rnd.c (4f3f3e9a1dee62c031fa67cfe64e11d6dd3fab1b)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2014 Nahanni Systems Inc.
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

--- 190 unchanged lines hidden (view full) ---

199 if (vi_intr_init(&sc->vrsc_vs, 1, fbsdrun_virtio_msix()))
200 return (1);
201 vi_set_io_bar(&sc->vrsc_vs, 0);
202
203 return (0);
204}
205
206
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2014 Nahanni Systems Inc.
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

--- 190 unchanged lines hidden (view full) ---

199 if (vi_intr_init(&sc->vrsc_vs, 1, fbsdrun_virtio_msix()))
200 return (1);
201 vi_set_io_bar(&sc->vrsc_vs, 0);
202
203 return (0);
204}
205
206
207struct pci_devemu pci_de_vrnd = {
207static const struct pci_devemu pci_de_vrnd = {
208 .pe_emu = "virtio-rnd",
209 .pe_init = pci_vtrnd_init,
210 .pe_barwrite = vi_pci_write,
211 .pe_barread = vi_pci_read,
212};
213PCI_EMUL_SET(pci_de_vrnd);
208 .pe_emu = "virtio-rnd",
209 .pe_init = pci_vtrnd_init,
210 .pe_barwrite = vi_pci_write,
211 .pe_barread = vi_pci_read,
212};
213PCI_EMUL_SET(pci_de_vrnd);