18 #ifndef BLOCK_NUMBERS_H
19 #define BLOCK_NUMBERS_H
21 #include <kernel_types.h>
22 #include <RefConvert.hpp>
25 #define MIN_API_BLOCK_NO 0x8000
28 #define API_PACKED 0x07ff
31 #define NO_API_FIXED_BLOCKS 2
34 #define API_CLUSTERMGR 0x0FA2
35 #define MGM_CONFIG_MAN 0x0FA3
37 #define MIN_API_FIXED_BLOCK_NO (API_CLUSTERMGR)
38 #define MAX_API_FIXED_BLOCK_NO (MIN_API_FIXED_BLOCK_NO + NO_API_FIXED_BLOCKS)
64 const BlockReference BACKUP_REF = numberToRef(BACKUP, 0);
65 const BlockReference DBTC_REF = numberToRef(DBTC, 0);
66 const BlockReference DBDIH_REF = numberToRef(DBDIH, 0);
67 const BlockReference DBLQH_REF = numberToRef(DBLQH, 0);
68 const BlockReference DBACC_REF = numberToRef(DBACC, 0);
69 const BlockReference DBTUP_REF = numberToRef(DBTUP, 0);
70 const BlockReference DBDICT_REF = numberToRef(DBDICT, 0);
71 const BlockReference NDBCNTR_REF = numberToRef(NDBCNTR, 0);
72 const BlockReference QMGR_REF = numberToRef(QMGR, 0);
73 const BlockReference NDBFS_REF = numberToRef(NDBFS, 0);
74 const BlockReference CMVMI_REF = numberToRef(CMVMI, 0);
75 const BlockReference TRIX_REF = numberToRef(TRIX, 0);
76 const BlockReference DBUTIL_REF = numberToRef(DBUTIL, 0);
77 const BlockReference SUMA_REF = numberToRef(SUMA, 0);
78 const BlockReference DBTUX_REF = numberToRef(DBTUX, 0);
79 const BlockReference TSMAN_REF = numberToRef(TSMAN, 0);
80 const BlockReference LGMAN_REF = numberToRef(LGMAN, 0);
81 const BlockReference PGMAN_REF = numberToRef(PGMAN, 0);
82 const BlockReference RESTORE_REF = numberToRef(RESTORE, 0);
83 const BlockReference DBINFO_REF = numberToRef(DBINFO, 0);
84 const BlockReference DBSPJ_REF = numberToRef(DBSPJ, 0);
86 static inline void __hide_warnings_unused_ref_vars(
void) {
88 (void)BACKUP_REF; (void)DBTC_REF; (void)DBDIH_REF;
89 (void)DBLQH_REF; (void)DBACC_REF; (void)DBTUP_REF;
90 (void)DBDICT_REF; (void)NDBCNTR_REF; (void)QMGR_REF;
91 (void)NDBFS_REF; (void)CMVMI_REF; (void)TRIX_REF;
92 (void)DBUTIL_REF; (void)SUMA_REF; (void)DBTUX_REF;
93 (void)TSMAN_REF; (void)LGMAN_REF; (void)PGMAN_REF;
94 (void)RESTORE_REF; (void)DBINFO_REF; (void)DBSPJ_REF;
97 const BlockNumber MIN_BLOCK_NO = BACKUP;
98 const BlockNumber MAX_BLOCK_NO = DBSPJ;
99 const BlockNumber NO_OF_BLOCKS = (MAX_BLOCK_NO - MIN_BLOCK_NO + 1);
110 extern const BlockNumber NO_OF_BLOCK_NAMES;