xref: /netbsd-src/sys/arch/sparc/stand/ofwboot/net.h (revision 8aa95513d4832904e5abd6ac6629b008c6e2e665)
1*8aa95513Stsutsui /* $NetBSD: net.h,v 1.3 2012/07/16 11:26:27 tsutsui Exp $ */
24f951ec8She 
34f951ec8She /*-
44f951ec8She  * Copyright (c) 2011 The NetBSD Foundation, Inc.
54f951ec8She  * All rights reserved.
64f951ec8She  *
74f951ec8She  * This code is derived from software contributed to The NetBSD Foundation
84f951ec8She  * by
94f951ec8She  *
104f951ec8She  * Redistribution and use in source and binary forms, with or without
114f951ec8She  * modification, are permitted provided that the following conditions
124f951ec8She  * are met:
134f951ec8She  * 1. Redistributions of source code must retain the above copyright
144f951ec8She  *    notice, this list of conditions and the following disclaimer.
154f951ec8She  * 2. Redistributions in binary form must reproduce the above copyright
164f951ec8She  *    notice, this list of conditions and the following disclaimer in the
174f951ec8She  *    documentation and/or other materials provided with the distribution.
184f951ec8She  *
194f951ec8She  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
204f951ec8She  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
214f951ec8She  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
224f951ec8She  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
234f951ec8She  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
244f951ec8She  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
254f951ec8She  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
264f951ec8She  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
274f951ec8She  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
284f951ec8She  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
294f951ec8She  * POSSIBILITY OF SUCH DAMAGE.
304f951ec8She  */
314f951ec8She 
324f951ec8She #ifndef _OFWBOOT_NET_H
334f951ec8She #define _OFWBOOT_NET_H
344f951ec8She 
35c95f237aStsutsui int	net_open(struct of_dev *);
36c95f237aStsutsui int	net_close(struct of_dev *);
37*8aa95513Stsutsui int	net_tftp_bootp(int **);
38c95f237aStsutsui int	net_mountroot(void);
394f951ec8She 
404f951ec8She #endif /* _OFWBOOT_NET_H */
41