Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/bhnd/cores/chipc/chipcreg.h
Show All 29 Lines | #define CHIPC_CHIPID_SIZE 0x100 /**< size of the register block | ||||
identification registers | identification registers | ||||
required during bus | required during bus | ||||
enumeration */ | enumeration */ | ||||
/** Evaluates to true if the given ChipCommon core revision provides | /** Evaluates to true if the given ChipCommon core revision provides | ||||
* the core count via the chip identification register. */ | * the core count via the chip identification register. */ | ||||
#define CHIPC_NCORES_MIN_HWREV(hwrev) ((hwrev) == 4 || (hwrev) >= 6) | #define CHIPC_NCORES_MIN_HWREV(hwrev) ((hwrev) == 4 || (hwrev) >= 6) | ||||
/** Evaluates to true if the given ChipCommon core revision supports | |||||
* the CHIPC_CAPABILITIES_EXT register */ | |||||
#define CHIPC_HWREV_HAS_CAP_EXT(hwrev) ((hwrev) >= 35) | |||||
/** Evaluates to true if the chipcommon core (determined from the provided | |||||
* @p _chipid (CHIPC_ID) register value) provides a pointer to the enumeration | |||||
* table via CHIPC_EROMPTR */ | |||||
#define CHIPC_HAS_EROMPTR(_chipid) \ | |||||
(CHIPC_GET_BITS((_chipid), CHIPC_ID_BUS) != BHND_CHIPTYPE_SIBA) | |||||
#define CHIPC_GET_FLAG(_value, _flag) (((_value) & _flag) != 0) | #define CHIPC_GET_FLAG(_value, _flag) (((_value) & _flag) != 0) | ||||
#define CHIPC_GET_BITS(_value, _field) \ | #define CHIPC_GET_BITS(_value, _field) \ | ||||
((_value & _field ## _MASK) >> _field ## _SHIFT) | ((_value & _field ## _MASK) >> _field ## _SHIFT) | ||||
#define CHIPC_ID 0x00 | #define CHIPC_ID 0x00 | ||||
#define CHIPC_CAPABILITIES 0x04 | #define CHIPC_CAPABILITIES 0x04 | ||||
#define CHIPC_CORECTRL 0x08 /* rev >= 1 */ | #define CHIPC_CORECTRL 0x08 /* rev >= 1 */ | ||||
▲ Show 20 Lines • Show All 1,498 Lines • Show Last 20 Lines |