1*95e1ffb1Schristos /* $NetBSD: biosdisk_user.h,v 1.4 2005/12/11 12:17:49 christos Exp $ */ 241539711Sdrochner 341539711Sdrochner /* 441539711Sdrochner * Copyright (c) 1998 541539711Sdrochner * Matthias Drochner. All rights reserved. 641539711Sdrochner * 741539711Sdrochner * Redistribution and use in source and binary forms, with or without 841539711Sdrochner * modification, are permitted provided that the following conditions 941539711Sdrochner * are met: 1041539711Sdrochner * 1. Redistributions of source code must retain the above copyright 1141539711Sdrochner * notice, this list of conditions and the following disclaimer. 1241539711Sdrochner * 2. Redistributions in binary form must reproduce the above copyright 1341539711Sdrochner * notice, this list of conditions and the following disclaimer in the 1441539711Sdrochner * documentation and/or other materials provided with the distribution. 1541539711Sdrochner * 1641539711Sdrochner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1741539711Sdrochner * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1841539711Sdrochner * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1941539711Sdrochner * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2041539711Sdrochner * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2141539711Sdrochner * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2241539711Sdrochner * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2341539711Sdrochner * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2441539711Sdrochner * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2541539711Sdrochner * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2641539711Sdrochner * 2741539711Sdrochner */ 2841539711Sdrochner 2941539711Sdrochner /* 3041539711Sdrochner * Defines a mapping from device numbers to file 3141539711Sdrochner * names and geometry data. The table must be terminated 3241539711Sdrochner * by an entry with "biosdev" == -1. 3341539711Sdrochner */ 3441539711Sdrochner 3541539711Sdrochner struct emuldisktabentry { 3641539711Sdrochner int biosdev; 3741539711Sdrochner char *name; 384feae58eSdrochner int spt, heads, cyls; 3941539711Sdrochner }; 4041539711Sdrochner 4141539711Sdrochner extern struct emuldisktabentry emuldisktab[]; 4241539711Sdrochner 4341539711Sdrochner #if 0 4441539711Sdrochner This is an example: 4541539711Sdrochner struct emuldisktabentry emuldisktab[] = { 464feae58eSdrochner {0, "/dev/rfd0a", 18, 2, 80}, 474feae58eSdrochner {1, "fdimage", 18, 2, 80}, 484feae58eSdrochner {0x80, "/dev/rwd0d", 100, 4, 1000}, 494feae58eSdrochner {0x81, "hdimage", 100, 4, 1000}, 5041539711Sdrochner {-1} 5141539711Sdrochner }; 5241539711Sdrochner #endif 53