Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
octeon-model.h File Reference
#include <asm/octeon/octeon-feature.h>

Go to the source code of this file.

Macros

#define OCTEON_FAMILY_MASK   0x00ffff00
 
#define OM_IGNORE_REVISION   0x01000000
 
#define OM_CHECK_SUBMODEL   0x02000000
 
#define OM_MATCH_PREVIOUS_MODELS   0x04000000
 
#define OM_IGNORE_MINOR_REVISION   0x08000000
 
#define OM_FLAG_MASK   0xff000000
 
#define OM_MATCH_5XXX_FAMILY_MODELS   0x20000000
 
#define OM_MATCH_6XXX_FAMILY_MODELS   0x40000000
 
#define OM_MATCH_F7XXX_FAMILY_MODELS   0x80000000
 
#define OCTEON_CNF71XX_PASS1_0   0x000d9400
 
#define OCTEON_CNF71XX   (OCTEON_CNF71XX_PASS1_0 | OM_IGNORE_REVISION)
 
#define OCTEON_CNF71XX_PASS1_X   (OCTEON_CNF71XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN68XX_PASS1_0   0x000d9100
 
#define OCTEON_CN68XX_PASS1_1   0x000d9101
 
#define OCTEON_CN68XX_PASS1_2   0x000d9102
 
#define OCTEON_CN68XX_PASS2_0   0x000d9108
 
#define OCTEON_CN68XX   (OCTEON_CN68XX_PASS2_0 | OM_IGNORE_REVISION)
 
#define OCTEON_CN68XX_PASS1_X   (OCTEON_CN68XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN68XX_PASS2_X   (OCTEON_CN68XX_PASS2_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN68XX_PASS1   OCTEON_CN68XX_PASS1_X
 
#define OCTEON_CN68XX_PASS2   OCTEON_CN68XX_PASS2_X
 
#define OCTEON_CN66XX_PASS1_0   0x000d9200
 
#define OCTEON_CN66XX_PASS1_2   0x000d9202
 
#define OCTEON_CN66XX   (OCTEON_CN66XX_PASS1_0 | OM_IGNORE_REVISION)
 
#define OCTEON_CN66XX_PASS1_X   (OCTEON_CN66XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN63XX_PASS1_0   0x000d9000
 
#define OCTEON_CN63XX_PASS1_1   0x000d9001
 
#define OCTEON_CN63XX_PASS1_2   0x000d9002
 
#define OCTEON_CN63XX_PASS2_0   0x000d9008
 
#define OCTEON_CN63XX_PASS2_1   0x000d9009
 
#define OCTEON_CN63XX_PASS2_2   0x000d900a
 
#define OCTEON_CN63XX   (OCTEON_CN63XX_PASS2_0 | OM_IGNORE_REVISION)
 
#define OCTEON_CN63XX_PASS1_X   (OCTEON_CN63XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN63XX_PASS2_X   (OCTEON_CN63XX_PASS2_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN61XX_PASS1_0   0x000d9300
 
#define OCTEON_CN61XX   (OCTEON_CN61XX_PASS1_0 | OM_IGNORE_REVISION)
 
#define OCTEON_CN61XX_PASS1_X   (OCTEON_CN61XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN58XX_PASS1_0   0x000d0300
 
#define OCTEON_CN58XX_PASS1_1   0x000d0301
 
#define OCTEON_CN58XX_PASS1_2   0x000d0303
 
#define OCTEON_CN58XX_PASS2_0   0x000d0308
 
#define OCTEON_CN58XX_PASS2_1   0x000d0309
 
#define OCTEON_CN58XX_PASS2_2   0x000d030a
 
#define OCTEON_CN58XX_PASS2_3   0x000d030b
 
#define OCTEON_CN58XX   (OCTEON_CN58XX_PASS1_0 | OM_IGNORE_REVISION)
 
#define OCTEON_CN58XX_PASS1_X   (OCTEON_CN58XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN58XX_PASS2_X   (OCTEON_CN58XX_PASS2_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN58XX_PASS1   OCTEON_CN58XX_PASS1_X
 
#define OCTEON_CN58XX_PASS2   OCTEON_CN58XX_PASS2_X
 
#define OCTEON_CN56XX_PASS1_0   0x000d0400
 
#define OCTEON_CN56XX_PASS1_1   0x000d0401
 
#define OCTEON_CN56XX_PASS2_0   0x000d0408
 
