[BACK]Return to sboot.h CVS log [TXT][DIR] Up to [local] / sys / arch / mvme68k / stand / sboot

Annotation of sys/arch/mvme68k/stand/sboot/sboot.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: sboot.h,v 1.8 2002/03/14 03:15:56 millert Exp $ */
                      2:
                      3: /*
                      4:  * Copyright (c) 1995 Charles D. Cranor and Seth Widoff
                      5:  * All rights reserved.
                      6:  *
                      7:  * Redistribution and use in source and binary forms, with or without
                      8:  * modification, are permitted provided that the following conditions
                      9:  * are met:
                     10:  * 1. Redistributions of source code must retain the above copyright
                     11:  *    notice, this list of conditions and the following disclaimer.
                     12:  * 2. Redistributions in binary form must reproduce the above copyright
                     13:  *    notice, this list of conditions and the following disclaimer in the
                     14:  *    documentation and/or other materials provided with the distribution.
                     15:  * 3. All advertising materials mentioning features or use of this software
                     16:  *    must display the following acknowledgement:
                     17:  *      This product includes software developed by Charles D. Cranor
                     18:  *     and Seth Widoff.
                     19:  * 4. The name of the author may not be used to endorse or promote products
                     20:  *    derived from this software without specific prior written permission.
                     21:  *
                     22:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     23:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                     24:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
                     25:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
                     26:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
                     27:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     28:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
                     29:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
                     30:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     31:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     32:  */
                     33:
                     34: /*
                     35:  * sboot.h: stuff for MVME147's serial line boot
                     36:  */
                     37:
                     38: extern caddr_t end;
                     39:
                     40: /* console */
                     41: void puts(char *);
                     42: char *ngets(char *, int);
                     43:
                     44: /* sboot */
                     45: void callrom(void);
                     46: void do_cmd(char *, char *);
                     47:
                     48: /* le */
                     49: #define LANCE_ADDR 0xfffe0778
                     50: #define ERAM_ADDR  0xfffe0774
                     51: #define LANCE_REG_ADDR 0xfffe1800
                     52: void le_end(void);
                     53: void le_init(void);
                     54: int le_get(u_char *, size_t, u_long);
                     55: int le_put(u_char *, size_t);
                     56:
                     57: /* etherfun */
                     58: #define READ 0
                     59: #define ACKN 1
                     60: void do_rev_arp(void);
                     61: int get_rev_arp(void);
                     62: int rev_arp(void);
                     63: void do_send_tftp(int);
                     64: int do_get_file(void);
                     65: void tftp_file(char *, u_long);
                     66:
                     67: /* clock */
                     68: u_long ttime(void);
                     69:
                     70: /* checksum */
                     71: u_long oc_cksum(void *, u_long, u_long);
                     72:
                     73: #define CONS_ZS_ADDR (0xfffe3002)
                     74: #define CLOCK_ADDR (0xfffe07f8)
                     75: #define LOAD_ADDR 0x7000
                     76:
                     77: unsigned char myea[6];                /* my ether addr */
                     78: unsigned char myip[4];
                     79: unsigned char servip[4];
                     80: unsigned char servea[6];
                     81: u_short myport;
                     82: u_short servport;
                     83: unsigned char reboot;

CVSweb