1*0d31d326Ssnj /* $NetBSD: if_xennetvar.h,v 1.14 2009/10/23 02:32:33 snj Exp $ */ 241d325dcScl 341d325dcScl /* 441d325dcScl * 541d325dcScl * Copyright (c) 2004 Christian Limpach. 641d325dcScl * All rights reserved. 741d325dcScl * 841d325dcScl * Redistribution and use in source and binary forms, with or without 941d325dcScl * modification, are permitted provided that the following conditions 1041d325dcScl * are met: 1141d325dcScl * 1. Redistributions of source code must retain the above copyright 1241d325dcScl * notice, this list of conditions and the following disclaimer. 1341d325dcScl * 2. Redistributions in binary form must reproduce the above copyright 1441d325dcScl * notice, this list of conditions and the following disclaimer in the 1541d325dcScl * documentation and/or other materials provided with the distribution. 1641d325dcScl * 1741d325dcScl * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1841d325dcScl * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1941d325dcScl * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2041d325dcScl * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2141d325dcScl * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2241d325dcScl * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2341d325dcScl * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2441d325dcScl * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2541d325dcScl * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2641d325dcScl * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2741d325dcScl */ 2841d325dcScl 2941d325dcScl 3041d325dcScl #ifndef _XEN_IF_XENNETVAR_H_ 3141d325dcScl #define _XEN_IF_XENNETVAR_H_ 3241d325dcScl 334e541343Sbouyer #include <xen/xen.h> 3441d325dcScl 3541d325dcScl struct xennet_attach_args { 36edf6d721Scl const char *xa_device; 37e9666f30Sbouyer int xa_handle; 3841d325dcScl }; 3941d325dcScl 4041d325dcScl struct nfs_diskless; 4141d325dcScl 42af33bdeeScegger int xennet_scan(device_t, struct xennet_attach_args *, cfprint_t); 4341d325dcScl int xennet_bootstatic_callback(struct nfs_diskless *); 4441d325dcScl 4541d325dcScl #endif /* _XEN_IF_XENNETVAR_H_ */ 46