#define OCTEON_CN56XX_PASS2_1   0x000d0409
 
#define OCTEON_CN56XX   (OCTEON_CN56XX_PASS2_0 | OM_IGNORE_REVISION)
 
#define OCTEON_CN56XX_PASS1_X   (OCTEON_CN56XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN56XX_PASS2_X   (OCTEON_CN56XX_PASS2_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN56XX_PASS1   OCTEON_CN56XX_PASS1_X
 
#define OCTEON_CN56XX_PASS2   OCTEON_CN56XX_PASS2_X
 
#define OCTEON_CN57XX   OCTEON_CN56XX
 
#define OCTEON_CN57XX_PASS1   OCTEON_CN56XX_PASS1
 
#define OCTEON_CN57XX_PASS2   OCTEON_CN56XX_PASS2
 
#define OCTEON_CN55XX   OCTEON_CN56XX
 
#define OCTEON_CN55XX_PASS1   OCTEON_CN56XX_PASS1
 
#define OCTEON_CN55XX_PASS2   OCTEON_CN56XX_PASS2
 
#define OCTEON_CN54XX   OCTEON_CN56XX
 
#define OCTEON_CN54XX_PASS1   OCTEON_CN56XX_PASS1
 
#define OCTEON_CN54XX_PASS2   OCTEON_CN56XX_PASS2
 
#define OCTEON_CN50XX_PASS1_0   0x000d0600
 
#define OCTEON_CN50XX   (OCTEON_CN50XX_PASS1_0 | OM_IGNORE_REVISION)
 
#define OCTEON_CN50XX_PASS1_X   (OCTEON_CN50XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN50XX_PASS1   OCTEON_CN50XX_PASS1_X
 
#define OCTEON_CN52XX_PASS1_0   0x000d0700
 
#define OCTEON_CN52XX_PASS2_0   0x000d0708
 
#define OCTEON_CN52XX   (OCTEON_CN52XX_PASS2_0 | OM_IGNORE_REVISION)
 
#define OCTEON_CN52XX_PASS1_X   (OCTEON_CN52XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN52XX_PASS2_X   (OCTEON_CN52XX_PASS2_0 | OM_IGNORE_MINOR_REVISION)
 
#define OCTEON_CN52XX_PASS1   OCTEON_CN52XX_PASS1_X
 
#define OCTEON_CN52XX_PASS2   OCTEON_CN52XX_PASS2_X
 
#define OCTEON_CN38XX_PASS1   0x000d0000
 
#define OCTEON_CN38XX_PASS2   0x000d0001
 
#define OCTEON_CN38XX_PASS3   0x000d0003
 
#define OCTEON_CN38XX   (OCTEON_CN38XX_PASS3 | OM_IGNORE_REVISION)
 
#define OCTEON_CN36XX   OCTEON_CN38XX
 
#define OCTEON_CN36XX_PASS2   OCTEON_CN38XX_PASS2
 
#define OCTEON_CN36XX_PASS3   OCTEON_CN38XX_PASS3
 
#define OCTEON_CN31XX_PASS1   0x000d0100
 
#define OCTEON_CN31XX_PASS1_1   0x000d0102
 
#define OCTEON_CN31XX   (OCTEON_CN31XX_PASS1 | OM_IGNORE_REVISION)
 
#define OCTEON_CN30XX_PASS1   0x000d0200
 
#define OCTEON_CN30XX_PASS1_1   0x000d0202
 
#define OCTEON_CN30XX   (OCTEON_CN30XX_PASS1 | OM_IGNORE_REVISION)
 
#define OCTEON_CN3005_PASS1   (0x000d0210 | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3005_PASS1_0   (0x000d0210 | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3005_PASS1_1   (0x000d0212 | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3005   (OCTEON_CN3005_PASS1 | OM_IGNORE_REVISION | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3010_PASS1   (0x000d0200 | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3010_PASS1_0   (0x000d0200 | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3010_PASS1_1   (0x000d0202 | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3010   (OCTEON_CN3010_PASS1 | OM_IGNORE_REVISION | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3020_PASS1   (0x000d0110 | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3020_PASS1_0   (0x000d0110 | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3020_PASS1_1   (0x000d0112 | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3020   (OCTEON_CN3020_PASS1 | OM_IGNORE_REVISION | OM_CHECK_SUBMODEL)
 
