Lines Matching refs:cid
95 * @param[out] cid On success, the probed chip identifier.
104 struct bhnd_chipid *cid)
147 *cid = pcid;
167 * @param cid The device's chip identifier.
174 bhnd_erom_alloc(bhnd_erom_class_t *cls, const struct bhnd_chipid *cid,
183 if ((error = BHND_EROM_INIT(erom, cid, eio))) {
185 (uintmax_t)cid->enum_addr, error);
206 * @param cid The device's chip identifier.
217 const struct bhnd_chipid *cid, struct bhnd_erom_io *eio)
229 return (BHND_EROM_INIT(erom, cid, eio));
260 * Read the chip identification registers mapped by @p eio, popuating @p cid
265 * @param[out] cid On success, the parsed chip identification.
274 bhnd_erom_read_chipid(struct bhnd_erom_io *eio, struct bhnd_chipid *cid)
289 cid->chip_id = CHIPC_GET_BITS(idreg, CHIPC_ID_CHIP);
290 cid->chip_pkg = CHIPC_GET_BITS(idreg, CHIPC_ID_PKG);
291 cid->chip_rev = CHIPC_GET_BITS(idreg, CHIPC_ID_REV);
292 cid->chip_type = CHIPC_GET_BITS(idreg, CHIPC_ID_BUS);
293 cid->ncores = CHIPC_GET_BITS(idreg, CHIPC_ID_NUMCORE);
296 if (BHND_CHIPTYPE_HAS_EROM(cid->chip_type)) {
297 cid->enum_addr = bhnd_erom_io_read(eio, CHIPC_EROMPTR, 4);
299 cid->enum_addr = cc_addr;
304 cid->chip_caps = 0x0;
307 cid->chip_caps |= BHND_CAP_BP64;
310 cid->chip_caps |= BHND_CAP_PMU;