• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/bhnd/siba/

Lines Matching refs:port

201  * Map an addrspace index to its corresponding bhnd(4) BHND_PORT_DEVICE port
218 * Map an addrspace index to its corresponding bhnd(4) BHND_PORT_DEVICE port
235 * Map an config block index to its corresponding bhnd(4) BHND_PORT_AGENT port
248 * Map an config block index to its corresponding bhnd(4) BHND_PORT_AGENT port
265 * information on siba's mapping of bhnd(4) port and region identifiers.
268 * @param port_type The bhnd(4) port type.
279 /* One agent port maps all configuration blocks */
283 /* Do not advertise an agent port if there are no configuration
293 * Return true if @p port of @p port_type is defined by @p core_id, false
297 * @param port_type The bhnd(4) port type.
298 * @param port The bhnd(4) port number.
302 u_int port)
304 /* Verify the index against the port count */
305 if (siba_port_count(core_id, port_type) <= port)
313 * @p port of @p port_type.
316 * @param port_type The bhnd(4) port type.
320 u_int port)
322 /* The port must exist */
323 if (!siba_is_port_valid(core_id, port_type, port))
329 if (port == 0)
333 if (port == 1 && core_id->num_admatch >= 2)
339 /* All config blocks are mapped to a single port */
340 if (port == 0)
350 panic("siba_is_port_valid() returned true for unknown %s.%u port",
351 bhnd_port_type_name(port_type), port);
356 * Map a bhnd(4) type/port/region triplet to its associated config block index,
359 * We map config registers to port/region identifiers as follows:
361 * [port].[region] [cfg register block]
365 * @param port_type The bhnd(4) port type.
366 * @param port The bhnd(4) port number.
367 * @param region The bhnd(4) port region.
371 * @retval ENOENT if the given type/port/region cannot be mapped to a
376 u_int port, u_int region, u_int *cfgidx)
383 if (!siba_is_port_valid(core_id, port_type, port))
398 * Map an bhnd(4) type/port/region triplet to its associated config block
401 * The only supported port type is BHND_PORT_DEVICE.
404 * @param type The bhnd(4) port type.
405 * @param port The bhnd(4) port number.
406 * @param region The bhnd(4) port region.
409 siba_find_cfg_block(struct siba_devinfo *dinfo, bhnd_port_type type, u_int port,
416 error = siba_cfg_index(&dinfo->core_id, type, port, region, &cfgidx);
425 * Map a bhnd(4) type/port/region triplet to its associated address space
428 * For compatibility with bcma(4), we map address spaces to port/region
431 * [port.region] [admatch index]
438 * @param port_type The bhnd(4) port type.
439 * @param port The bhnd(4) port number.
440 * @param region The bhnd(4) port region.
444 * @retval ENOENT if the given type/port/region cannot be mapped to a
449 u_int port, u_int region, u_int *addridx)
458 if (!siba_is_port_valid(core_id, port_type, port))
461 if (port == 0)
463 else if (port == 1)
477 * Map an bhnd(4) type/port/region triplet to its associated address space
480 * The only supported port type is BHND_PORT_DEVICE.
483 * @param type The bhnd(4) port type.
484 * @param port The bhnd(4) port number.
485 * @param region The bhnd(4) port region.
488 siba_find_addrspace(struct siba_devinfo *dinfo, bhnd_port_type type, u_int port,
495 error = siba_addrspace_index(&dinfo->core_id, type, port, region,