Skip to content

Commit b420844

Browse files
committed
Assertion failed : at file: chip/a64_ehci.c:5008
1 parent 19f4c76 commit b420844

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ TODO
7373

7474
https://github.com/lupyuen/pinephone-nuttx-usb/blob/b80499b3b8ec837fe2110e9476e8a6ad0f194cde/a64_ehci.c#L186-L200
7575

76+
TODO
77+
78+
```text
79+
DEBUGASSERT(sizeof(struct ehci_overlay_s) == SIZEOF_EHCI_OVERLAY);
80+
```
81+
82+
TODO
83+
84+
```text
85+
sizeof(struct ehci_overlay_s)=32
86+
```
87+
7688
# Output Log
7789

7890
```text

a64_ehci.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4988,6 +4988,18 @@ struct usbhost_connection_s *a64_ehci_initialize(int controller)
49884988

49894989
_info("sizeof(struct a64_qh_s)=%d\n", sizeof(struct a64_qh_s));////
49904990
_info("sizeof(struct a64_qtd_s)=%d\n", sizeof(struct a64_qtd_s));////
4991+
_info("sizeof(struct ehci_itd_s)=%d\n", sizeof(struct ehci_itd_s));////
4992+
_info("sizeof(struct ehci_sitd_s)=%d\n", sizeof(struct ehci_sitd_s));////
4993+
_info("sizeof(struct ehci_qtd_s)=%d\n", sizeof(struct ehci_qtd_s));////
4994+
_info("sizeof(struct ehci_overlay_s)=%d\n", sizeof(struct ehci_overlay_s));////
4995+
_info("sizeof(struct ehci_qh_s)=%d\n", sizeof(struct ehci_qh_s));////
4996+
_info("sizeof(struct ehci_fstn_s)=%d\n", sizeof(struct ehci_fstn_s));////
4997+
DEBUGASSERT(sizeof(struct ehci_itd_s) == SIZEOF_EHCI_ITD_S);////
4998+
DEBUGASSERT(sizeof(struct ehci_sitd_s) == SIZEOF_EHCI_SITD_S);////
4999+
DEBUGASSERT(sizeof(struct ehci_qtd_s) == SIZEOF_EHCI_QTD_S);////
5000+
DEBUGASSERT(sizeof(struct ehci_overlay_s) == 32);////
5001+
DEBUGASSERT(sizeof(struct ehci_qh_s) == 48);////
5002+
DEBUGASSERT(sizeof(struct ehci_fstn_s) == SIZEOF_EHCI_FSTN_S);////
49915003

49925004
/* Sanity checks */
49935005

0 commit comments

Comments
 (0)