1*90688586SRichard Lowe/* Based on the NetBSD virtio driver by Minoura Makoto. */ 2*90688586SRichard Lowe/* 3*90688586SRichard Lowe * Copyright (c) 2010 Minoura Makoto. 4*90688586SRichard Lowe * All rights reserved. 5*90688586SRichard Lowe * 6*90688586SRichard Lowe * Redistribution and use in source and binary forms, with or without 7*90688586SRichard Lowe * modification, are permitted provided that the following conditions 8*90688586SRichard Lowe * are met: 9*90688586SRichard Lowe * 1. Redistributions of source code must retain the above copyright 10*90688586SRichard Lowe * notice, this list of conditions and the following disclaimer. 11*90688586SRichard Lowe * 2. Redistributions in binary form must reproduce the above copyright 12*90688586SRichard Lowe * notice, this list of conditions and the following disclaimer in the 13*90688586SRichard Lowe * documentation and/or other materials provided with the distribution. 14*90688586SRichard Lowe * 15*90688586SRichard Lowe * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16*90688586SRichard Lowe * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17*90688586SRichard Lowe * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18*90688586SRichard Lowe * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19*90688586SRichard Lowe * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20*90688586SRichard Lowe * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21*90688586SRichard Lowe * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22*90688586SRichard Lowe * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23*90688586SRichard Lowe * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24*90688586SRichard Lowe * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25*90688586SRichard Lowe */ 26