STRUCT HTE_CHIP(9)
π NAME π
struct hte_chip β Abstract HTE chip. This is from the Kernel API Manual, section 9, bestie, and it's literally the blueprint for an HTE chip. No cap.
β¨ SYNOPSIS β¨
okay so the struct is exactly this, every field present and accounted for π
struct hte_chip {
const char *name;
struct device *dev;
const struct hte_ops *ops;
u32 nlines;
int (*xlate_of)(struct hte_chip *gc, const struct of_phandle_args
*args, struct hte_ts_desc *desc, u32 *xlated_id);
int (*xlate_plat)(struct hte_chip *gc, struct hte_ts_desc *desc, u32
*xlated_id);
bool (*match_from_linedata)(const struct hte_chip *chip, const
struct hte_ts_desc *hdesc);
u8 of_hte_n_cells;
struct hte_device *gdev;
void *data;
};
π¦ Members π¦
okay bestie, here's every single member and what it does. We are not skipping one, periodt.
nameβ functional name of the HTE IP block. It's giving name tag energy.devβ device providing the HTE. Like, the actual device behind the vibes.opsβ callbacks for this HTE. The whole callback situation.nlinesβ number of lines/signals supported by this chip. That's the line count, no cap.xlate_ofβ callback that translates consumer-supplied logical ids to physical ids. It returns0for the success and negative for the failures, and on success it stores a value between0tonlinesin thexlated_idparameter. Bestie,0is the slay, negative is the fail πxlate_platβ literally same as above but for the consumers with no DT node. No DT, no problem π«Άmatch_from_linedataβ match HTE device using theline_data. It's giving matchmaker energy.of_hte_n_cellsβ number of cells used to form the HTE specifier. Important little cell count.gdevβ HTE subsystem abstract device, internal to the HTE subsystem. iykyk, it's internal.dataβ chip specific private data. Private means private, bestie π
π SEE ALSO π
Kernel file ./include/linux/hte.h β yes, that's the file. Then the whole reading list, in order: enum hte_edge(9), enum hte_return(9), struct hte_ts_data(9), struct hte_clk_info(9), hte_ts_cb_t(9), hte_ts_sec_cb_t(9), struct hte_line_attr(9), struct hte_ts_desc(9), struct hte_ops(9). Obsessed with a linked-list of lore? Same.
okay bestie, that's the whole page. Source: ./include/linux; version/date: October 2026; page: struct hte_chip(9). Stay slaying, and remember: no cap, read the header file πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms