/** * acpi_nhlt_endpoint_fmtscfg - Get the formats configuration space. * @ep: the endpoint to retrieve the space for. * * Return: A pointer to the formats configuration space.
*/ staticinlinestruct acpi_nhlt_formats_config *
acpi_nhlt_endpoint_fmtscfg(conststruct acpi_nhlt_endpoint *ep)
{ struct acpi_nhlt_config *cfg = __acpi_nhlt_endpoint_config(ep);
/* * The for_each_nhlt_*() macros rely on an iterator to deal with the * variable length of each endpoint structure and the possible presence * of an OED-Config used by Windows only.
*/
/** * for_each_nhlt_endpoint - Iterate over endpoints in a NHLT table. * @tb: the pointer to a NHLT table. * @ep: the pointer to endpoint to use as loop cursor.
*/ #define for_each_nhlt_endpoint(tb, ep) \ for (unsignedint __i = 0; \
__i < (tb)->endpoints_count && \
(ep = __acpi_nhlt_get_endpoint(tb, ep, __i)); \
__i++)
/** * for_each_nhlt_fmtcfg - Iterate over format configurations. * @fmts: the pointer to formats configuration space. * @fmt: the pointer to format to use as loop cursor.
*/ #define for_each_nhlt_fmtcfg(fmts, fmt) \ for (unsignedint __i = 0; \
__i < (fmts)->formats_count && \
(fmt = __acpi_nhlt_get_fmtcfg(fmts, fmt, __i)); \
__i++)
/** * for_each_nhlt_endpoint_fmtcfg - Iterate over format configurations in an endpoint. * @ep: the pointer to an endpoint. * @fmt: the pointer to format to use as loop cursor.
*/ #define for_each_nhlt_endpoint_fmtcfg(ep, fmt) \
for_each_nhlt_fmtcfg(acpi_nhlt_endpoint_fmtscfg(ep), fmt)
#if IS_ENABLED(CONFIG_ACPI_NHLT)
/* * System-wide pointer to the first NHLT table. * * A sound driver may utilize acpi_nhlt_get/put_gbl_table() on its * initialization and removal respectively to avoid excessive mapping * and unmapping of the memory occupied by the table between streaming * operations.
*/
staticinlinebool
acpi_nhlt_endpoint_match(conststruct acpi_nhlt_endpoint *ep, int link_type, int dev_type, int dir, int bus_id)
{ returnfalse;
}
staticinlinestruct acpi_nhlt_endpoint *
acpi_nhlt_tb_find_endpoint(conststruct acpi_table_nhlt *tb, int link_type, int dev_type, int dir, int bus_id)
{ return NULL;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.