| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | NUBUS_CAT_BOARD = 0x0001, | 
|  | 24 | NUBUS_CAT_DISPLAY = 0x0003, | 
|  | 25 | NUBUS_CAT_NETWORK = 0x0004, | 
|  | 26 | NUBUS_CAT_COMMUNICATIONS = 0x0006, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | NUBUS_CAT_FONT = 0x0009, | 
|  | 28 | NUBUS_CAT_CPU = 0x000A, | 
|  | 29 | NUBUS_CAT_DUODOCK = 0x0020 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | enum nubus_type_network { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 32 | NUBUS_TYPE_ETHERNET = 0x0001, | 
|  | 33 | NUBUS_TYPE_RS232 = 0x0002 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 34 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | enum nubus_type_display { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 36 | NUBUS_TYPE_VIDEO = 0x0001 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 37 | }; | 
|  | 38 | enum nubus_type_cpu { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | NUBUS_TYPE_68020 = 0x0003, | 
|  | 40 | NUBUS_TYPE_68030 = 0x0004, | 
|  | 41 | NUBUS_TYPE_68040 = 0x0005 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 42 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | enum nubus_drsw { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 | NUBUS_DRSW_APPLE = 0x0001, | 
|  | 45 | NUBUS_DRSW_APPLE_HIRES = 0x0013, | 
|  | 46 | NUBUS_DRSW_3COM = 0x0000, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | NUBUS_DRSW_CABLETRON = 0x0001, | 
|  | 48 | NUBUS_DRSW_SONIC_LC = 0x0001, | 
|  | 49 | NUBUS_DRSW_KINETICS = 0x0103, | 
|  | 50 | NUBUS_DRSW_ASANTE = 0x0104, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | NUBUS_DRSW_TECHWORKS = 0x0109, | 
|  | 52 | NUBUS_DRSW_DAYNA = 0x010b, | 
|  | 53 | NUBUS_DRSW_FARALLON = 0x010c, | 
|  | 54 | NUBUS_DRSW_APPLE_SN = 0x010f, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | NUBUS_DRSW_DAYNA2 = 0x0115, | 
|  | 56 | NUBUS_DRSW_FOCUS = 0x011a, | 
|  | 57 | NUBUS_DRSW_ASANTE_CS = 0x011d, | 
|  | 58 | NUBUS_DRSW_DAYNA_LC = 0x011e, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | NUBUS_DRSW_NONE = 0x0000, | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | }; | 
|  | 61 | enum nubus_drhw { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 62 | NUBUS_DRHW_APPLE_TFB = 0x0001, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 63 | NUBUS_DRHW_APPLE_WVC = 0x0006, | 
|  | 64 | NUBUS_DRHW_SIGMA_CLRMAX = 0x0007, | 
|  | 65 | NUBUS_DRHW_APPLE_SE30 = 0x0009, | 
|  | 66 | NUBUS_DRHW_APPLE_HRVC = 0x0013, | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 67 | NUBUS_DRHW_APPLE_MVC = 0x0014, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 68 | NUBUS_DRHW_APPLE_PVC = 0x0017, | 
|  | 69 | NUBUS_DRHW_APPLE_RBV1 = 0x0018, | 
|  | 70 | NUBUS_DRHW_APPLE_MDC = 0x0019, | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 71 | NUBUS_DRHW_APPLE_VSC = 0x0020, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 72 | NUBUS_DRHW_APPLE_SONORA = 0x0022, | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 73 | NUBUS_DRHW_APPLE_JET = 0x0029, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 74 | NUBUS_DRHW_APPLE_24AC = 0x002b, | 
|  | 75 | NUBUS_DRHW_APPLE_VALKYRIE = 0x002e, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 76 | NUBUS_DRHW_SMAC_GFX = 0x0105, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 77 | NUBUS_DRHW_RASTER_CB264 = 0x013B, | 
|  | 78 | NUBUS_DRHW_MICRON_XCEED = 0x0146, | 
|  | 79 | NUBUS_DRHW_RDIUS_GSC = 0x0153, | 
|  | 80 | NUBUS_DRHW_SMAC_SPEC8 = 0x017B, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 81 | NUBUS_DRHW_SMAC_SPEC24 = 0x017C, | 
|  | 82 | NUBUS_DRHW_RASTER_CB364 = 0x026F, | 
|  | 83 | NUBUS_DRHW_RDIUS_DCGX = 0x027C, | 
|  | 84 | NUBUS_DRHW_RDIUS_PC8 = 0x0291, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 85 | NUBUS_DRHW_LAPIS_PCS8 = 0x0292, | 
|  | 86 | NUBUS_DRHW_RASTER_24XLI = 0x02A0, | 
|  | 87 | NUBUS_DRHW_RASTER_PBPGT = 0x02A5, | 
|  | 88 | NUBUS_DRHW_EMACH_FSX = 0x02AE, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 89 | NUBUS_DRHW_RASTER_24XLTV = 0x02B7, | 
|  | 90 | NUBUS_DRHW_SMAC_THUND24 = 0x02CB, | 
|  | 91 | NUBUS_DRHW_SMAC_THUNDLGHT = 0x03D9, | 
|  | 92 | NUBUS_DRHW_RDIUS_PC24XP = 0x0406, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 93 | NUBUS_DRHW_RDIUS_PC24X = 0x040A, | 
|  | 94 | NUBUS_DRHW_RDIUS_PC8XJ = 0x040B, | 
|  | 95 | NUBUS_DRHW_INTERLAN = 0x0100, | 
|  | 96 | NUBUS_DRHW_SMC9194 = 0x0101, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 97 | NUBUS_DRHW_KINETICS = 0x0106, | 
|  | 98 | NUBUS_DRHW_CABLETRON = 0x0109, | 
|  | 99 | NUBUS_DRHW_ASANTE_LC = 0x010f, | 
|  | 100 | NUBUS_DRHW_SONIC = 0x0110, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 101 | NUBUS_DRHW_TECHWORKS = 0x0112, | 
|  | 102 | NUBUS_DRHW_APPLE_SONIC_NB = 0x0118, | 
|  | 103 | NUBUS_DRHW_APPLE_SONIC_LC = 0x0119, | 
|  | 104 | NUBUS_DRHW_FOCUS = 0x011c, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 105 | NUBUS_DRHW_SONNET = 0x011d, | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 106 | }; | 
|  | 107 | enum nubus_res_id { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 108 | NUBUS_RESID_TYPE = 0x0001, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 109 | NUBUS_RESID_NAME = 0x0002, | 
|  | 110 | NUBUS_RESID_ICON = 0x0003, | 
|  | 111 | NUBUS_RESID_DRVRDIR = 0x0004, | 
|  | 112 | NUBUS_RESID_LOADREC = 0x0005, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 113 | NUBUS_RESID_BOOTREC = 0x0006, | 
|  | 114 | NUBUS_RESID_FLAGS = 0x0007, | 
|  | 115 | NUBUS_RESID_HWDEVID = 0x0008, | 
|  | 116 | NUBUS_RESID_MINOR_BASEOS = 0x000a, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 117 | NUBUS_RESID_MINOR_LENGTH = 0x000b, | 
|  | 118 | NUBUS_RESID_MAJOR_BASEOS = 0x000c, | 
|  | 119 | NUBUS_RESID_MAJOR_LENGTH = 0x000d, | 
|  | 120 | NUBUS_RESID_CICN = 0x000f, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 121 | NUBUS_RESID_ICL8 = 0x0010, | 
|  | 122 | NUBUS_RESID_ICL4 = 0x0011, | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 123 | }; | 
|  | 124 | enum nubus_board_res_id { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 125 | NUBUS_RESID_BOARDID = 0x0020, | 
|  | 126 | NUBUS_RESID_PRAMINITDATA = 0x0021, | 
|  | 127 | NUBUS_RESID_PRIMARYINIT = 0x0022, | 
|  | 128 | NUBUS_RESID_TIMEOUTCONST = 0x0023, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 129 | NUBUS_RESID_VENDORINFO = 0x0024, | 
|  | 130 | NUBUS_RESID_BOARDFLAGS = 0x0025, | 
|  | 131 | NUBUS_RESID_SECONDINIT = 0x0026, | 
|  | 132 | NUBUS_RESID_VIDNAMES = 0x0041, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 133 | NUBUS_RESID_VIDMODES = 0x007e | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 134 | }; | 
|  | 135 | enum nubus_vendor_res_id { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 136 | NUBUS_RESID_VEND_ID = 0x0001, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 137 | NUBUS_RESID_VEND_SERIAL = 0x0002, | 
|  | 138 | NUBUS_RESID_VEND_REV = 0x0003, | 
|  | 139 | NUBUS_RESID_VEND_PART = 0x0004, | 
|  | 140 | NUBUS_RESID_VEND_DATE = 0x0005 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 141 | }; | 
|  | 142 | enum nubus_net_res_id { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 143 | NUBUS_RESID_MAC_ADDRESS = 0x0080 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 144 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 145 | enum nubus_cpu_res_id { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 146 | NUBUS_RESID_MEMINFO = 0x0081, | 
|  | 147 | NUBUS_RESID_ROMINFO = 0x0082 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 148 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 149 | enum nubus_display_res_id { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 150 | NUBUS_RESID_GAMMADIR = 0x0040, | 
|  | 151 | NUBUS_RESID_FIRSTMODE = 0x0080, | 
|  | 152 | NUBUS_RESID_SECONDMODE = 0x0081, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 153 | NUBUS_RESID_THIRDMODE = 0x0082, | 
|  | 154 | NUBUS_RESID_FOURTHMODE = 0x0083, | 
|  | 155 | NUBUS_RESID_FIFTHMODE = 0x0084, | 
|  | 156 | NUBUS_RESID_SIXTHMODE = 0x0085 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 157 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 158 | #endif |