1227652Sgrehan#- 2253132Sbryanv# Copyright (c) 2011, Bryan Venteicher <bryanv@FreeBSD.org> 3227652Sgrehan# All rights reserved. 4227652Sgrehan# 5227652Sgrehan# Redistribution and use in source and binary forms, with or without 6227652Sgrehan# modification, are permitted provided that the following conditions 7227652Sgrehan# are met: 8227652Sgrehan# 1. Redistributions of source code must retain the above copyright 9227652Sgrehan# notice, this list of conditions and the following disclaimer. 10227652Sgrehan# 2. Redistributions in binary form must reproduce the above copyright 11227652Sgrehan# notice, this list of conditions and the following disclaimer in the 12227652Sgrehan# documentation and/or other materials provided with the distribution. 13227652Sgrehan# 14227652Sgrehan# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15227652Sgrehan# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16227652Sgrehan# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17227652Sgrehan# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18227652Sgrehan# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19227652Sgrehan# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20227652Sgrehan# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21227652Sgrehan# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22227652Sgrehan# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23227652Sgrehan# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24227652Sgrehan# SUCH DAMAGE. 25227652Sgrehan# 26227652Sgrehan# $FreeBSD$ 27227652Sgrehan 28227652Sgrehan#include <sys/bus.h> 29227652Sgrehan 30227652SgrehanINTERFACE virtio; 31227652Sgrehan 32227652SgrehanCODE { 33227652Sgrehan static int 34265298Sbryanv virtio_default_attach_completed(device_t dev) 35265298Sbryanv { 36265298Sbryanv return (0); 37265298Sbryanv } 38265298Sbryanv}; 39265298Sbryanv 40265298SbryanvMETHOD int attach_completed { 41265298Sbryanv device_t dev; 42265298Sbryanv} DEFAULT virtio_default_attach_completed; 43265298Sbryanv 44265298SbryanvCODE { 45265298Sbryanv static int 46227652Sgrehan virtio_default_config_change(device_t dev) 47227652Sgrehan { 48253132Sbryanv return (0); 49227652Sgrehan } 50227652Sgrehan}; 51227652Sgrehan 52227652SgrehanMETHOD int config_change { 53227652Sgrehan device_t dev; 54227652Sgrehan} DEFAULT virtio_default_config_change; 55