1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPILINUX_NUBUS_H
20 #define _UAPILINUX_NUBUS_H
21 #include <linux/types.h>
22 enum nubus_category {
23   NUBUS_CAT_BOARD = 0x0001,
24   NUBUS_CAT_DISPLAY = 0x0003,
25   NUBUS_CAT_NETWORK = 0x0004,
26   NUBUS_CAT_COMMUNICATIONS = 0x0006,
27   NUBUS_CAT_FONT = 0x0009,
28   NUBUS_CAT_CPU = 0x000A,
29   NUBUS_CAT_DUODOCK = 0x0020
30 };
31 enum nubus_type_network {
32   NUBUS_TYPE_ETHERNET = 0x0001,
33   NUBUS_TYPE_RS232 = 0x0002
34 };
35 enum nubus_type_display {
36   NUBUS_TYPE_VIDEO = 0x0001
37 };
38 enum nubus_type_cpu {
39   NUBUS_TYPE_68020 = 0x0003,
40   NUBUS_TYPE_68030 = 0x0004,
41   NUBUS_TYPE_68040 = 0x0005
42 };
43 enum nubus_drsw {
44   NUBUS_DRSW_APPLE = 0x0001,
45   NUBUS_DRSW_APPLE_HIRES = 0x0013,
46   NUBUS_DRSW_3COM = 0x0000,
47   NUBUS_DRSW_CABLETRON = 0x0001,
48   NUBUS_DRSW_SONIC_LC = 0x0001,
49   NUBUS_DRSW_KINETICS = 0x0103,
50   NUBUS_DRSW_ASANTE = 0x0104,
51   NUBUS_DRSW_TECHWORKS = 0x0109,
52   NUBUS_DRSW_DAYNA = 0x010b,
53   NUBUS_DRSW_FARALLON = 0x010c,
54   NUBUS_DRSW_APPLE_SN = 0x010f,
55   NUBUS_DRSW_DAYNA2 = 0x0115,
56   NUBUS_DRSW_FOCUS = 0x011a,
57   NUBUS_DRSW_ASANTE_CS = 0x011d,
58   NUBUS_DRSW_DAYNA_LC = 0x011e,
59   NUBUS_DRSW_NONE = 0x0000,
60 };
61 enum nubus_drhw {
62   NUBUS_DRHW_APPLE_TFB = 0x0001,
63   NUBUS_DRHW_APPLE_WVC = 0x0006,
64   NUBUS_DRHW_SIGMA_CLRMAX = 0x0007,
65   NUBUS_DRHW_APPLE_SE30 = 0x0009,
66   NUBUS_DRHW_APPLE_HRVC = 0x0013,
67   NUBUS_DRHW_APPLE_MVC = 0x0014,
68   NUBUS_DRHW_APPLE_PVC = 0x0017,
69   NUBUS_DRHW_APPLE_RBV1 = 0x0018,
70   NUBUS_DRHW_APPLE_MDC = 0x0019,
71   NUBUS_DRHW_APPLE_VSC = 0x0020,
72   NUBUS_DRHW_APPLE_SONORA = 0x0022,
73   NUBUS_DRHW_APPLE_JET = 0x0029,
74   NUBUS_DRHW_APPLE_24AC = 0x002b,
75   NUBUS_DRHW_APPLE_VALKYRIE = 0x002e,
76   NUBUS_DRHW_SMAC_GFX = 0x0105,
77   NUBUS_DRHW_RASTER_CB264 = 0x013B,
78   NUBUS_DRHW_MICRON_XCEED = 0x0146,
79   NUBUS_DRHW_RDIUS_GSC = 0x0153,
80   NUBUS_DRHW_SMAC_SPEC8 = 0x017B,
81   NUBUS_DRHW_SMAC_SPEC24 = 0x017C,
82   NUBUS_DRHW_RASTER_CB364 = 0x026F,
83   NUBUS_DRHW_RDIUS_DCGX = 0x027C,
84   NUBUS_DRHW_RDIUS_PC8 = 0x0291,
85   NUBUS_DRHW_LAPIS_PCS8 = 0x0292,
86   NUBUS_DRHW_RASTER_24XLI = 0x02A0,
87   NUBUS_DRHW_RASTER_PBPGT = 0x02A5,
88   NUBUS_DRHW_EMACH_FSX = 0x02AE,
89   NUBUS_DRHW_RASTER_24XLTV = 0x02B7,
90   NUBUS_DRHW_SMAC_THUND24 = 0x02CB,
91   NUBUS_DRHW_SMAC_THUNDLGHT = 0x03D9,
92   NUBUS_DRHW_RDIUS_PC24XP = 0x0406,
93   NUBUS_DRHW_RDIUS_PC24X = 0x040A,
94   NUBUS_DRHW_RDIUS_PC8XJ = 0x040B,
95   NUBUS_DRHW_INTERLAN = 0x0100,
96   NUBUS_DRHW_SMC9194 = 0x0101,
97   NUBUS_DRHW_KINETICS = 0x0106,
98   NUBUS_DRHW_CABLETRON = 0x0109,
99   NUBUS_DRHW_ASANTE_LC = 0x010f,
100   NUBUS_DRHW_SONIC = 0x0110,
101   NUBUS_DRHW_TECHWORKS = 0x0112,
102   NUBUS_DRHW_APPLE_SONIC_NB = 0x0118,
103   NUBUS_DRHW_APPLE_SONIC_LC = 0x0119,
104   NUBUS_DRHW_FOCUS = 0x011c,
105   NUBUS_DRHW_SONNET = 0x011d,
106 };
107 enum nubus_res_id {
108   NUBUS_RESID_TYPE = 0x0001,
109   NUBUS_RESID_NAME = 0x0002,
110   NUBUS_RESID_ICON = 0x0003,
111   NUBUS_RESID_DRVRDIR = 0x0004,
112   NUBUS_RESID_LOADREC = 0x0005,
113   NUBUS_RESID_BOOTREC = 0x0006,
114   NUBUS_RESID_FLAGS = 0x0007,
115   NUBUS_RESID_HWDEVID = 0x0008,
116   NUBUS_RESID_MINOR_BASEOS = 0x000a,
117   NUBUS_RESID_MINOR_LENGTH = 0x000b,
118   NUBUS_RESID_MAJOR_BASEOS = 0x000c,
119   NUBUS_RESID_MAJOR_LENGTH = 0x000d,
120   NUBUS_RESID_CICN = 0x000f,
121   NUBUS_RESID_ICL8 = 0x0010,
122   NUBUS_RESID_ICL4 = 0x0011,
123 };
124 enum nubus_board_res_id {
125   NUBUS_RESID_BOARDID = 0x0020,
126   NUBUS_RESID_PRAMINITDATA = 0x0021,
127   NUBUS_RESID_PRIMARYINIT = 0x0022,
128   NUBUS_RESID_TIMEOUTCONST = 0x0023,
129   NUBUS_RESID_VENDORINFO = 0x0024,
130   NUBUS_RESID_BOARDFLAGS = 0x0025,
131   NUBUS_RESID_SECONDINIT = 0x0026,
132   NUBUS_RESID_VIDNAMES = 0x0041,
133   NUBUS_RESID_VIDMODES = 0x007e
134 };
135 enum nubus_vendor_res_id {
136   NUBUS_RESID_VEND_ID = 0x0001,
137   NUBUS_RESID_VEND_SERIAL = 0x0002,
138   NUBUS_RESID_VEND_REV = 0x0003,
139   NUBUS_RESID_VEND_PART = 0x0004,
140   NUBUS_RESID_VEND_DATE = 0x0005
141 };
142 enum nubus_net_res_id {
143   NUBUS_RESID_MAC_ADDRESS = 0x0080
144 };
145 enum nubus_cpu_res_id {
146   NUBUS_RESID_MEMINFO = 0x0081,
147   NUBUS_RESID_ROMINFO = 0x0082
148 };
149 enum nubus_display_res_id {
150   NUBUS_RESID_GAMMADIR = 0x0040,
151   NUBUS_RESID_FIRSTMODE = 0x0080,
152   NUBUS_RESID_SECONDMODE = 0x0081,
153   NUBUS_RESID_THIRDMODE = 0x0082,
154   NUBUS_RESID_FOURTHMODE = 0x0083,
155   NUBUS_RESID_FIFTHMODE = 0x0084,
156   NUBUS_RESID_SIXTHMODE = 0x0085
157 };
158 #endif
159