#define OCTEON_CN3XXX   (OCTEON_CN58XX_PASS1_0 | OM_MATCH_PREVIOUS_MODELS | OM_IGNORE_REVISION)
 
#define OCTEON_CN5XXX   (OCTEON_CN58XX_PASS1_0 | OM_MATCH_5XXX_FAMILY_MODELS)
 
#define OCTEON_CN6XXX   (OCTEON_CN63XX_PASS1_0 | OM_MATCH_6XXX_FAMILY_MODELS)
 
#define OCTEON_38XX_FAMILY_MASK   0x00ffff00
 
#define OCTEON_38XX_FAMILY_REV_MASK   0x00ffff0f
 
#define OCTEON_38XX_MODEL_MASK   0x00ffff10
 
#define OCTEON_38XX_MODEL_REV_MASK   (OCTEON_38XX_FAMILY_REV_MASK | OCTEON_38XX_MODEL_MASK)
 
#define OCTEON_58XX_FAMILY_MASK   OCTEON_38XX_FAMILY_MASK
 
#define OCTEON_58XX_FAMILY_REV_MASK   0x00ffff3f
 
#define OCTEON_58XX_MODEL_MASK   0x00ffffc0
 
#define OCTEON_58XX_MODEL_REV_MASK   (OCTEON_58XX_FAMILY_REV_MASK | OCTEON_58XX_MODEL_MASK)
 
#define OCTEON_58XX_MODEL_MINOR_REV_MASK   (OCTEON_58XX_MODEL_REV_MASK & 0x00fffff8)
 
#define OCTEON_5XXX_MODEL_MASK   0x00ff0fc0
 
#define __OCTEON_MATCH_MASK__(x, y, z)   (((x) & (z)) == ((y) & (z)))
 
#define __OCTEON_IS_MODEL_COMPILE__(arg_model, chip_model)
 
#define OCTEON_IS_MODEL(x)   __octeon_is_model_runtime__(x)
 
#define OCTEON_IS_COMMON_BINARY()   1
 

Functions

const charocteon_model_get_string (uint32_t chip_id)
 
const charocteon_model_get_string_buffer (uint32_t chip_id, char *buffer)
 

Macro Definition Documentation

#define __OCTEON_IS_MODEL_COMPILE__ (   arg_model,
  chip_model 
)
Value:
((((arg_model) & (OM_FLAG_MASK)) == (OM_IGNORE_REVISION | OM_CHECK_SUBMODEL)) \
&& __OCTEON_MATCH_MASK__((chip_model), (arg_model), OCTEON_38XX_MODEL_MASK)) || \
((((arg_model) & (OM_FLAG_MASK)) == 0) \
&& __OCTEON_MATCH_MASK__((chip_model), (arg_model), OCTEON_38XX_FAMILY_REV_MASK)) || \
((((arg_model) & (OM_FLAG_MASK)) == OM_IGNORE_REVISION) \
&& __OCTEON_MATCH_MASK__((chip_model), (arg_model), OCTEON_38XX_FAMILY_MASK)) || \
((((arg_model) & (OM_FLAG_MASK)) == OM_CHECK_SUBMODEL) \
&& __OCTEON_MATCH_MASK__((chip_model), (arg_model), OCTEON_38XX_MODEL_REV_MASK)) || \
&& (((chip_model) & OCTEON_38XX_MODEL_MASK) < ((arg_model) & OCTEON_38XX_MODEL_MASK))) \
)) || \
((((arg_model) & (OM_FLAG_MASK)) == (OM_IGNORE_REVISION | OM_CHECK_SUBMODEL)) \
&& __OCTEON_MATCH_MASK__((chip_model), (arg_model), OCTEON_58XX_MODEL_MASK)) || \
((((arg_model) & (OM_FLAG_MASK)) == 0) \
&& __OCTEON_MATCH_MASK__((chip_model), (arg_model), OCTEON_58XX_FAMILY_REV_MASK)) || \
((((arg_model) & (OM_FLAG_MASK)) == OM_IGNORE_MINOR_REVISION) \
&& __OCTEON_MATCH_MASK__((chip_model), (arg_model), OCTEON_58XX_MODEL_MINOR_REV_MASK)) || \
((((arg_model) & (OM_FLAG_MASK)) == OM_IGNORE_REVISION) \
&& __OCTEON_MATCH_MASK__((chip_model), (arg_model), OCTEON_58XX_FAMILY_MASK)) || \
((((arg_model) & (OM_FLAG_MASK)) == OM_CHECK_SUBMODEL) \
&& __OCTEON_MATCH_MASK__((chip_model), (arg_model), OCTEON_58XX_MODEL_REV_MASK)) || \
&& ((chip_model) >= OCTEON_CN63XX_PASS1_0)) || \
&& (((chip_model) & OCTEON_58XX_MODEL_MASK) < ((arg_model) & OCTEON_58XX_MODEL_MASK))) \
)))

