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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 NUBUS_CAT_BOARD = 0x0001, 25 NUBUS_CAT_DISPLAY = 0x0003, 26 NUBUS_CAT_NETWORK = 0x0004, 27 NUBUS_CAT_COMMUNICATIONS = 0x0006, 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 NUBUS_CAT_FONT = 0x0009, 30 NUBUS_CAT_CPU = 0x000A, 31 NUBUS_CAT_DUODOCK = 0x0020 32 }; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 enum nubus_type_network { 35 NUBUS_TYPE_ETHERNET = 0x0001, 36 NUBUS_TYPE_RS232 = 0x0002 37 }; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 enum nubus_type_display { 40 NUBUS_TYPE_VIDEO = 0x0001 41 }; 42 enum nubus_type_cpu { 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 NUBUS_TYPE_68020 = 0x0003, 45 NUBUS_TYPE_68030 = 0x0004, 46 NUBUS_TYPE_68040 = 0x0005 47 }; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 enum nubus_drsw { 50 NUBUS_DRSW_APPLE = 0x0001, 51 NUBUS_DRSW_APPLE_HIRES = 0x0013, 52 NUBUS_DRSW_3COM = 0x0000, 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 NUBUS_DRSW_CABLETRON = 0x0001, 55 NUBUS_DRSW_SONIC_LC = 0x0001, 56 NUBUS_DRSW_KINETICS = 0x0103, 57 NUBUS_DRSW_ASANTE = 0x0104, 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 NUBUS_DRSW_TECHWORKS = 0x0109, 60 NUBUS_DRSW_DAYNA = 0x010b, 61 NUBUS_DRSW_FARALLON = 0x010c, 62 NUBUS_DRSW_APPLE_SN = 0x010f, 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 NUBUS_DRSW_DAYNA2 = 0x0115, 65 NUBUS_DRSW_FOCUS = 0x011a, 66 NUBUS_DRSW_ASANTE_CS = 0x011d, 67 NUBUS_DRSW_DAYNA_LC = 0x011e, 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 NUBUS_DRSW_NONE = 0x0000, 70 }; 71 enum nubus_drhw { 72 NUBUS_DRHW_APPLE_TFB = 0x0001, 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 NUBUS_DRHW_APPLE_WVC = 0x0006, 75 NUBUS_DRHW_SIGMA_CLRMAX = 0x0007, 76 NUBUS_DRHW_APPLE_SE30 = 0x0009, 77 NUBUS_DRHW_APPLE_HRVC = 0x0013, 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 NUBUS_DRHW_APPLE_PVC = 0x0017, 80 NUBUS_DRHW_APPLE_RBV1 = 0x0018, 81 NUBUS_DRHW_APPLE_MDC = 0x0019, 82 NUBUS_DRHW_APPLE_SONORA = 0x0022, 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 NUBUS_DRHW_APPLE_24AC = 0x002b, 85 NUBUS_DRHW_APPLE_VALKYRIE = 0x002e, 86 NUBUS_DRHW_APPLE_JET = 0x0029, 87 NUBUS_DRHW_SMAC_GFX = 0x0105, 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 NUBUS_DRHW_RASTER_CB264 = 0x013B, 90 NUBUS_DRHW_MICRON_XCEED = 0x0146, 91 NUBUS_DRHW_RDIUS_GSC = 0x0153, 92 NUBUS_DRHW_SMAC_SPEC8 = 0x017B, 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 NUBUS_DRHW_SMAC_SPEC24 = 0x017C, 95 NUBUS_DRHW_RASTER_CB364 = 0x026F, 96 NUBUS_DRHW_RDIUS_DCGX = 0x027C, 97 NUBUS_DRHW_RDIUS_PC8 = 0x0291, 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 NUBUS_DRHW_LAPIS_PCS8 = 0x0292, 100 NUBUS_DRHW_RASTER_24XLI = 0x02A0, 101 NUBUS_DRHW_RASTER_PBPGT = 0x02A5, 102 NUBUS_DRHW_EMACH_FSX = 0x02AE, 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 NUBUS_DRHW_RASTER_24XLTV = 0x02B7, 105 NUBUS_DRHW_SMAC_THUND24 = 0x02CB, 106 NUBUS_DRHW_SMAC_THUNDLGHT = 0x03D9, 107 NUBUS_DRHW_RDIUS_PC24XP = 0x0406, 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 NUBUS_DRHW_RDIUS_PC24X = 0x040A, 110 NUBUS_DRHW_RDIUS_PC8XJ = 0x040B, 111 NUBUS_DRHW_INTERLAN = 0x0100, 112 NUBUS_DRHW_SMC9194 = 0x0101, 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 NUBUS_DRHW_KINETICS = 0x0106, 115 NUBUS_DRHW_CABLETRON = 0x0109, 116 NUBUS_DRHW_ASANTE_LC = 0x010f, 117 NUBUS_DRHW_SONIC = 0x0110, 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 NUBUS_DRHW_TECHWORKS = 0x0112, 120 NUBUS_DRHW_APPLE_SONIC_NB = 0x0118, 121 NUBUS_DRHW_APPLE_SONIC_LC = 0x0119, 122 NUBUS_DRHW_FOCUS = 0x011c, 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 NUBUS_DRHW_SONNET = 0x011d, 125 }; 126 enum nubus_res_id { 127 NUBUS_RESID_TYPE = 0x0001, 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 NUBUS_RESID_NAME = 0x0002, 130 NUBUS_RESID_ICON = 0x0003, 131 NUBUS_RESID_DRVRDIR = 0x0004, 132 NUBUS_RESID_LOADREC = 0x0005, 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 NUBUS_RESID_BOOTREC = 0x0006, 135 NUBUS_RESID_FLAGS = 0x0007, 136 NUBUS_RESID_HWDEVID = 0x0008, 137 NUBUS_RESID_MINOR_BASEOS = 0x000a, 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 NUBUS_RESID_MINOR_LENGTH = 0x000b, 140 NUBUS_RESID_MAJOR_BASEOS = 0x000c, 141 NUBUS_RESID_MAJOR_LENGTH = 0x000d, 142 NUBUS_RESID_CICN = 0x000f, 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 NUBUS_RESID_ICL8 = 0x0010, 145 NUBUS_RESID_ICL4 = 0x0011, 146 }; 147 enum nubus_board_res_id { 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 NUBUS_RESID_BOARDID = 0x0020, 150 NUBUS_RESID_PRAMINITDATA = 0x0021, 151 NUBUS_RESID_PRIMARYINIT = 0x0022, 152 NUBUS_RESID_TIMEOUTCONST = 0x0023, 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 NUBUS_RESID_VENDORINFO = 0x0024, 155 NUBUS_RESID_BOARDFLAGS = 0x0025, 156 NUBUS_RESID_SECONDINIT = 0x0026, 157 NUBUS_RESID_VIDNAMES = 0x0041, 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 NUBUS_RESID_VIDMODES = 0x007e 160 }; 161 enum nubus_vendor_res_id { 162 NUBUS_RESID_VEND_ID = 0x0001, 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 NUBUS_RESID_VEND_SERIAL = 0x0002, 165 NUBUS_RESID_VEND_REV = 0x0003, 166 NUBUS_RESID_VEND_PART = 0x0004, 167 NUBUS_RESID_VEND_DATE = 0x0005 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 }; 170 enum nubus_net_res_id { 171 NUBUS_RESID_MAC_ADDRESS = 0x0080 172 }; 173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 enum nubus_cpu_res_id { 175 NUBUS_RESID_MEMINFO = 0x0081, 176 NUBUS_RESID_ROMINFO = 0x0082 177 }; 178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 enum nubus_display_res_id { 180 NUBUS_RESID_GAMMADIR = 0x0040, 181 NUBUS_RESID_FIRSTMODE = 0x0080, 182 NUBUS_RESID_SECONDMODE = 0x0081, 183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 NUBUS_RESID_THIRDMODE = 0x0082, 185 NUBUS_RESID_FOURTHMODE = 0x0083, 186 NUBUS_RESID_FIFTHMODE = 0x0084, 187 NUBUS_RESID_SIXTHMODE = 0x0085 188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 }; 190 struct nubus_dir { 191 unsigned char * base; 192 unsigned char * ptr; 193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194 int done; 195 int mask; 196 }; 197 struct nubus_dirent { 198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199 unsigned char * base; 200 unsigned char type; 201 __u32 data; 202 int mask; 203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204 }; 205 #endif 206