STRUCT BQ256XX_CHIP_INFO(9)
π NAME π
struct bq256xx_chip_info β bestie, the manpage literally leaves this blank, so here's the vibe: it's the per-chip info struct for the bq256xx charger driver, and every member is listed below with its whole entire personality π«Ά
This page lives in the Kernel API Manual, just so you know where you are β¨
β¨ SYNOPSIS β¨
okay so here's the whole struct, no cap, every field, exactly as it is:
struct bq256xx_chip_info {
int model_id;
const struct regmap_config *bq256xx_regmap_config;
int (*bq256xx_get_ichg)(struct bq256xx_device *bq);
int (*bq256xx_get_iindpm)(struct bq256xx_device *bq);
int (*bq256xx_get_vbatreg)(struct bq256xx_device *bq);
int (*bq256xx_get_iterm)(struct bq256xx_device *bq);
int (*bq256xx_get_iprechg)(struct bq256xx_device *bq);
int (*bq256xx_get_vindpm)(struct bq256xx_device *bq);
int (*bq256xx_set_ichg)(struct bq256xx_device *bq, int ichg);
int (*bq256xx_set_iindpm)(struct bq256xx_device *bq, int iindpm);
int (*bq256xx_set_vbatreg)(struct bq256xx_device *bq, int vbatreg);
int (*bq256xx_set_iterm)(struct bq256xx_device *bq, int iterm);
int (*bq256xx_set_iprechg)(struct bq256xx_device *bq, int iprechg);
int (*bq256xx_set_vindpm)(struct bq256xx_device *bq, int vindpm);
int (*bq256xx_set_charge_type)(struct bq256xx_device *bq, int type);
int (*bq256xx_set_ts_ignore)(struct bq256xx_device *bq, bool
ts_ignore);
int bq256xx_def_ichg;
int bq256xx_def_iindpm;
int bq256xx_def_vbatreg;
int bq256xx_def_iterm;
int bq256xx_def_iprechg;
int bq256xx_def_vindpm;
int bq256xx_max_ichg;
int bq256xx_max_vbatreg;
bool has_usb_detect;
};
(yes the ts_ignore line is broken across two lines, that's just how the original prints it, don't come for me π
)
π§© Members π§©
okay bestie, member-by-member, here we go β this is the whole roster π
model_idβ the device instance. like, which chip are we even talking about rn.bq256xx_regmap_configβ the regmap configuration struct. the map to the registers, iykyk.bq256xx_get_ichgβ pointer to the instance-specificget_ichgfunction.bq256xx_get_iindpmβ pointer to the instance-specificget_iindpmfunction.bq256xx_get_vbatregβ pointer to the instance-specificget_vbatregfunction.bq256xx_get_itermβ pointer to the instance-specificget_itermfunction.bq256xx_get_iprechgβ pointer to the instance-specificget_iprechgfunction.bq256xx_get_vindpmβ pointer to the instance-specificget_vindpmfunction.bq256xx_set_ichgβ pointer to the instance-specificset_ichgfunction.bq256xx_set_iindpmβ pointer to the instance-specificset_iindpmfunction.bq256xx_set_vbatregβ pointer to the instance-specificset_vbatregfunction.bq256xx_set_itermβ pointer to the instance-specificset_itermfunction.bq256xx_set_iprechgβ pointer to the instance-specificset_iprechgfunction.bq256xx_set_vindpmβ pointer to the instance-specificset_vindpmfunction.bq256xx_set_charge_typeβ pointer to the instance-specificset_charge_typefunction.bq256xx_set_ts_ignoreβ pointer to the instance-specificset_ts_ignorefunction.bq256xx_def_ichgβ defaultichgvalue in microamps.bq256xx_def_iindpmβ defaultiindpmvalue in microamps.bq256xx_def_vbatregβ defaultvbatregvalue in microvolts.bq256xx_def_itermβ defaultitermvalue in microamps.bq256xx_def_iprechgβ defaultiprechgvalue in microamps.bq256xx_def_vindpmβ defaultvindpmvalue in microvolts.bq256xx_max_ichgβ maximum charge current in microamps.bq256xx_max_vbatregβ maximum battery regulation voltage in microvolts.has_usb_detectβ indicates whether the device has BC1.2 detection. π
lowkey important: the*_def_*ones are microamps exceptbq256xx_def_vbatregandbq256xx_def_vindpm, which are microvolts. don't mix 'em up bestie π
π SEE ALSO π
- Kernel file
./drivers/power/supply/bq256xx_charger.cstructbq256xx_init_data(9) struct bq256xx_state(9)struct bq256xx_device(9)
go read those next, fr fr β they're the friend group this struct rolls with π
that's the whole page bestie, slay π
β¨ this little number came out of ./drivers/power/supply, dated October 2026 β iconic behavior, no notes ππ¦
π¦ 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