Definition at line 260 of file octeon-model.h.

#define __OCTEON_MATCH_MASK__ (   x,
  y,
 
)    (((x) & (z)) == ((y) & (z)))

Definition at line 257 of file octeon-model.h.

#define OCTEON_38XX_FAMILY_MASK   0x00ffff00

Definition at line 240 of file octeon-model.h.

#define OCTEON_38XX_FAMILY_REV_MASK   0x00ffff0f

Definition at line 241 of file octeon-model.h.

#define OCTEON_38XX_MODEL_MASK   0x00ffff10

Definition at line 242 of file octeon-model.h.

#define OCTEON_38XX_MODEL_REV_MASK   (OCTEON_38XX_FAMILY_REV_MASK | OCTEON_38XX_MODEL_MASK)

Definition at line 243 of file octeon-model.h.

#define OCTEON_58XX_FAMILY_MASK   OCTEON_38XX_FAMILY_MASK

Definition at line 246 of file octeon-model.h.

#define OCTEON_58XX_FAMILY_REV_MASK   0x00ffff3f

Definition at line 247 of file octeon-model.h.

#define OCTEON_58XX_MODEL_MASK   0x00ffffc0

Definition at line 248 of file octeon-model.h.

#define OCTEON_58XX_MODEL_MINOR_REV_MASK   (OCTEON_58XX_MODEL_REV_MASK & 0x00fffff8)

Definition at line 250 of file octeon-model.h.

#define OCTEON_58XX_MODEL_REV_MASK   (OCTEON_58XX_FAMILY_REV_MASK | OCTEON_58XX_MODEL_MASK)

Definition at line 249 of file octeon-model.h.

#define OCTEON_5XXX_MODEL_MASK   0x00ff0fc0

Definition at line 251 of file octeon-model.h.

#define OCTEON_CN3005   (OCTEON_CN3005_PASS1 | OM_IGNORE_REVISION | OM_CHECK_SUBMODEL)

Definition at line 201 of file octeon-model.h.

#define OCTEON_CN3005_PASS1   (0x000d0210 | OM_CHECK_SUBMODEL)

Definition at line 198 of file octeon-model.h.

#define OCTEON_CN3005_PASS1_0   (0x000d0210 | OM_CHECK_SUBMODEL)

Definition at line 199 of file octeon-model.h.

#define OCTEON_CN3005_PASS1_1   (0x000d0212 | OM_CHECK_SUBMODEL)

Definition at line 200 of file octeon-model.h.

#define OCTEON_CN3010   (OCTEON_CN3010_PASS1 | OM_IGNORE_REVISION | OM_CHECK_SUBMODEL)

Definition at line 206 of file octeon-model.h.

#define OCTEON_CN3010_PASS1   (0x000d0200 | OM_CHECK_SUBMODEL)

Definition at line 203 of file octeon-model.h.

#define OCTEON_CN3010_PASS1_0   (0x000d0200 | OM_CHECK_SUBMODEL)

Definition at line 204 of file octeon-model.h.

#define OCTEON_CN3010_PASS1_1   (0x000d0202 | OM_CHECK_SUBMODEL)

Definition at line 205 of file octeon-model.h.

#define OCTEON_CN3020   (OCTEON_CN3020_PASS1 | OM_IGNORE_REVISION | OM_CHECK_SUBMODEL)

Definition at line 211 of file octeon-model.h.

#define OCTEON_CN3020_PASS1   (0x000d0110 | OM_CHECK_SUBMODEL)

Definition at line 208 of file octeon-model.h.

#define OCTEON_CN3020_PASS1_0   (0x000d0110 | OM_CHECK_SUBMODEL)

Definition at line 209 of file octeon-model.h.

#define OCTEON_CN3020_PASS1_1   (0x000d0112 | OM_CHECK_SUBMODEL)

Definition at line 210 of file octeon-model.h.

#define OCTEON_CN30XX   (OCTEON_CN30XX_PASS1 | OM_IGNORE_REVISION)

