1/*-
2 * Copyright (c) 2014 Nahanni Systems Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 18 unchanged lines hidden (view full) ---
27
28/*
29 * virtio entropy device emulation.
30 * Randomness is sourced from /dev/random which does not block
31 * once it has been seeded at bootup.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: stable/10/usr.sbin/bhyve/pci_virtio_rnd.c 268933 2014-07-21 00:21:56Z jhb $");
36
37#include <sys/param.h>
38#include <sys/linker_set.h>
39#include <sys/uio.h>
40
41#include <errno.h>
42#include <fcntl.h>
43#include <stdio.h>
--- 146 unchanged lines hidden ---
2 * Copyright (c) 2014 Nahanni Systems Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 18 unchanged lines hidden (view full) ---
27
28/*
29 * virtio entropy device emulation.
30 * Randomness is sourced from /dev/random which does not block
31 * once it has been seeded at bootup.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: stable/10/usr.sbin/bhyve/pci_virtio_rnd.c 268933 2014-07-21 00:21:56Z jhb $");
36
37#include <sys/param.h>
38#include <sys/linker_set.h>
39#include <sys/uio.h>
40
41#include <errno.h>
42#include <fcntl.h>
43#include <stdio.h>
--- 146 unchanged lines hidden ---