1*7f850a97Smickey /* $OpenBSD: libsa.h,v 1.22 1997/10/24 22:22:57 mickey Exp $ */ 2df1f5d3aSweingart 3df1f5d3aSweingart /* 4df1f5d3aSweingart * Copyright (c) 1996 Michael Shalayeff 5df1f5d3aSweingart * All rights reserved. 6df1f5d3aSweingart * 7df1f5d3aSweingart * Redistribution and use in source and binary forms, with or without 8df1f5d3aSweingart * modification, are permitted provided that the following conditions 9df1f5d3aSweingart * are met: 10df1f5d3aSweingart * 1. Redistributions of source code must retain the above copyright 11df1f5d3aSweingart * notice, this list of conditions and the following disclaimer. 12df1f5d3aSweingart * 2. Redistributions in binary form must reproduce the above copyright 13df1f5d3aSweingart * notice, this list of conditions and the following disclaimer in the 14df1f5d3aSweingart * documentation and/or other materials provided with the distribution. 15df1f5d3aSweingart * 3. All advertising materials mentioning features or use of this software 16df1f5d3aSweingart * must display the following acknowledgement: 17df1f5d3aSweingart * This product includes software developed by Michael Shalayeff. 18df1f5d3aSweingart * 4. The name of the author may not be used to endorse or promote products 19df1f5d3aSweingart * derived from this software without specific prior written permission. 20df1f5d3aSweingart * 21df1f5d3aSweingart * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22df1f5d3aSweingart * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23df1f5d3aSweingart * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24df1f5d3aSweingart * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25df1f5d3aSweingart * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26df1f5d3aSweingart * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27df1f5d3aSweingart * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28df1f5d3aSweingart * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29df1f5d3aSweingart * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30df1f5d3aSweingart * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31df1f5d3aSweingart * SUCH DAMAGE. 32df1f5d3aSweingart * 33df1f5d3aSweingart */ 34df1f5d3aSweingart 351b039fc9Smickey #include <lib/libsa/stand.h> 3605cdd021Sweingart #include <machine/biosvar.h> 37df1f5d3aSweingart 381e251da8Smickey void gateA20 __P((int)); 3905cdd021Sweingart 4056427238Sweingart void smpprobe __P((void)); 411e251da8Smickey void memprobe __P((void)); 4256427238Sweingart void diskprobe __P((void)); 431fd86601Sweingart void apmprobe __P((void)); 4405cdd021Sweingart 450b173ccaSmickey void devboot __P((dev_t, char *)); 465e4ceec8Smickey void *alloca __P((size_t)); 471b039fc9Smickey void machdep __P((void)); 48b5768873Smickey void time_print __P((void)); 49df1f5d3aSweingart 5041a5b770Smickey extern const char bdevs[][4]; 5141a5b770Smickey extern const int nbdevs; 52deaa2fceSmickey extern int bootdev; /* XXX pass through the global to exec_i386 */ 5303b324a0Smickey extern u_int cnvmem, extmem; /* XXX global pass memprobe()->machdep_start() */ 54deaa2fceSmickey 55b9a05c75Smickey /* diskprobe.c */ 56b9a05c75Smickey extern bios_diskinfo_t bios_diskinfo[]; 57*7f850a97Smickey extern u_int32_t bios_cksumlen; 58b9a05c75Smickey 59b9a05c75Smickey /* memprobe.c */ 60b9a05c75Smickey extern bios_memmap_t *memory_map; 61b9a05c75Smickey 62f74c92d6Smickey #define MACHINE_CMD cmd_machine /* we have i386 specific sommands */ 63