STRUCT EC_PARAMS_CEC_SET(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

struct ec_params_cec_set β€” CEC parameters set. Yep bestie, this is the Kernel API Manual page for it, and we're gonna make it make sense πŸ’….


✨ SYNOPSIS ✨

Here's the struct in all its bitfield glory:

       struct ec_params_cec_set {
           uint8_t cmd : 4;
           uint8_t port : 4;
           uint8_t val;
        };

πŸ’… Members πŸ’…

  • cmd β€” the parameter type, bestie. It can be CEC_CMD_ENABLE or CEC_CMD_LOGICAL_ADDRESS.
  • port β€” the CEC port to set the parameter on. Like, which port is getting the makeover πŸŽ€.
  • val β€” okay so this one is lowkey a two-for-one:
    • if cmd is CEC_CMD_ENABLE, this field can be 0 to disable CEC or 1 to enable CEC functionality. Off or on, periodt.
    • if cmd is CEC_CMD_LOGICAL_ADDRESS, this field encodes the requested logical address between 0 and 15, or 0xff to unregister. That's the whole range, iykyk.

🌈 SEE ALSO 🌈

The kernel file is ./include/linux/platform_data/cros_ec_commands.h, and the whole struct squad is linked here:

  • struct ec_lpc_host_args(9)
  • struct ec_host_request(9)
  • struct ec_host_response(9)
  • struct ec_response_proto_version(9)
  • struct ec_params_hello(9)
  • struct ec_response_hello(9)
  • struct ec_response_get_version(9)
  • struct ec_params_read_test(9)
  • struct ec_response_read_test(9)
  • struct ec_response_get_chip_info(9)
  • struct ec_response_board_version(9)
  • struct ec_params_read_memmap(9)
  • struct ec_params_get_cmd_versions(9)
  • struct ec_params_get_cmd_versions_v1(9)
  • struct ec_response_get_cmd_versions(9)
  • struct ec_response_get_comms_status(9)
  • struct ec_response_get_protocol_info(9)
  • struct ec_response_flash_info(9)
  • struct ec_response_flash_info_1(9)
  • struct ec_params_flash_read(9)
  • struct ec_params_flash_write(9)
  • struct ec_params_flash_erase(9)
  • struct ec_params_flash_erase_v1(9)
  • struct ec_params_flash_protect(9)
  • struct ec_response_flash_protect(9)
  • struct ec_params_flash_region_info(9)
  • struct ec_params_flash_select(9)
  • struct ec_params_cec_write(9)
  • struct ec_params_cec_write_v1(9)
  • struct ec_params_cec_read(9)
  • struct ec_response_cec_read(9)
  • struct ec_params_cec_get(9)
  • struct ec_response_cec_get(9)
  • struct ec_response_cec_port_count(9)
  • struct ec_params_battery_static_info(9)
  • struct ec_response_battery_static_info(9)
  • struct ec_params_battery_dynamic_info(9)
  • struct ec_response_battery_dynamic_info(9)
  • struct ec_params_charger_control(9)

Cute sign-off tea β˜•: this page lives in ./include/linux/platform_data, is dated October 2026, and is all about struct ec_params_cec_set(9) β€” stay slay, bestie πŸ’–πŸ¦‹

πŸ“¦ where this page comes from