blob: 5c80c8188e6014332b3c68e9483917a6ea9fa485 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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>
22enum nubus_category {
Tao Baod7db5942015-01-28 10:07:51 -080023 NUBUS_CAT_BOARD = 0x0001,
24 NUBUS_CAT_DISPLAY = 0x0003,
25 NUBUS_CAT_NETWORK = 0x0004,
26 NUBUS_CAT_COMMUNICATIONS = 0x0006,
Tao Baod7db5942015-01-28 10:07:51 -080027 NUBUS_CAT_FONT = 0x0009,
28 NUBUS_CAT_CPU = 0x000A,
29 NUBUS_CAT_DUODOCK = 0x0020
Ben Cheng655a7c02013-10-16 16:09:24 -070030};
Ben Cheng655a7c02013-10-16 16:09:24 -070031enum nubus_type_network {
Tao Baod7db5942015-01-28 10:07:51 -080032 NUBUS_TYPE_ETHERNET = 0x0001,
33 NUBUS_TYPE_RS232 = 0x0002
Ben Cheng655a7c02013-10-16 16:09:24 -070034};
Ben Cheng655a7c02013-10-16 16:09:24 -070035enum nubus_type_display {
Tao Baod7db5942015-01-28 10:07:51 -080036 NUBUS_TYPE_VIDEO = 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -070037};
38enum nubus_type_cpu {
Tao Baod7db5942015-01-28 10:07:51 -080039 NUBUS_TYPE_68020 = 0x0003,
40 NUBUS_TYPE_68030 = 0x0004,
41 NUBUS_TYPE_68040 = 0x0005
Ben Cheng655a7c02013-10-16 16:09:24 -070042};
Ben Cheng655a7c02013-10-16 16:09:24 -070043enum nubus_drsw {
Tao Baod7db5942015-01-28 10:07:51 -080044 NUBUS_DRSW_APPLE = 0x0001,
45 NUBUS_DRSW_APPLE_HIRES = 0x0013,
46 NUBUS_DRSW_3COM = 0x0000,
Tao Baod7db5942015-01-28 10:07:51 -080047 NUBUS_DRSW_CABLETRON = 0x0001,
48 NUBUS_DRSW_SONIC_LC = 0x0001,
49 NUBUS_DRSW_KINETICS = 0x0103,
50 NUBUS_DRSW_ASANTE = 0x0104,
Tao Baod7db5942015-01-28 10:07:51 -080051 NUBUS_DRSW_TECHWORKS = 0x0109,
52 NUBUS_DRSW_DAYNA = 0x010b,
53 NUBUS_DRSW_FARALLON = 0x010c,
54 NUBUS_DRSW_APPLE_SN = 0x010f,
Tao Baod7db5942015-01-28 10:07:51 -080055 NUBUS_DRSW_DAYNA2 = 0x0115,
56 NUBUS_DRSW_FOCUS = 0x011a,
57 NUBUS_DRSW_ASANTE_CS = 0x011d,
58 NUBUS_DRSW_DAYNA_LC = 0x011e,
Tao Baod7db5942015-01-28 10:07:51 -080059 NUBUS_DRSW_NONE = 0x0000,
Ben Cheng655a7c02013-10-16 16:09:24 -070060};
61enum nubus_drhw {
Tao Baod7db5942015-01-28 10:07:51 -080062 NUBUS_DRHW_APPLE_TFB = 0x0001,
Tao Baod7db5942015-01-28 10:07:51 -080063 NUBUS_DRHW_APPLE_WVC = 0x0006,
64 NUBUS_DRHW_SIGMA_CLRMAX = 0x0007,
65 NUBUS_DRHW_APPLE_SE30 = 0x0009,
66 NUBUS_DRHW_APPLE_HRVC = 0x0013,
Tao Baod7db5942015-01-28 10:07:51 -080067 NUBUS_DRHW_APPLE_PVC = 0x0017,
68 NUBUS_DRHW_APPLE_RBV1 = 0x0018,
69 NUBUS_DRHW_APPLE_MDC = 0x0019,
70 NUBUS_DRHW_APPLE_SONORA = 0x0022,
Tao Baod7db5942015-01-28 10:07:51 -080071 NUBUS_DRHW_APPLE_24AC = 0x002b,
72 NUBUS_DRHW_APPLE_VALKYRIE = 0x002e,
73 NUBUS_DRHW_APPLE_JET = 0x0029,
74 NUBUS_DRHW_SMAC_GFX = 0x0105,
Tao Baod7db5942015-01-28 10:07:51 -080075 NUBUS_DRHW_RASTER_CB264 = 0x013B,
76 NUBUS_DRHW_MICRON_XCEED = 0x0146,
77 NUBUS_DRHW_RDIUS_GSC = 0x0153,
78 NUBUS_DRHW_SMAC_SPEC8 = 0x017B,
Tao Baod7db5942015-01-28 10:07:51 -080079 NUBUS_DRHW_SMAC_SPEC24 = 0x017C,
80 NUBUS_DRHW_RASTER_CB364 = 0x026F,
81 NUBUS_DRHW_RDIUS_DCGX = 0x027C,
82 NUBUS_DRHW_RDIUS_PC8 = 0x0291,
Tao Baod7db5942015-01-28 10:07:51 -080083 NUBUS_DRHW_LAPIS_PCS8 = 0x0292,
84 NUBUS_DRHW_RASTER_24XLI = 0x02A0,
85 NUBUS_DRHW_RASTER_PBPGT = 0x02A5,
86 NUBUS_DRHW_EMACH_FSX = 0x02AE,
Tao Baod7db5942015-01-28 10:07:51 -080087 NUBUS_DRHW_RASTER_24XLTV = 0x02B7,
88 NUBUS_DRHW_SMAC_THUND24 = 0x02CB,
89 NUBUS_DRHW_SMAC_THUNDLGHT = 0x03D9,
90 NUBUS_DRHW_RDIUS_PC24XP = 0x0406,
Tao Baod7db5942015-01-28 10:07:51 -080091 NUBUS_DRHW_RDIUS_PC24X = 0x040A,
92 NUBUS_DRHW_RDIUS_PC8XJ = 0x040B,
93 NUBUS_DRHW_INTERLAN = 0x0100,
94 NUBUS_DRHW_SMC9194 = 0x0101,
Tao Baod7db5942015-01-28 10:07:51 -080095 NUBUS_DRHW_KINETICS = 0x0106,
96 NUBUS_DRHW_CABLETRON = 0x0109,
97 NUBUS_DRHW_ASANTE_LC = 0x010f,
98 NUBUS_DRHW_SONIC = 0x0110,
Tao Baod7db5942015-01-28 10:07:51 -080099 NUBUS_DRHW_TECHWORKS = 0x0112,
100 NUBUS_DRHW_APPLE_SONIC_NB = 0x0118,
101 NUBUS_DRHW_APPLE_SONIC_LC = 0x0119,
102 NUBUS_DRHW_FOCUS = 0x011c,
Tao Baod7db5942015-01-28 10:07:51 -0800103 NUBUS_DRHW_SONNET = 0x011d,
Ben Cheng655a7c02013-10-16 16:09:24 -0700104};
105enum nubus_res_id {
Tao Baod7db5942015-01-28 10:07:51 -0800106 NUBUS_RESID_TYPE = 0x0001,
Tao Baod7db5942015-01-28 10:07:51 -0800107 NUBUS_RESID_NAME = 0x0002,
108 NUBUS_RESID_ICON = 0x0003,
109 NUBUS_RESID_DRVRDIR = 0x0004,
110 NUBUS_RESID_LOADREC = 0x0005,
Tao Baod7db5942015-01-28 10:07:51 -0800111 NUBUS_RESID_BOOTREC = 0x0006,
112 NUBUS_RESID_FLAGS = 0x0007,
113 NUBUS_RESID_HWDEVID = 0x0008,
114 NUBUS_RESID_MINOR_BASEOS = 0x000a,
Tao Baod7db5942015-01-28 10:07:51 -0800115 NUBUS_RESID_MINOR_LENGTH = 0x000b,
116 NUBUS_RESID_MAJOR_BASEOS = 0x000c,
117 NUBUS_RESID_MAJOR_LENGTH = 0x000d,
118 NUBUS_RESID_CICN = 0x000f,
Tao Baod7db5942015-01-28 10:07:51 -0800119 NUBUS_RESID_ICL8 = 0x0010,
120 NUBUS_RESID_ICL4 = 0x0011,
Ben Cheng655a7c02013-10-16 16:09:24 -0700121};
122enum nubus_board_res_id {
Tao Baod7db5942015-01-28 10:07:51 -0800123 NUBUS_RESID_BOARDID = 0x0020,
124 NUBUS_RESID_PRAMINITDATA = 0x0021,
125 NUBUS_RESID_PRIMARYINIT = 0x0022,
126 NUBUS_RESID_TIMEOUTCONST = 0x0023,
Tao Baod7db5942015-01-28 10:07:51 -0800127 NUBUS_RESID_VENDORINFO = 0x0024,
128 NUBUS_RESID_BOARDFLAGS = 0x0025,
129 NUBUS_RESID_SECONDINIT = 0x0026,
130 NUBUS_RESID_VIDNAMES = 0x0041,
Tao Baod7db5942015-01-28 10:07:51 -0800131 NUBUS_RESID_VIDMODES = 0x007e
Ben Cheng655a7c02013-10-16 16:09:24 -0700132};
133enum nubus_vendor_res_id {
Tao Baod7db5942015-01-28 10:07:51 -0800134 NUBUS_RESID_VEND_ID = 0x0001,
Tao Baod7db5942015-01-28 10:07:51 -0800135 NUBUS_RESID_VEND_SERIAL = 0x0002,
136 NUBUS_RESID_VEND_REV = 0x0003,
137 NUBUS_RESID_VEND_PART = 0x0004,
138 NUBUS_RESID_VEND_DATE = 0x0005
Ben Cheng655a7c02013-10-16 16:09:24 -0700139};
140enum nubus_net_res_id {
Tao Baod7db5942015-01-28 10:07:51 -0800141 NUBUS_RESID_MAC_ADDRESS = 0x0080
Ben Cheng655a7c02013-10-16 16:09:24 -0700142};
Ben Cheng655a7c02013-10-16 16:09:24 -0700143enum nubus_cpu_res_id {
Tao Baod7db5942015-01-28 10:07:51 -0800144 NUBUS_RESID_MEMINFO = 0x0081,
145 NUBUS_RESID_ROMINFO = 0x0082
Ben Cheng655a7c02013-10-16 16:09:24 -0700146};
Ben Cheng655a7c02013-10-16 16:09:24 -0700147enum nubus_display_res_id {
Tao Baod7db5942015-01-28 10:07:51 -0800148 NUBUS_RESID_GAMMADIR = 0x0040,
149 NUBUS_RESID_FIRSTMODE = 0x0080,
150 NUBUS_RESID_SECONDMODE = 0x0081,
Tao Baod7db5942015-01-28 10:07:51 -0800151 NUBUS_RESID_THIRDMODE = 0x0082,
152 NUBUS_RESID_FOURTHMODE = 0x0083,
153 NUBUS_RESID_FIFTHMODE = 0x0084,
154 NUBUS_RESID_SIXTHMODE = 0x0085
Ben Cheng655a7c02013-10-16 16:09:24 -0700155};
Tao Baod7db5942015-01-28 10:07:51 -0800156struct nubus_dir {
157 unsigned char * base;
158 unsigned char * ptr;
Tao Baod7db5942015-01-28 10:07:51 -0800159 int done;
160 int mask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700161};
Tao Baod7db5942015-01-28 10:07:51 -0800162struct nubus_dirent {
Tao Baod7db5942015-01-28 10:07:51 -0800163 unsigned char * base;
164 unsigned char type;
165 __u32 data;
166 int mask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700167};
168#endif