183364Sdfr/*- 283364Sdfr * Copyright (c) 2001 Doug Rabson 383364Sdfr * All rights reserved. 483364Sdfr * 583364Sdfr * Redistribution and use in source and binary forms, with or without 683364Sdfr * modification, are permitted provided that the following conditions 783364Sdfr * are met: 883364Sdfr * 1. Redistributions of source code must retain the above copyright 983364Sdfr * notice, this list of conditions and the following disclaimer. 1083364Sdfr * 2. Redistributions in binary form must reproduce the above copyright 1183364Sdfr * notice, this list of conditions and the following disclaimer in the 1283364Sdfr * documentation and/or other materials provided with the distribution. 1383364Sdfr * 1483364Sdfr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1583364Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1683364Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1783364Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1883364Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1983364Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2083364Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2183364Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2283364Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2383364Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2483364Sdfr * SUCH DAMAGE. 2583364Sdfr * 2683364Sdfr * $FreeBSD$ 2783364Sdfr */ 2883364Sdfr 2983364Sdfr#define MAXDEV 31 /* maximum number of distinct devices */ 3083364Sdfr 3183364Sdfrtypedef unsigned long physaddr_t; 3283364Sdfr 3383364Sdfr/* exported devices XXX rename? */ 3483364Sdfrextern struct devsw skifs_dev; 3583364Sdfrextern struct devsw ski_disk; 3683364Sdfrextern struct netif_driver ski_net; 3783364Sdfr 3883364Sdfr/* Wrapper over SKI filesystems. */ 3983364Sdfrextern struct fs_ops ski_fsops; 4083364Sdfr 4183364Sdfr/* this is in startup code */ 4283364Sdfrextern void delay(int); 4383364Sdfrextern void reboot(void); 4483364Sdfr 4583364Sdfrextern int ski_boot(void); 4683364Sdfr 4783408Sdfrstruct bootinfo; 4883408Sdfrstruct preloaded_file; 4983408Sdfr 5083364Sdfr#define SSC_CONSOLE_INIT 20 5183364Sdfr#define SSC_GETCHAR 21 5283364Sdfr#define SSC_PUTCHAR 31 5383364Sdfr#define SSC_OPEN 50 5483364Sdfr#define SSC_CLOSE 51 5583364Sdfr#define SSC_READ 52 5683364Sdfr#define SSC_WRITE 53 5783364Sdfr#define SSC_GET_COMPLETION 54 5883364Sdfr#define SSC_WAIT_COMPLETION 55 5983710Sdfr#define SSC_GET_RTC 65 6083364Sdfr#define SSC_EXIT 66 6183364Sdfr#define SSC_LOAD_SYMBOLS 69 62110211Smarcel#define SSC_SAL_SET_VECTORS 120 6383364Sdfr 6483364Sdfru_int64_t ssc(u_int64_t in0, u_int64_t in1, u_int64_t in2, u_int64_t in3, 6583364Sdfr int which); 66