Definition at line 196 of file octeon-model.h.

#define OCTEON_CN30XX_PASS1   0x000d0200

Definition at line 194 of file octeon-model.h.

#define OCTEON_CN30XX_PASS1_1   0x000d0202

Definition at line 195 of file octeon-model.h.

#define OCTEON_CN31XX   (OCTEON_CN31XX_PASS1 | OM_IGNORE_REVISION)

Definition at line 187 of file octeon-model.h.

#define OCTEON_CN31XX_PASS1   0x000d0100

Definition at line 185 of file octeon-model.h.

#define OCTEON_CN31XX_PASS1_1   0x000d0102

Definition at line 186 of file octeon-model.h.

#define OCTEON_CN36XX   OCTEON_CN38XX

Definition at line 180 of file octeon-model.h.

#define OCTEON_CN36XX_PASS2   OCTEON_CN38XX_PASS2

Definition at line 181 of file octeon-model.h.

#define OCTEON_CN36XX_PASS3   OCTEON_CN38XX_PASS3

Definition at line 182 of file octeon-model.h.

#define OCTEON_CN38XX   (OCTEON_CN38XX_PASS3 | OM_IGNORE_REVISION)

Definition at line 178 of file octeon-model.h.

#define OCTEON_CN38XX_PASS1   0x000d0000

Definition at line 175 of file octeon-model.h.

#define OCTEON_CN38XX_PASS2   0x000d0001

Definition at line 176 of file octeon-model.h.

#define OCTEON_CN38XX_PASS3   0x000d0003

Definition at line 177 of file octeon-model.h.

Definition at line 217 of file octeon-model.h.

#define OCTEON_CN50XX   (OCTEON_CN50XX_PASS1_0 | OM_IGNORE_REVISION)

Definition at line 154 of file octeon-model.h.

#define OCTEON_CN50XX_PASS1   OCTEON_CN50XX_PASS1_X

Definition at line 156 of file octeon-model.h.

#define OCTEON_CN50XX_PASS1_0   0x000d0600

Definition at line 152 of file octeon-model.h.

#define OCTEON_CN50XX_PASS1_X   (OCTEON_CN50XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 155 of file octeon-model.h.

#define OCTEON_CN52XX   (OCTEON_CN52XX_PASS2_0 | OM_IGNORE_REVISION)

Definition at line 166 of file octeon-model.h.

#define OCTEON_CN52XX_PASS1   OCTEON_CN52XX_PASS1_X

Definition at line 169 of file octeon-model.h.

#define OCTEON_CN52XX_PASS1_0   0x000d0700

Definition at line 163 of file octeon-model.h.

#define OCTEON_CN52XX_PASS1_X   (OCTEON_CN52XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 167 of file octeon-model.h.

#define OCTEON_CN52XX_PASS2   OCTEON_CN52XX_PASS2_X

Definition at line 170 of file octeon-model.h.

#define OCTEON_CN52XX_PASS2_0   0x000d0708

Definition at line 164 of file octeon-model.h.

#define OCTEON_CN52XX_PASS2_X   (OCTEON_CN52XX_PASS2_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 168 of file octeon-model.h.

#define OCTEON_CN54XX   OCTEON_CN56XX

Definition at line 148 of file octeon-model.h.

#define OCTEON_CN54XX_PASS1   OCTEON_CN56XX_PASS1

Definition at line 149 of file octeon-model.h.

#define OCTEON_CN54XX_PASS2   OCTEON_CN56XX_PASS2

Definition at line 150 of file octeon-model.h.

#define OCTEON_CN55XX   OCTEON_CN56XX

Definition at line 144 of file octeon-model.h.

#define OCTEON_CN55XX_PASS1   OCTEON_CN56XX_PASS1

Definition at line 145 of file octeon-model.h.

#define OCTEON_CN55XX_PASS2   OCTEON_CN56XX_PASS2

Definition at line 146 of file octeon-model.h.

#define OCTEON_CN56XX   (OCTEON_CN56XX_PASS2_0 | OM_IGNORE_REVISION)

Definition at line 134 of file octeon-model.h.

#define OCTEON_CN56XX_PASS1   OCTEON_CN56XX_PASS1_X

Definition at line 137 of file octeon-model.h.

#define OCTEON_CN56XX_PASS1_0   0x000d0400

Definition at line 129 of file octeon-model.h.

