biosdisk_user.h revision 1.2.44.1
11.2.44.1Sskrll/* $NetBSD: biosdisk_user.h,v 1.2.44.1 2004/08/03 10:36:25 skrll Exp $ */ 21.1Sdrochner 31.1Sdrochner/* 41.1Sdrochner * Copyright (c) 1998 51.1Sdrochner * Matthias Drochner. All rights reserved. 61.1Sdrochner * 71.1Sdrochner * Redistribution and use in source and binary forms, with or without 81.1Sdrochner * modification, are permitted provided that the following conditions 91.1Sdrochner * are met: 101.1Sdrochner * 1. Redistributions of source code must retain the above copyright 111.1Sdrochner * notice, this list of conditions and the following disclaimer. 121.1Sdrochner * 2. Redistributions in binary form must reproduce the above copyright 131.1Sdrochner * notice, this list of conditions and the following disclaimer in the 141.1Sdrochner * documentation and/or other materials provided with the distribution. 151.1Sdrochner * 161.1Sdrochner * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 171.1Sdrochner * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 181.1Sdrochner * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 191.1Sdrochner * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 201.1Sdrochner * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 211.1Sdrochner * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 221.1Sdrochner * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 231.1Sdrochner * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 241.1Sdrochner * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 251.1Sdrochner * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 261.1Sdrochner * 271.1Sdrochner */ 281.1Sdrochner 291.1Sdrochner/* 301.1Sdrochner * Defines a mapping from device numbers to file 311.1Sdrochner * names and geometry data. The table must be terminated 321.1Sdrochner * by an entry with "biosdev" == -1. 331.1Sdrochner */ 341.1Sdrochner 351.1Sdrochnerstruct emuldisktabentry { 361.1Sdrochner int biosdev; 371.1Sdrochner char *name; 381.2Sdrochner int spt, heads, cyls; 391.1Sdrochner}; 401.1Sdrochner 411.1Sdrochnerextern struct emuldisktabentry emuldisktab[]; 421.1Sdrochner 431.1Sdrochner#if 0 441.1SdrochnerThis is an example: 451.1Sdrochnerstruct emuldisktabentry emuldisktab[] = { 461.2Sdrochner {0, "/dev/rfd0a", 18, 2, 80}, 471.2Sdrochner {1, "fdimage", 18, 2, 80}, 481.2Sdrochner {0x80, "/dev/rwd0d", 100, 4, 1000}, 491.2Sdrochner {0x81, "hdimage", 100, 4, 1000}, 501.1Sdrochner {-1} 511.1Sdrochner}; 521.1Sdrochner#endif 53