1*ce099b40Smartin /* $NetBSD: extern.h,v 1.3 2008/04/28 20:23:35 martin Exp $ */ 245879fd7Schristos 345879fd7Schristos /*- 445879fd7Schristos * Copyright (c) 2004 The NetBSD Foundation, Inc. 545879fd7Schristos * All rights reserved. 645879fd7Schristos * 745879fd7Schristos * This code is derived from software contributed to The NetBSD Foundation 845879fd7Schristos * by Christos Zoulas. 945879fd7Schristos * 1045879fd7Schristos * Redistribution and use in source and binary forms, with or without 1145879fd7Schristos * modification, are permitted provided that the following conditions 1245879fd7Schristos * are met: 1345879fd7Schristos * 1. Redistributions of source code must retain the above copyright 1445879fd7Schristos * notice, this list of conditions and the following disclaimer. 1545879fd7Schristos * 2. Redistributions in binary form must reproduce the above copyright 1645879fd7Schristos * notice, this list of conditions and the following disclaimer in the 1745879fd7Schristos * documentation and/or other materials provided with the distribution. 1845879fd7Schristos * 1945879fd7Schristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2045879fd7Schristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2145879fd7Schristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2245879fd7Schristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2345879fd7Schristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2445879fd7Schristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2545879fd7Schristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2645879fd7Schristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2745879fd7Schristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2845879fd7Schristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2945879fd7Schristos * POSSIBILITY OF SUCH DAMAGE. 3045879fd7Schristos */ 3145879fd7Schristos 3245879fd7Schristos #ifndef _OFWBOOT_EXTERN_H_ 3345879fd7Schristos #define _OFWBOOT_EXTERN_H_ 3445879fd7Schristos 3545879fd7Schristos void freeall(void); 3645879fd7Schristos void main(void); 3745879fd7Schristos 3845879fd7Schristos struct of_dev; 3945879fd7Schristos int net_open(struct of_dev *); 4045879fd7Schristos int net_close(struct of_dev *); 4145879fd7Schristos int net_mountroot(void); 4245879fd7Schristos 4345879fd7Schristos #endif /* _OFWBOOT_EXTERN_H_ */ 44