/********************************************************************************************************************************/ /* Created: 15-MAR-2001 23:37:56 by OpenVMS SDL EV1-33 */ /* Source: 15-MAR-2001 23:34:06 _$11$DUA933:[BUILD.SDL]STARDEFAE.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $DVIDEF ***/ #ifndef __DVIDEF_LOADED #define __DVIDEF_LOADED 1 #pragma nostandard #ifdef __cplusplus extern "C" { #define __unknown_params ... #else #define __unknown_params #endif #if !defined(__VAXC) && !defined(VAXC) #define __struct struct #define __union union #else #define __struct variant_struct #define __union variant_union #endif /*+ */ /* */ /* Get Device and Volume Information Data Identifier Definitions */ /* */ /* **** NOTE **** */ /* */ /* New items must always be added at the END of the list so that */ /* users will not have to rebuild. */ /* */ /* For RESERVED items (ie. symbols that are used on Alpha and */ /* are not used on VAX, requiring "placeholders") */ /* Insert the same code (in the same order) as on Alpha in this */ /* file. Then edit [VMSLIB]DVITABLE.MAR to include the symbol: */ /* DVI_ITEM_CODE - */ /* , T */ /* note: only a "T" is used as the second qualifier (after the symbol name) */ /* Then edit [SYS]SYSGETDVI.MAR to include the label: */ /* SPC_: */ /* below the other labels for the single */ /* BRW EXE$DVI_RETURN_ZERO ; Continue in $GETDVI. */ /* instruction. Search for the "Generic return zero" comment. */ /* */ /*- */ #define DVI$_DEVCHAR 2 /* Device characteristics - VALUE - 4 bytes */ #define DVI$_DEVCLASS 4 /* Device class - VALUE - 1 byte */ #define DVI$_DEVTYPE 6 /* Device type - VALUE - 1 byte */ #define DVI$_DEVBUFSIZ 8 /* Device buffer size - VALUE - 2 bytes */ #define DVI$_DEVDEPEND 10 /* Device dependent information - VALUE - 4 bytes */ #define DVI$_UNIT 12 /* Unit number - VALUE - 2 bytes */ #define DVI$_PID 14 /* Process identification of device owner - VALUE - 4 bytes */ #define DVI$_OWNUIC 16 /* UIC of device owner - VALUE - 4 bytes */ #define DVI$_VPROT 18 /* Volume protection mask - VALUE - 2 bytes */ #define DVI$_ERRCNT 20 /* Error count - VALUE - 2 bytes */ #define DVI$_OPCNT 22 /* Operation count - VALUE - 4 bytes */ #define DVI$_RECSIZ 24 /* Blocked record size - VALUE - 2 bytes */ #define DVI$_MAXBLOCK 26 /* Number of logical blocks on the volume (disk) - VALUE - 4 bytes */ #define DVI$_DEVDEPEND2 28 /* Additional device dependent data - VALUE - 4 bytes */ #define DVI$_REFCNT 30 /* Reference count of processes - VALUE - 2 bytes */ #define DVI$_DEVNAM 32 /* Device name - STRING - 64 bytes */ #define DVI$_VOLNAM 34 /* Volume name - STRING - 12 bytes */ #define DVI$_SECTORS 36 /* Number of sectors per track (disk) - VALUE - 1 byte */ #define DVI$_TRACKS 38 /* Number of tracks per cylinder (disk) - VALUE - 1 byte */ #define DVI$_CYLINDERS 40 /* Number of cylinders on the volume (disk) - VALUE - 2 bytes */ #define DVI$_FREEBLOCKS 42 /* Number of free blocks on the volume (disk) - VALUE - 4 bytes */ #define DVI$_LOGVOLNAM 44 /* Logical volume name - STRING - 64 bytes */ #define DVI$_VOLNUMBER 46 /* Number of this volume in volume set (disk) - VALUE - 4 byte */ #define DVI$_VOLCOUNT 48 /* Count of volumes in volume set (disk) - VALUE - 4 byte */ #define DVI$_ROOTDEVNAM 50 /* Device name of root volume in volume set (disk) - STRING - 64 bytes */ #define DVI$_NEXTDEVNAM 52 /* Device name of next volume in volume set (disk) - STRING - 64 bytes */ #define DVI$_TRANSCNT 54 /* Volume Transaction Count - VALUE - 2 bytes */ #define DVI$_MOUNTCNT 56 /* Mount count - VALUE - 2 bytes */ #define DVI$_CLUSTER 58 /* Volume Cluster Size (disk) - VALUE - 2 bytes */ #define DVI$_MAXFILES 60 /* Maximum Files on Volume (disk) - VALUE - 4 bytes */ #define DVI$_SERIALNUM 62 /* Volume Serial Number (disk) - VALUE - 4 bytes */ #define DVI$_ACPPID 64 /* ACP Process ID - VALUE - 4 bytes */ #define DVI$_ACPTYPE 66 /* ACP type code - VALUE - 1 byte */ #define DVI$_CONCEALED 68 /* Device is a concealed device - BOOLEAN - 1 byte */ /* */ /** THE FOLLOWING CODES ARE THE INDIVIDUAL BITS OF THE DEVCHAR LONGWORD */ /* */ #define DVI$_REC 70 /* DEVICE RECORD ORIENTED */ #define DVI$_CCL 72 /* CARRIAGE CONTROL DEVICE */ #define DVI$_TRM 74 /* DEVICE IS A TERMINAL */ #define DVI$_DIR 76 /* DEVICE IS DIRECTORY STRUCTURED */ #define DVI$_SDI 78 /* DEVICE IS SINGLE DIRECTORY STRUCTURED */ #define DVI$_SQD 80 /* SEQUENTIAL BLOCK-ORIENTED DEVICE (I.E., MAGTAPE) */ #define DVI$_SPL 82 /* DEVICE BEING SPOOLED */ #define DVI$_OPR 84 /* DEVICE IS AN OPERATOR */ #define DVI$_RCT 86 /* DISK CONTAINS RCT (DEC STANDARD 166 DISK) */ #define DVI$_NET 88 /* NETWORK DEVICE */ #define DVI$_FOD 90 /* FILES-ORIENTED DEVICE (I.E., DISK AND MT) */ #define DVI$_DUA 92 /* DEVICE IS DUAL PORTED */ #define DVI$_SHR 94 /* DEVICE SHAREABLE */ #define DVI$_GEN 96 /* DEVICE IS A GENERIC DEVICE */ #define DVI$_AVL 98 /* DEVICE AVAILABLE FOR USE */ #define DVI$_MNT 100 /* DEVICE IS MOUNTED */ #define DVI$_MBX 102 /* DEVICE IS A MAILBOX */ #define DVI$_DMT 104 /* DEVICE MARKED FOR DISMOUNT */ #define DVI$_ELG 106 /* DEVICE HAS ERROR LOGGING ENABLED */ #define DVI$_ALL 108 /* DEVICE IS ALLOCATED */ #define DVI$_FOR 110 /* DEVICE IS MOUNTED FOREIGN (I.E., NON-FILE STRUCTURED) */ #define DVI$_SWL 112 /* DEVICE IS SOFTWARE WRITE LOCKED */ #define DVI$_IDV 114 /* DEVICE CAPABLE OF PROVIDING INPUT */ #define DVI$_ODV 116 /* DEVICE CAPABLE OF PROVIDING OUTPUT */ #define DVI$_RND 118 /* DEVICE ALLOWS RANDOM ACCESS */ #define DVI$_RTM 120 /* DEVICE IS REALTIME IN NATURE */ #define DVI$_RCK 122 /* DEVICE HAS READ CHECKING ENABLED */ #define DVI$_WCK 124 /* DEVICE HAS WRITE CHECKING ENABLED */ /* */ /** THE FOLLOWING CODES ARE THE INDIVIDUAL BITS OF THE DEVDEPEND LONGWORD */ /** (AS DEFINED FOR TERMINALS: TTDEF IN STARDEFQZ.SDL) */ /* */ #define DVI$_TT_PASSALL 126 #define DVI$_TT_NOECHO 128 #define DVI$_TT_NOTYPEAHD 130 #define DVI$_TT_ESCAPE 132 #define DVI$_TT_HOSTSYNC 134 #define DVI$_TT_TTSYNC 136 #define DVI$_TT_SCRIPT 138 #define DVI$_TT_LOWER 140 #define DVI$_TT_MECHTAB 142 #define DVI$_TT_WRAP 144 #define DVI$_TT_CRFILL 146 #define DVI$_TT_LFFILL 148 #define DVI$_TT_SCOPE 150 #define DVI$_TT_REMOTE 152 #define DVI$_TT_EIGHTBIT 154 #define DVI$_TT_MBXDSABL 156 #define DVI$_TT_NOBRDCST 158 #define DVI$_TT_READSYNC 160 #define DVI$_TT_MECHFORM 162 #define DVI$_TT_HALFDUP 164 #define DVI$_TT_MODEM 166 #define DVI$_TT_OPER 168 #define DVI$_TT_PAGE 170 /* */ /** THE FOLLOWING CODES ARE THE INDIVIDUAL BITS OF THE DEVDEPEND2 LONGWORD */ /** (AS DEFINED FOR TERMINALS: TT2DEF IN STARDEFQZ.SDL) */ /* */ #define DVI$_TT_LOCALECHO 172 #define DVI$_TT_AUTOBAUD 174 #define DVI$_TT_HANGUP 176 #define DVI$_TT_MODHANGUP 178 #define DVI$_TT_BRDCSTMBX 180 #define DVI$_TT_DMA 182 #define DVI$_TT_ALTYPEAHD 184 #define DVI$_TT_SETSPEED 186 #define DVI$_TT_DCL_MAILBX 188 /* TEMP DEFINITIONS FOR DCL SPAWN */ #define DVI$_TT_EDITING 190 #define DVI$_TT_INSERT 192 #define DVI$_TT_FALLBACK 194 #define DVI$_TT_DIALUP 196 #define DVI$_TT_SECURE 198 #define DVI$_TT_DISCONNECT 200 #define DVI$_TT_PASTHRU 202 #define DVI$_TT_SIXEL 204 #define DVI$_TT_DRCS 206 #define DVI$_TT_PRINTER 208 #define DVI$_TT_APP_KEYPAD 210 #define DVI$_TT_SYSPWD 212 #define DVI$_TT_ANSICRT 214 #define DVI$_TT_REGIS 216 #define DVI$_TT_BLOCK 218 #define DVI$_TT_AVO 220 #define DVI$_TT_EDIT 222 #define DVI$_TT_DECCRT 224 /* */ /** THE FOLLOWING CODES ARE REGULAR ITEMS */ /* */ #define DVI$_STS 226 /* STATUS LONGWORD */ #define DVI$_DEVSTS 228 /* DEVICE STATUS WORD */ #define DVI$_DEVCHAR2 230 /* Second device characteristics longword - VALUE - 4 bytes */ #define DVI$_FULLDEVNAM 232 /* Fully qualified device name */ #define DVI$_LOCKID 234 /* Device lock id - VALUE - 4 bytes */ #define DVI$_ALLDEVNAM 236 /* Allocation class + device name */ #define DVI$_VOLSETMEM 238 /* Volume set member */ #define DVI$_DEVLOCKNAM 240 /* Device lock name */ /* */ /** THE FOLLOWING CODES SUPPORT FEATURES OF DUAL-PATH AND SHADOW-SET DEVICES */ /* */ #define DVI$_ALLOCLASS 242 /* Allocation class of host(s) */ #define DVI$_ALT_HOST_AVAIL 244 /* Alternate host is active */ #define DVI$_ALT_HOST_NAME 246 /* Name of host serving alternate path */ #define DVI$_ALT_HOST_TYPE 248 /* Type of alternate host */ #define DVI$_HOST_AVAIL 250 /* Primary host is active */ #define DVI$_HOST_COUNT 252 /* Number of paths to the device */ #define DVI$_HOST_NAME 254 /* Name of host serving the primary path */ #define DVI$_HOST_TYPE 256 /* Type of primary host (today one of "V785", "V780", "V750" or "HS50") */ #define DVI$_REMOTE_DEVICE 258 /* Device is not connected to local node */ #define DVI$_SERVED_DEVICE 260 /* Device is served to the cluster */ #define DVI$_SHDW_CATCHUP_COPYING 262 /* Catch-up copy is in progress */ #define DVI$_SHDW_MASTER 264 /* Device is "virtual" master device for shadow set */ #define DVI$_SHDW_MASTER_NAME 266 /* Name of the "virtual" master device for a shadow set */ #define DVI$_SHDW_MEMBER 268 /* Device is one of the volumes making a shadow set */ #define DVI$_SHDW_MERGE_COPYING 270 /* Merge copy is in progress */ #define DVI$_SHDW_NEXT_MBR_NAME 272 /* Name of the next device in shadow set */ /* */ /** THE FOLLOWING CODES ARE REGULAR ITEMS */ /* */ #define DVI$_TT_PHYDEVNAM 274 /* Terminal physical device name - STRING - 64 bytes */ #define DVI$_TT_DECCRT2 276 /* DEC_CRT level 2 part of devdepend2 longword for */ /* terminals. */ #define DVI$_MEDIA_NAME 278 /* Decoded media name from UCB$L_MEDIA_ID field (ie. RK07 ) */ #define DVI$_MEDIA_TYPE 280 /* Decoded media type from UCB$L_MEDIA_ID field (ie. DM ) */ #define DVI$_MEDIA_ID 282 /* NONdecoded media id from UCB$L_MEDIA_ID */ /* */ #define DVI$_SHDW_FAILED_MEMBER 284 /* Member unit has been failed out from shadow set */ #define DVI$_MSCP_UNIT_NUMBER 286 /* MSCP unit number of device (internal hash */ /* value, not useful for customers or applications) */ #define DVI$_DISPLAY_DEVNAM 288 /* A displayable device name, useful for user */ /* displays but not for $ASSIGN */ #define DVI$_TT_ACCPORNAM 290 /* Name of local port on remote system. Counted */ /* string in remote native format, ie: LAT, X.29 */ #define DVI$_DEVDEPEND3 292 /* Device dependent longword 3 */ #define DVI$_TT_MULTISESSION 294 /* Multi-session terminal */ #define DVI$_TT_DECCRT3 296 /* VT3xx series terminal */ #define DVI$_SET_HOST_TERMINAL 298 /* SET HOST session terminal */ #define DVI$_DFS_ACCESS 300 /* DFS client access point device */ #define DVI$_DAPDEVNAM 302 /* DAP device name, used to store the remote */ /* name string of a device that is accessed via */ /* the DAP protocol (without DECnet), such as */ /* certain console disks. */ #define DVI$_TT_DECCRT4 304 /* VT4xx series terminal */ #define DVI$_TT_CHARSET 306 /* Terminal character set information */ /* */ /** The following codes are the individual bits of the TT_CHARSET longword */ /** in the terminal UCB (as defined in TTCDEF) */ /* */ #define DVI$_TT_CS_KANA 308 /* Support Kana character set */ #define DVI$_TT_CS_KANJI 310 /* Support Kanji character set */ #define DVI$_TT_CS_HANZI 312 /* Support Hanzi character set */ #define DVI$_TT_CS_HANGUL 314 /* Support Hangul character set */ #define DVI$_TT_CS_HANYU 316 /* Support Hanyu character set */ #define DVI$_TT_CS_THAI 318 /* Support Thai character set */ /* */ /** THE FOLLOWING CODES ARE REGULAR ITEMS */ /* */ #define DVI$_DEVDEPEND4 320 /* Device dependent longword 4 */ #define DVI$_DEVICE_TYPE_NAME 322 /* DDR Device type name */ #define DVI$_TT_ASIAN_MODE 324 /* Asian terminal I/O characteristics */ #define DVI$_PREFERRED_CPU 326 /* Reserved for Alpa CPU affinity of device */ #define DVI$_TT_DECCRT5 328 /* VT5xx series terminal */ #define DVI$_TT_ANSI_COLOR 330 /* Terminal supports ANSI color escape sequences */ #define DVI$_MT3_SUPPORTED 332 /* Tape UCB owned by an MTD enhanced */ /* driver? (longword) */ #define DVI$_MT3_DENSITY 334 /* Tape density. (longword) */ #define DVI$_DRIVER_IMAGE_NAME 336 /* Reserved, used only on Alpha - string */ #define DVI$_CLIENT_DEVICE 338 /* Reserved, used only on Alpha - boolean */ /* */ /**** ADD NEW ITEM-CODES IMMEDIATELY BEFORE THIS COMMENT ***** */ /* */ /* */ /* Define flag bits in the item code. */ /* */ #define DVI$M_SECONDARY 0x1 #define DVI$M_NOREDIRECT 0x8000 struct dvidef { unsigned dvi$v_secondary : 1; /* Use secondary device characteristics */ unsigned dvi$v_item_code : 14; /* Space for item code */ /* Define additional flags here, subtracting the space out of the */ /* above item code. (The item code must contain all the unused bits */ /* for proper validation in the service.) */ unsigned dvi$v_noredirect : 1; /* Don't redirect to virtual terminal */ } ; /* */ /* Constant form of name for past compatibility. */ /* */ #define DVI$C_SECONDARY 1 /* */ /* The following ACP type codes are formally defined in $AQBDEF */ /* These synonyms are available to user programs and they are */ /* guaranteed to be consistent by ASSUME's in SYSGETDEV. Additions */ /* to the ACP type codes in $AQBDEF should be reflected here and */ /* in the ASSUMES in SYSGETDEV. */ /* */ #define DVI$C_ACP_F11V1 1 /* FILES-11 STRUCTURE LEVEL 1 */ #define DVI$C_ACP_F11V2 2 /* FILES-11 STRUCTURE LEVEL 2 */ #define DVI$C_ACP_MTA 3 /* MAGTAPE */ #define DVI$C_ACP_NET 4 /* NETWORKS */ #define DVI$C_ACP_REM 5 /* REMOTE I/O */ #define DVI$C_ACP_HBS 6 /* HOST BASED SHADOWING */ #define DVI$C_ACP_F11V3 7 /* Files-11 presentation of ISO 9660 */ #define DVI$C_ACP_F11V4 8 /* Files-11 presentation of High Sierra */ #define DVI$C_ACP_F64 9 /* Dollar ACP type */ #define DVI$C_ACP_UCX 10 /* ACP for TCP/IP Services for OpenVMS */ #define DVI$C_ACP_F11V5 11 /* FILES-11 STRUCTURE LEVEL 5 */ #ifdef __cplusplus } #endif #pragma standard #endif /* __DVIDEF_LOADED */