#define OCTEON_CN56XX_PASS1_1   0x000d0401

Definition at line 130 of file octeon-model.h.

#define OCTEON_CN56XX_PASS1_X   (OCTEON_CN56XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 135 of file octeon-model.h.

#define OCTEON_CN56XX_PASS2   OCTEON_CN56XX_PASS2_X

Definition at line 138 of file octeon-model.h.

#define OCTEON_CN56XX_PASS2_0   0x000d0408

Definition at line 131 of file octeon-model.h.

#define OCTEON_CN56XX_PASS2_1   0x000d0409

Definition at line 132 of file octeon-model.h.

#define OCTEON_CN56XX_PASS2_X   (OCTEON_CN56XX_PASS2_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 136 of file octeon-model.h.

#define OCTEON_CN57XX   OCTEON_CN56XX

Definition at line 140 of file octeon-model.h.

#define OCTEON_CN57XX_PASS1   OCTEON_CN56XX_PASS1

Definition at line 141 of file octeon-model.h.

#define OCTEON_CN57XX_PASS2   OCTEON_CN56XX_PASS2

Definition at line 142 of file octeon-model.h.

#define OCTEON_CN58XX   (OCTEON_CN58XX_PASS1_0 | OM_IGNORE_REVISION)

Definition at line 123 of file octeon-model.h.

#define OCTEON_CN58XX_PASS1   OCTEON_CN58XX_PASS1_X

Definition at line 126 of file octeon-model.h.

#define OCTEON_CN58XX_PASS1_0   0x000d0300

Definition at line 115 of file octeon-model.h.

#define OCTEON_CN58XX_PASS1_1   0x000d0301

Definition at line 116 of file octeon-model.h.

#define OCTEON_CN58XX_PASS1_2   0x000d0303

Definition at line 117 of file octeon-model.h.

#define OCTEON_CN58XX_PASS1_X   (OCTEON_CN58XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 124 of file octeon-model.h.

#define OCTEON_CN58XX_PASS2   OCTEON_CN58XX_PASS2_X

Definition at line 127 of file octeon-model.h.

#define OCTEON_CN58XX_PASS2_0   0x000d0308

Definition at line 118 of file octeon-model.h.

#define OCTEON_CN58XX_PASS2_1   0x000d0309

Definition at line 119 of file octeon-model.h.

#define OCTEON_CN58XX_PASS2_2   0x000d030a

Definition at line 120 of file octeon-model.h.

#define OCTEON_CN58XX_PASS2_3   0x000d030b

Definition at line 121 of file octeon-model.h.

#define OCTEON_CN58XX_PASS2_X   (OCTEON_CN58XX_PASS2_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 125 of file octeon-model.h.

#define OCTEON_CN5XXX   (OCTEON_CN58XX_PASS1_0 | OM_MATCH_5XXX_FAMILY_MODELS)

Definition at line 218 of file octeon-model.h.

#define OCTEON_CN61XX   (OCTEON_CN61XX_PASS1_0 | OM_IGNORE_REVISION)

Definition at line 109 of file octeon-model.h.

#define OCTEON_CN61XX_PASS1_0   0x000d9300

Definition at line 107 of file octeon-model.h.

#define OCTEON_CN61XX_PASS1_X   (OCTEON_CN61XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 110 of file octeon-model.h.

#define OCTEON_CN63XX   (OCTEON_CN63XX_PASS2_0 | OM_IGNORE_REVISION)

Definition at line 103 of file octeon-model.h.

#define OCTEON_CN63XX_PASS1_0   0x000d9000

Definition at line 96 of file octeon-model.h.

#define OCTEON_CN63XX_PASS1_1   0x000d9001

Definition at line 97 of file octeon-model.h.

#define OCTEON_CN63XX_PASS1_2   0x000d9002

Definition at line 98 of file octeon-model.h.

#define OCTEON_CN63XX_PASS1_X   (OCTEON_CN63XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 104 of file octeon-model.h.

#define OCTEON_CN63XX_PASS2_0   0x000d9008

Definition at line 99 of file octeon-model.h.

#define OCTEON_CN63XX_PASS2_1   0x000d9009

Definition at line 100 of file octeon-model.h.

#define OCTEON_CN63XX_PASS2_2   0x000d900a

Definition at line 101 of file octeon-model.h.

#define OCTEON_CN63XX_PASS2_X   (OCTEON_CN63XX_PASS2_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 105 of file octeon-model.h.

