1 /* $NetBSD: sboot.h,v 1.5 2000/07/24 18:40:07 jdolecek Exp $ */
5 * Copyright (c) 1995 Charles D. Cranor and Seth Widoff
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed by Charles D. Cranor
20 * 4. The name of the author may not be used to endorse or promote products
21 * derived from this software without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 * sboot.h: stuff for MVME147's serial line boot
39 #include <lib/libkern/libkern.h>
40 #include <lib/libsa/stand.h>
49 char *ngets(char *, int);
54 void do_cmd(char *, char *);
57 #define LANCE_ADDR 0xfffe0778
58 #define ERAM_ADDR 0xfffe0774
59 #define LANCE_REG_ADDR 0xfffe1800
62 int le_get(u_char
*, size_t, u_long
);
63 int le_put(u_char
*, size_t);
68 void do_rev_arp(void);
69 int get_rev_arp(void);
71 void do_send_tftp(int);
72 int do_get_file(void);
73 void tftp_file(char *, u_long
);
79 u_long
oc_cksum (void *, u_long
, u_long
);
82 void go(int, void *, void *);
84 #define CONS_ZS_ADDR (0xfffe3002)
85 #define CLOCK_ADDR (0xfffe07f8)
86 #define LOAD_ADDR 0x8000
88 unsigned char myea
[6]; /* my ether addr */
89 unsigned char myip
[4];
90 unsigned char servip
[4];
91 unsigned char servea
[6];