Home | History | Annotate | Line # | Download | only in nubus
nubus.h revision 1.1
      1 /*-
      2  * Copyright (C) 1993	Allen K. Briggs, Chris P. Caputo,
      3  *			Michael L. Finch, Bradley A. Grantham, and
      4  *			Lawrence A. Kesteloot
      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 the Alice Group.
     18  * 4. The names of the Alice Group or any of its members may not be used
     19  *    to endorse or promote products derived from this software without
     20  *    specific prior written permission.
     21  *
     22  * THIS SOFTWARE IS PROVIDED BY THE ALICE GROUP ``AS IS'' AND ANY EXPRESS OR
     23  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     24  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     25  * IN NO EVENT SHALL THE ALICE GROUP BE LIABLE FOR ANY DIRECT, INDIRECT,
     26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     27  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     28  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     29  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     30  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     32  *
     33  */
     34 #ident "$Id: nubus.h,v 1.1 1993/09/29 06:09:24 briggs Exp $"
     35 
     36 #define NUBUS_VIDEO 3
     37 #define NUBUS_NETWORK 4
     38 #define NUBUS_MOTHERBOARD 0x0a
     39 
     40 struct imagedata{
     41 	long whatTheHellIsThis;
     42 	long offset;
     43 	short rowbytes;
     44 	short top;
     45 	short left;
     46 	short right;
     47 	short bottom;
     48 	short version;
     49 	short packType;
     50 	short packSize;
     51 	long hRes;
     52 	long vRes;
     53 	short pixelType;
     54 	short pixelSize;
     55 };
     56 
     57 
     58 /* this is the main data structure that points to good stuff */
     59 struct header {
     60 	long offset;
     61 	long length;
     62 	long crc;
     63 	char romrev;
     64 	char format;
     65 	long tst;
     66 	char reserved;
     67 	char bytelane;
     68 } ;
     69 
     70 
     71 /* this is what the directory entries contain */
     72 struct dir {
     73 	unsigned char rsrc;
     74 	unsigned long offset;
     75 	unsigned long base;
     76 };
     77 
     78 /* describe a single slot */
     79 struct slot {
     80 	int size;
     81 	struct header head;
     82 	struct dir mainDir[15];
     83 	long type;
     84 	char name[40];
     85 	char manufacturer[40];
     86 };
     87 
     88