Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: nubus.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
nubus.h: various definitions and prototypes for NuBus drivers to use.
[2] Fix | Delete
[3] Fix | Delete
Originally written by Alan Cox.
[4] Fix | Delete
[5] Fix | Delete
Hacked to death by C. Scott Ananian and David Huggins-Daines.
[6] Fix | Delete
[7] Fix | Delete
Some of the constants in here are from the corresponding
[8] Fix | Delete
NetBSD/OpenBSD header file, by Allen Briggs. We figured out the
[9] Fix | Delete
rest of them on our own. */
[10] Fix | Delete
[11] Fix | Delete
#ifndef LINUX_NUBUS_H
[12] Fix | Delete
#define LINUX_NUBUS_H
[13] Fix | Delete
[14] Fix | Delete
#include <linux/types.h>
[15] Fix | Delete
[16] Fix | Delete
enum nubus_category {
[17] Fix | Delete
NUBUS_CAT_BOARD = 0x0001,
[18] Fix | Delete
NUBUS_CAT_DISPLAY = 0x0003,
[19] Fix | Delete
NUBUS_CAT_NETWORK = 0x0004,
[20] Fix | Delete
NUBUS_CAT_COMMUNICATIONS = 0x0006,
[21] Fix | Delete
NUBUS_CAT_FONT = 0x0009,
[22] Fix | Delete
NUBUS_CAT_CPU = 0x000A,
[23] Fix | Delete
/* For lack of a better name */
[24] Fix | Delete
NUBUS_CAT_DUODOCK = 0x0020
[25] Fix | Delete
};
[26] Fix | Delete
[27] Fix | Delete
enum nubus_type_network {
[28] Fix | Delete
NUBUS_TYPE_ETHERNET = 0x0001,
[29] Fix | Delete
NUBUS_TYPE_RS232 = 0x0002
[30] Fix | Delete
};
[31] Fix | Delete
[32] Fix | Delete
enum nubus_type_display {
[33] Fix | Delete
NUBUS_TYPE_VIDEO = 0x0001
[34] Fix | Delete
};
[35] Fix | Delete
[36] Fix | Delete
enum nubus_type_cpu {
[37] Fix | Delete
NUBUS_TYPE_68020 = 0x0003,
[38] Fix | Delete
NUBUS_TYPE_68030 = 0x0004,
[39] Fix | Delete
NUBUS_TYPE_68040 = 0x0005
[40] Fix | Delete
};
[41] Fix | Delete
[42] Fix | Delete
/* Known <Cat,Type,SW,HW> tuples: (according to TattleTech and Slots)
[43] Fix | Delete
* 68030 motherboards: <10,4,0,24>
[44] Fix | Delete
* 68040 motherboards: <10,5,0,24>
[45] Fix | Delete
* DuoDock Plus: <32,1,1,2>
[46] Fix | Delete
*
[47] Fix | Delete
* Toby Frame Buffer card: <3,1,1,1>
[48] Fix | Delete
* RBV built-in video (IIci): <3,1,1,24>
[49] Fix | Delete
* Valkyrie built-in video (Q630): <3,1,1,46>
[50] Fix | Delete
* Macintosh Display Card: <3,1,1,25>
[51] Fix | Delete
* Sonora built-in video (P460): <3,1,1,34>
[52] Fix | Delete
* Jet framebuffer (DuoDock Plus): <3,1,1,41>
[53] Fix | Delete
*
[54] Fix | Delete
* SONIC comm-slot/on-board and DuoDock Ethernet: <4,1,1,272>
[55] Fix | Delete
* SONIC LC-PDS Ethernet (Dayna, but like Apple 16-bit, sort of): <4,1,1,271>
[56] Fix | Delete
* Apple SONIC LC-PDS Ethernet ("Apple Ethernet LC Twisted-Pair Card"): <4,1,0,281>
[57] Fix | Delete
* Sonic Systems Ethernet A-Series Card: <4,1,268,256>
[58] Fix | Delete
* Asante MacCon NuBus-A: <4,1,260,256> (alpha-1.0,1.1 revision)
[59] Fix | Delete
* ROM on the above card: <2,1,0,0>
[60] Fix | Delete
* Cabletron ethernet card: <4,1,1,265>
[61] Fix | Delete
* Farallon ethernet card: <4,1,268,256> (identical to Sonic Systems card)
[62] Fix | Delete
* Kinetics EtherPort IIN: <4,1,259,262>
[63] Fix | Delete
* API Engineering EtherRun_LCa PDS enet card: <4,1,282,256>
[64] Fix | Delete
*
[65] Fix | Delete
* Add your devices to the list! You can obtain the "Slots" utility
[66] Fix | Delete
* from Apple's FTP site at:
[67] Fix | Delete
* ftp://dev.apple.com/devworld/Tool_Chest/Devices_-_Hardware/NuBus_Slot_Manager/
[68] Fix | Delete
*
[69] Fix | Delete
* Alternately, TattleTech can be found at any Info-Mac mirror site.
[70] Fix | Delete
* or from its distribution site: ftp://ftp.decismkr.com/dms
[71] Fix | Delete
*/
[72] Fix | Delete
[73] Fix | Delete
/* DrSW: Uniquely identifies the software interface to a board. This
[74] Fix | Delete
is usually the one you want to look at when writing a driver. It's
[75] Fix | Delete
not as useful as you think, though, because as we should know by
[76] Fix | Delete
now (duh), "Apple Compatible" can mean a lot of things... */
[77] Fix | Delete
[78] Fix | Delete
/* Add known DrSW values here */
[79] Fix | Delete
enum nubus_drsw {
[80] Fix | Delete
/* NUBUS_CAT_DISPLAY */
[81] Fix | Delete
NUBUS_DRSW_APPLE = 0x0001,
[82] Fix | Delete
NUBUS_DRSW_APPLE_HIRES = 0x0013, /* MacII HiRes card driver */
[83] Fix | Delete
[84] Fix | Delete
/* NUBUS_CAT_NETWORK */
[85] Fix | Delete
NUBUS_DRSW_3COM = 0x0000,
[86] Fix | Delete
NUBUS_DRSW_CABLETRON = 0x0001,
[87] Fix | Delete
NUBUS_DRSW_SONIC_LC = 0x0001,
[88] Fix | Delete
NUBUS_DRSW_KINETICS = 0x0103,
[89] Fix | Delete
NUBUS_DRSW_ASANTE = 0x0104,
[90] Fix | Delete
NUBUS_DRSW_TECHWORKS = 0x0109,
[91] Fix | Delete
NUBUS_DRSW_DAYNA = 0x010b,
[92] Fix | Delete
NUBUS_DRSW_FARALLON = 0x010c,
[93] Fix | Delete
NUBUS_DRSW_APPLE_SN = 0x010f,
[94] Fix | Delete
NUBUS_DRSW_DAYNA2 = 0x0115,
[95] Fix | Delete
NUBUS_DRSW_FOCUS = 0x011a,
[96] Fix | Delete
NUBUS_DRSW_ASANTE_CS = 0x011d, /* use asante SMC9194 driver */
[97] Fix | Delete
NUBUS_DRSW_DAYNA_LC = 0x011e,
[98] Fix | Delete
[99] Fix | Delete
/* NUBUS_CAT_CPU */
[100] Fix | Delete
NUBUS_DRSW_NONE = 0x0000,
[101] Fix | Delete
};
[102] Fix | Delete
[103] Fix | Delete
/* DrHW: Uniquely identifies the hardware interface to a board (or at
[104] Fix | Delete
least, it should... some video cards are known to incorrectly
[105] Fix | Delete
identify themselves as Toby cards) */
[106] Fix | Delete
[107] Fix | Delete
/* Add known DrHW values here */
[108] Fix | Delete
enum nubus_drhw {
[109] Fix | Delete
/* NUBUS_CAT_DISPLAY */
[110] Fix | Delete
NUBUS_DRHW_APPLE_TFB = 0x0001, /* Toby frame buffer card */
[111] Fix | Delete
NUBUS_DRHW_APPLE_WVC = 0x0006, /* Apple Workstation Video Card */
[112] Fix | Delete
NUBUS_DRHW_SIGMA_CLRMAX = 0x0007, /* Sigma Design ColorMax */
[113] Fix | Delete
NUBUS_DRHW_APPLE_SE30 = 0x0009, /* Apple SE/30 video */
[114] Fix | Delete
NUBUS_DRHW_APPLE_HRVC = 0x0013, /* Mac II High-Res Video Card */
[115] Fix | Delete
NUBUS_DRHW_APPLE_MVC = 0x0014, /* Mac II Monochrome Video Card */
[116] Fix | Delete
NUBUS_DRHW_APPLE_PVC = 0x0017, /* Mac II Portrait Video Card */
[117] Fix | Delete
NUBUS_DRHW_APPLE_RBV1 = 0x0018, /* IIci RBV video */
[118] Fix | Delete
NUBUS_DRHW_APPLE_MDC = 0x0019, /* Macintosh Display Card */
[119] Fix | Delete
NUBUS_DRHW_APPLE_VSC = 0x0020, /* Duo MiniDock ViSC framebuffer */
[120] Fix | Delete
NUBUS_DRHW_APPLE_SONORA = 0x0022, /* Sonora built-in video */
[121] Fix | Delete
NUBUS_DRHW_APPLE_JET = 0x0029, /* Jet framebuffer (DuoDock) */
[122] Fix | Delete
NUBUS_DRHW_APPLE_24AC = 0x002b, /* Mac 24AC Video Card */
[123] Fix | Delete
NUBUS_DRHW_APPLE_VALKYRIE = 0x002e,
[124] Fix | Delete
NUBUS_DRHW_SMAC_GFX = 0x0105, /* SuperMac GFX */
[125] Fix | Delete
NUBUS_DRHW_RASTER_CB264 = 0x013B, /* RasterOps ColorBoard 264 */
[126] Fix | Delete
NUBUS_DRHW_MICRON_XCEED = 0x0146, /* Micron Exceed color */
[127] Fix | Delete
NUBUS_DRHW_RDIUS_GSC = 0x0153, /* Radius GS/C */
[128] Fix | Delete
NUBUS_DRHW_SMAC_SPEC8 = 0x017B, /* SuperMac Spectrum/8 */
[129] Fix | Delete
NUBUS_DRHW_SMAC_SPEC24 = 0x017C, /* SuperMac Spectrum/24 */
[130] Fix | Delete
NUBUS_DRHW_RASTER_CB364 = 0x026F, /* RasterOps ColorBoard 364 */
[131] Fix | Delete
NUBUS_DRHW_RDIUS_DCGX = 0x027C, /* Radius DirectColor/GX */
[132] Fix | Delete
NUBUS_DRHW_RDIUS_PC8 = 0x0291, /* Radius PrecisionColor 8 */
[133] Fix | Delete
NUBUS_DRHW_LAPIS_PCS8 = 0x0292, /* Lapis ProColorServer 8 */
[134] Fix | Delete
NUBUS_DRHW_RASTER_24XLI = 0x02A0, /* RasterOps 8/24 XLi */
[135] Fix | Delete
NUBUS_DRHW_RASTER_PBPGT = 0x02A5, /* RasterOps PaintBoard Prism GT */
[136] Fix | Delete
NUBUS_DRHW_EMACH_FSX = 0x02AE, /* E-Machines Futura SX */
[137] Fix | Delete
NUBUS_DRHW_RASTER_24XLTV = 0x02B7, /* RasterOps 24XLTV */
[138] Fix | Delete
NUBUS_DRHW_SMAC_THUND24 = 0x02CB, /* SuperMac Thunder/24 */
[139] Fix | Delete
NUBUS_DRHW_SMAC_THUNDLGHT = 0x03D9, /* SuperMac ThunderLight */
[140] Fix | Delete
NUBUS_DRHW_RDIUS_PC24XP = 0x0406, /* Radius PrecisionColor 24Xp */
[141] Fix | Delete
NUBUS_DRHW_RDIUS_PC24X = 0x040A, /* Radius PrecisionColor 24X */
[142] Fix | Delete
NUBUS_DRHW_RDIUS_PC8XJ = 0x040B, /* Radius PrecisionColor 8XJ */
[143] Fix | Delete
[144] Fix | Delete
/* NUBUS_CAT_NETWORK */
[145] Fix | Delete
NUBUS_DRHW_INTERLAN = 0x0100,
[146] Fix | Delete
NUBUS_DRHW_SMC9194 = 0x0101,
[147] Fix | Delete
NUBUS_DRHW_KINETICS = 0x0106,
[148] Fix | Delete
NUBUS_DRHW_CABLETRON = 0x0109,
[149] Fix | Delete
NUBUS_DRHW_ASANTE_LC = 0x010f,
[150] Fix | Delete
NUBUS_DRHW_SONIC = 0x0110,
[151] Fix | Delete
NUBUS_DRHW_TECHWORKS = 0x0112,
[152] Fix | Delete
NUBUS_DRHW_APPLE_SONIC_NB = 0x0118,
[153] Fix | Delete
NUBUS_DRHW_APPLE_SONIC_LC = 0x0119,
[154] Fix | Delete
NUBUS_DRHW_FOCUS = 0x011c,
[155] Fix | Delete
NUBUS_DRHW_SONNET = 0x011d,
[156] Fix | Delete
};
[157] Fix | Delete
[158] Fix | Delete
/* Resource IDs: These are the identifiers for the various weird and
[159] Fix | Delete
wonderful tidbits of information that may or may not reside in the
[160] Fix | Delete
NuBus ROM directory. */
[161] Fix | Delete
enum nubus_res_id {
[162] Fix | Delete
NUBUS_RESID_TYPE = 0x0001,
[163] Fix | Delete
NUBUS_RESID_NAME = 0x0002,
[164] Fix | Delete
NUBUS_RESID_ICON = 0x0003,
[165] Fix | Delete
NUBUS_RESID_DRVRDIR = 0x0004,
[166] Fix | Delete
NUBUS_RESID_LOADREC = 0x0005,
[167] Fix | Delete
NUBUS_RESID_BOOTREC = 0x0006,
[168] Fix | Delete
NUBUS_RESID_FLAGS = 0x0007,
[169] Fix | Delete
NUBUS_RESID_HWDEVID = 0x0008,
[170] Fix | Delete
NUBUS_RESID_MINOR_BASEOS = 0x000a,
[171] Fix | Delete
NUBUS_RESID_MINOR_LENGTH = 0x000b,
[172] Fix | Delete
NUBUS_RESID_MAJOR_BASEOS = 0x000c,
[173] Fix | Delete
NUBUS_RESID_MAJOR_LENGTH = 0x000d,
[174] Fix | Delete
NUBUS_RESID_CICN = 0x000f,
[175] Fix | Delete
NUBUS_RESID_ICL8 = 0x0010,
[176] Fix | Delete
NUBUS_RESID_ICL4 = 0x0011,
[177] Fix | Delete
};
[178] Fix | Delete
[179] Fix | Delete
/* Category-specific resources. */
[180] Fix | Delete
enum nubus_board_res_id {
[181] Fix | Delete
NUBUS_RESID_BOARDID = 0x0020,
[182] Fix | Delete
NUBUS_RESID_PRAMINITDATA = 0x0021,
[183] Fix | Delete
NUBUS_RESID_PRIMARYINIT = 0x0022,
[184] Fix | Delete
NUBUS_RESID_TIMEOUTCONST = 0x0023,
[185] Fix | Delete
NUBUS_RESID_VENDORINFO = 0x0024,
[186] Fix | Delete
NUBUS_RESID_BOARDFLAGS = 0x0025,
[187] Fix | Delete
NUBUS_RESID_SECONDINIT = 0x0026,
[188] Fix | Delete
[189] Fix | Delete
/* Not sure why Apple put these next two in here */
[190] Fix | Delete
NUBUS_RESID_VIDNAMES = 0x0041,
[191] Fix | Delete
NUBUS_RESID_VIDMODES = 0x007e
[192] Fix | Delete
};
[193] Fix | Delete
[194] Fix | Delete
/* Fields within the vendor info directory */
[195] Fix | Delete
enum nubus_vendor_res_id {
[196] Fix | Delete
NUBUS_RESID_VEND_ID = 0x0001,
[197] Fix | Delete
NUBUS_RESID_VEND_SERIAL = 0x0002,
[198] Fix | Delete
NUBUS_RESID_VEND_REV = 0x0003,
[199] Fix | Delete
NUBUS_RESID_VEND_PART = 0x0004,
[200] Fix | Delete
NUBUS_RESID_VEND_DATE = 0x0005
[201] Fix | Delete
};
[202] Fix | Delete
[203] Fix | Delete
enum nubus_net_res_id {
[204] Fix | Delete
NUBUS_RESID_MAC_ADDRESS = 0x0080
[205] Fix | Delete
};
[206] Fix | Delete
[207] Fix | Delete
enum nubus_cpu_res_id {
[208] Fix | Delete
NUBUS_RESID_MEMINFO = 0x0081,
[209] Fix | Delete
NUBUS_RESID_ROMINFO = 0x0082
[210] Fix | Delete
};
[211] Fix | Delete
[212] Fix | Delete
enum nubus_display_res_id {
[213] Fix | Delete
NUBUS_RESID_GAMMADIR = 0x0040,
[214] Fix | Delete
NUBUS_RESID_FIRSTMODE = 0x0080,
[215] Fix | Delete
NUBUS_RESID_SECONDMODE = 0x0081,
[216] Fix | Delete
NUBUS_RESID_THIRDMODE = 0x0082,
[217] Fix | Delete
NUBUS_RESID_FOURTHMODE = 0x0083,
[218] Fix | Delete
NUBUS_RESID_FIFTHMODE = 0x0084,
[219] Fix | Delete
NUBUS_RESID_SIXTHMODE = 0x0085
[220] Fix | Delete
};
[221] Fix | Delete
[222] Fix | Delete
#endif /* LINUX_NUBUS_H */
[223] Fix | Delete
[224] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function