1 /* $NetBSD: data.h,v 1.3 2001/07/26 15:05:09 wiz Exp $ */ 2 /* 3 * Copyright (c) 1995 Ludd, University of Lule}, Sweden. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Ludd by 7 * Bertram Barth. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions 11 * are met: 12 * 1. Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 2. Redistributions in binary form must reproduce the above copyright 15 * notice, this list of conditions and the following disclaimer in the 16 * documentation and/or other materials provided with the distribution. 17 * 3. All advertising materials mentioning features or use of this software 18 * must display the following acknowledgement: 19 * This product includes software developed at Ludd, University of 20 * Lule}, Sweden and its contributors. 21 * 4. The name of the author may not be used to endorse or promote products 22 * derived from this software without specific prior written permission 23 * 24 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 25 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 26 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 28 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 29 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 */ 35 36 /* All bugs are subject to removal without further notice */ 37 38 39 40 /* 41 * rpb->iovec gives pointer to this structure. 42 * 43 * bqo->unit_init() is used to initialize the controller, 44 * bqo->qio() is used to read from boot-device 45 */ 46 47 struct bqo { 48 long qio; /* 4 QIO entry */ 49 long map; /* 4 Mapping entry */ 50 long select; /* 4 Selection entry */ 51 long drivrname; /* 4 Offset to driver name */ 52 short version; /* 2 Version number of VMB */ 53 short vercheck; /* 2 Check field */ 54 /* offset: 20 */ 55 long reselect; /* 4 Reselection entry */ 56 long move; /* 4 Move driver entry */ 57 long unit_init; /* 4 Unit initialization entry */ 58 long auxdrname; /* 4 Offset to auxiliary driver name */ 59 long umr_dis; /* 4 UNIBUS Map Registers to disable */ 60 /* offset: 40 */ 61 long ucode; /* 4 Absolute address of booting microcode */ 62 long unit_disc; /* 4 Unit disconnecting entry */ 63 long devname; /* 4 Offset to boot device name */ 64 long umr_tmpl; /* 4 UNIBUS map register template */ 65 /* offset: 60 */ 66 /* 67 * the rest is unknown / unnecessary ... 68 */ 69 long xxx[6]; /* 24 -- total: 84 bytes */ 70 }; 71 72 extern struct bqo *bqo; 73