nubus.h revision 1.2 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 * $Id: nubus.h,v 1.2 1993/11/29 00:32:52 briggs Exp $
34 *
35 */
36
37 #define NUBUS_VIDEO 3
38 #define NUBUS_NETWORK 4
39 #define NUBUS_MOTHERBOARD 0x0a
40 #define NUBUS_MAXSLOTS 16
41
42 struct imagedata{
43 long whatTheHellIsThis;
44 long offset;
45 short rowbytes;
46 short top;
47 short left;
48 short right;
49 short bottom;
50 short version;
51 short packType;
52 short packSize;
53 long hRes;
54 long vRes;
55 short pixelType;
56 short pixelSize;
57 };
58
59
60 /* this is the main data structure that points to good stuff */
61 struct header {
62 long offset;
63 long length;
64 long crc;
65 char romrev;
66 char format;
67 long tst;
68 char reserved;
69 char bytelane;
70 } ;
71
72
73 /* this is what the directory entries contain */
74 struct dir {
75 unsigned char rsrc;
76 unsigned long offset;
77 unsigned long base;
78 };
79
80 /* describe a single slot */
81 struct slot {
82 int size;
83 struct header head;
84 struct dir mainDir[15];
85 long type;
86 char name[40];
87 char manufacturer[40];
88 };
89
90 struct nubus_hw{
91 int found; /* If there is a card there */
92 caddr_t addr; /* Phys addr of start of card */
93 caddr_t rom; /* Phys addr of start of ROM */
94 int claimed; /* TRUE if a driver claims this */
95 struct slot Slot; /* MF NUBUS STUFF */
96 /* any other Nubus stuff we can think of when we get */
97 /* the NuBus documentation */
98 };
99