Lines Matching full:cid
91 * @param[out] cid On success, the probed chip identifier.
100 struct bhnd_chipid *cid) in bhnd_erom_probe_driver_classes() argument
143 *cid = pcid; in bhnd_erom_probe_driver_classes()
163 * @param cid The device's chip identifier.
170 bhnd_erom_alloc(bhnd_erom_class_t *cls, const struct bhnd_chipid *cid, in bhnd_erom_alloc() argument
179 if ((error = BHND_EROM_INIT(erom, cid, eio))) { in bhnd_erom_alloc()
181 (uintmax_t)cid->enum_addr, error); in bhnd_erom_alloc()
202 * @param cid The device's chip identifier.
213 const struct bhnd_chipid *cid, struct bhnd_erom_io *eio) in bhnd_erom_init_static() argument
225 return (BHND_EROM_INIT(erom, cid, eio)); in bhnd_erom_init_static()
256 * Read the chip identification registers mapped by @p eio, popuating @p cid
261 * @param[out] cid On success, the parsed chip identification.
270 bhnd_erom_read_chipid(struct bhnd_erom_io *eio, struct bhnd_chipid *cid) in bhnd_erom_read_chipid() argument
285 cid->chip_id = CHIPC_GET_BITS(idreg, CHIPC_ID_CHIP); in bhnd_erom_read_chipid()
286 cid->chip_pkg = CHIPC_GET_BITS(idreg, CHIPC_ID_PKG); in bhnd_erom_read_chipid()
287 cid->chip_rev = CHIPC_GET_BITS(idreg, CHIPC_ID_REV); in bhnd_erom_read_chipid()
288 cid->chip_type = CHIPC_GET_BITS(idreg, CHIPC_ID_BUS); in bhnd_erom_read_chipid()
289 cid->ncores = CHIPC_GET_BITS(idreg, CHIPC_ID_NUMCORE); in bhnd_erom_read_chipid()
292 if (BHND_CHIPTYPE_HAS_EROM(cid->chip_type)) { in bhnd_erom_read_chipid()
293 cid->enum_addr = bhnd_erom_io_read(eio, CHIPC_EROMPTR, 4); in bhnd_erom_read_chipid()
295 cid->enum_addr = cc_addr; in bhnd_erom_read_chipid()
300 cid->chip_caps = 0x0; in bhnd_erom_read_chipid()
303 cid->chip_caps |= BHND_CAP_BP64; in bhnd_erom_read_chipid()
306 cid->chip_caps |= BHND_CAP_PMU; in bhnd_erom_read_chipid()