#define OCTEON_CN66XX   (OCTEON_CN66XX_PASS1_0 | OM_IGNORE_REVISION)

Definition at line 93 of file octeon-model.h.

#define OCTEON_CN66XX_PASS1_0   0x000d9200

Definition at line 90 of file octeon-model.h.

#define OCTEON_CN66XX_PASS1_2   0x000d9202

Definition at line 91 of file octeon-model.h.

#define OCTEON_CN66XX_PASS1_X   (OCTEON_CN66XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 94 of file octeon-model.h.

#define OCTEON_CN68XX   (OCTEON_CN68XX_PASS2_0 | OM_IGNORE_REVISION)

Definition at line 83 of file octeon-model.h.

#define OCTEON_CN68XX_PASS1   OCTEON_CN68XX_PASS1_X

Definition at line 87 of file octeon-model.h.

#define OCTEON_CN68XX_PASS1_0   0x000d9100

Definition at line 78 of file octeon-model.h.

#define OCTEON_CN68XX_PASS1_1   0x000d9101

Definition at line 79 of file octeon-model.h.

#define OCTEON_CN68XX_PASS1_2   0x000d9102

Definition at line 80 of file octeon-model.h.

#define OCTEON_CN68XX_PASS1_X   (OCTEON_CN68XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 84 of file octeon-model.h.

#define OCTEON_CN68XX_PASS2   OCTEON_CN68XX_PASS2_X

Definition at line 88 of file octeon-model.h.

#define OCTEON_CN68XX_PASS2_0   0x000d9108

Definition at line 81 of file octeon-model.h.

#define OCTEON_CN68XX_PASS2_X   (OCTEON_CN68XX_PASS2_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 85 of file octeon-model.h.

#define OCTEON_CN6XXX   (OCTEON_CN63XX_PASS1_0 | OM_MATCH_6XXX_FAMILY_MODELS)

Definition at line 219 of file octeon-model.h.

#define OCTEON_CNF71XX   (OCTEON_CNF71XX_PASS1_0 | OM_IGNORE_REVISION)

Definition at line 72 of file octeon-model.h.

#define OCTEON_CNF71XX_PASS1_0   0x000d9400

Definition at line 70 of file octeon-model.h.

#define OCTEON_CNF71XX_PASS1_X   (OCTEON_CNF71XX_PASS1_0 | OM_IGNORE_MINOR_REVISION)

Definition at line 73 of file octeon-model.h.

#define OCTEON_FAMILY_MASK   0x00ffff00

Definition at line 47 of file octeon-model.h.

#define OCTEON_IS_COMMON_BINARY ( )    1

Definition at line 320 of file octeon-model.h.

#define OCTEON_IS_MODEL (   x)    __octeon_is_model_runtime__(x)

Definition at line 319 of file octeon-model.h.

#define OM_CHECK_SUBMODEL   0x02000000

Definition at line 53 of file octeon-model.h.

#define OM_FLAG_MASK   0xff000000

Definition at line 58 of file octeon-model.h.

#define OM_IGNORE_MINOR_REVISION   0x08000000

Definition at line 57 of file octeon-model.h.

#define OM_IGNORE_REVISION   0x01000000

Definition at line 51 of file octeon-model.h.

#define OM_MATCH_5XXX_FAMILY_MODELS   0x20000000

Definition at line 61 of file octeon-model.h.

#define OM_MATCH_6XXX_FAMILY_MODELS   0x40000000

Definition at line 63 of file octeon-model.h.

#define OM_MATCH_F7XXX_FAMILY_MODELS   0x80000000

Definition at line 65 of file octeon-model.h.

#define OM_MATCH_PREVIOUS_MODELS   0x04000000

Definition at line 55 of file octeon-model.h.

Function Documentation

const char* octeon_model_get_string ( uint32_t  chip_id)

Given the chip processor ID from COP0, this function returns a string representing the chip model number. The string is of the form CNXXXXpX.X-FREQ-SUFFIX.

  • XXXX = The chip model number
  • X.X = Chip pass number
  • FREQ = Current frequency in Mhz
  • SUFFIX = NSP, EXP, SCP, SSP, or CP

: Chip ID

Returns Model string

Definition at line 43 of file octeon-model.c.

const char* octeon_model_get_string_buffer ( uint32_t  chip_id,
char buffer 
)

Definition at line 54 of file octeon-model.c.