1 /* $OpenBSD: biosdev.h,v 1.25 2000/06/08 01:51:33 mickey Exp $ */ 2 3 /* 4 * Copyright (c) 1996 Michael Shalayeff 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 Michael Shalayeff. 18 * 4. The name of the author may not be used to endorse or promote products 19 * derived from this software without specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 */ 34 35 struct consdev; 36 struct open_file; 37 38 /* biosdev.c */ 39 extern const char *biosdevs[]; 40 int biosstrategy __P((void *, int, daddr_t, size_t, void *, size_t *)); 41 int biosopen __P((struct open_file *, ...)); 42 int biosclose __P((struct open_file *)); 43 int biosioctl __P((struct open_file *, u_long, void *)); 44 int bios_getdiskinfo __P((int, bios_diskinfo_t *)); 45 int biosd_io __P((int, int, int, int, int, int, void*)); 46 const char * bios_getdisklabel __P((bios_diskinfo_t *, struct disklabel *)); 47 48 /* diskprobe.c */ 49 struct diskinfo *dklookup __P((int)); 50 bios_diskinfo_t *bios_dklookup __P((int)); 51 52 /* bioscons.c */ 53 void pc_probe __P((struct consdev *)); 54 void pc_init __P((struct consdev *)); 55 int pc_getc __P((dev_t)); 56 void pc_putc __P((dev_t, int)); 57 void pc_pollc __P((dev_t, int)); 58 void com_probe __P((struct consdev *)); 59 void com_init __P((struct consdev *)); 60 int comspeed __P((dev_t, int)); 61 int com_getc __P((dev_t)); 62 void com_putc __P((dev_t, int)); 63 void com_pollc __P((dev_t, int)); 64