| 733 | } |
| 734 | |
| 735 | void ETHSendAsync(void* addr, s32 length, void (*callback2)(u8)) { |
| 736 | BOOL disabled; |
| 737 | |
| 738 | //ASSERTLINE(985, !__sendbusy); |
| 739 | //ASSERTLINE(986, ((u32) addr % 32) == 0); |
| 740 | DCStoreRange(addr, length); |
| 741 | |
| 742 | disabled = OSDisableInterrupts(); |
| 743 | __sendbusy = TRUE; |
| 744 | __sendadr = addr; |
| 745 | __sendlen = length < 60 ? 60 : length; |
| 746 | __sendcallback = callback2; |
| 747 | sendUpdate = TRUE; |
| 748 | |
| 749 | if (lock()) { |
| 750 | unlock(); |
| 751 | } |
| 752 | |
| 753 | OSRestoreInterrupts(disabled); |
| 754 | } |
| 755 | |
| 756 | static void sendsub0(void) { |
| 757 | u32 etcmd; |
no test coverage detected