cleanup(hcisu_h2): name tHCISU_H2_CB receive/open fields #926

Merged
coah80 merged 1 commits from cleanup/hcisu-h2-cb-fields into main 2026-10-02 19:41:50 +00:00
coah80 commented 2026-10-02 19:32:53 +00:00 (Migrated from github.com)

Summary

Rename tHCISU_H2_CB at_* placeholders from clear assign/use evidence in hcisu_h2_init / hcisu_h2_receive_msg:

old new evidence
at_0x00 p_rx_msg HC_BT_HDR* per-pipe RX buffer
at_0x0c bytes_left countdown to end of preamble/payload
at_0x12 buf_size set from bufSize in init
at_0x14 pkt_type 1-based index into preamble/evt tables
at_0x17 len_hi high length byte while assembling ACL len
at_0x1a rx_state per-pipe RX state machine
at_0x1e open_state 0 closed / 2 open
at_0x1f task_id set from taskId; GKI_send_msg target
at_0x20 mbox set from mbox

Left uusb / p_cfg at_* alone (separate structs).

Verification

  • ninja all_source build/43U/ok
  • DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d
  • hcisu_h2 Matching 100%
## Summary Rename `tHCISU_H2_CB` `at_*` placeholders from clear assign/use evidence in `hcisu_h2_init` / `hcisu_h2_receive_msg`: | old | new | evidence | |-----|-----|----------| | `at_0x00` | `p_rx_msg` | `HC_BT_HDR*` per-pipe RX buffer | | `at_0x0c` | `bytes_left` | countdown to end of preamble/payload | | `at_0x12` | `buf_size` | set from `bufSize` in init | | `at_0x14` | `pkt_type` | 1-based index into preamble/evt tables | | `at_0x17` | `len_hi` | high length byte while assembling ACL len | | `at_0x1a` | `rx_state` | per-pipe RX state machine | | `at_0x1e` | `open_state` | 0 closed / 2 open | | `at_0x1f` | `task_id` | set from `taskId`; `GKI_send_msg` target | | `at_0x20` | `mbox` | set from `mbox` | Left `uusb` / `p_cfg` `at_*` alone (separate structs). ## Verification - `ninja all_source build/43U/ok` - DOL sha1 `26116613f624061ba99c8d1a299aaa6efa85670d` - `hcisu_h2` Matching 100%
coah80 commented 2026-10-02 19:41:47 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.