Lines Matching full:cid
92 * @param[out] cid On success, the probed chip identifier.
101 struct bhnd_chipid *cid) in bhnd_erom_probe_driver_classes() argument
144 *cid = pcid; in bhnd_erom_probe_driver_classes()
164 * @param cid The device's chip identifier.
171 bhnd_erom_alloc(bhnd_erom_class_t *cls, const struct bhnd_chipid *cid, in bhnd_erom_alloc() argument
180 if ((error = BHND_EROM_INIT(erom, cid, eio))) { in bhnd_erom_alloc()
182 (uintmax_t)cid->enum_addr, error); in bhnd_erom_alloc()
203 * @param cid The device's chip identifier.
214 const struct bhnd_chipid *cid, struct bhnd_erom_io *eio) in bhnd_erom_init_static() argument
226 return (BHND_EROM_INIT(erom, cid, eio)); in bhnd_erom_init_static()
257 * Read the chip identification registers mapped by @p eio, popuating @p cid
262 * @param[out] cid On success, the parsed chip identification.
271 bhnd_erom_read_chipid(struct bhnd_erom_io *eio, struct bhnd_chipid *cid) in bhnd_erom_read_chipid() argument
286 cid->chip_id = CHIPC_GET_BITS(idreg, CHIPC_ID_CHIP); in bhnd_erom_read_chipid()
287 cid->chip_pkg = CHIPC_GET_BITS(idreg, CHIPC_ID_PKG); in bhnd_erom_read_chipid()
288 cid->chip_rev = CHIPC_GET_BITS(idreg, CHIPC_ID_REV); in bhnd_erom_read_chipid()
289 cid->chip_type = CHIPC_GET_BITS(idreg, CHIPC_ID_BUS); in bhnd_erom_read_chipid()
290 cid->ncores = CHIPC_GET_BITS(idreg, CHIPC_ID_NUMCORE); in bhnd_erom_read_chipid()
293 if (BHND_CHIPTYPE_HAS_EROM(cid->chip_type)) { in bhnd_erom_read_chipid()
294 cid->enum_addr = bhnd_erom_io_read(eio, CHIPC_EROMPTR, 4); in bhnd_erom_read_chipid()
296 cid->enum_addr = cc_addr; in bhnd_erom_read_chipid()
301 cid->chip_caps = 0x0; in bhnd_erom_read_chipid()
304 cid->chip_caps |= BHND_CAP_BP64; in bhnd_erom_read_chipid()
307 cid->chip_caps |= BHND_CAP_PMU; in bhnd_erom_read_chipid()