1 /* 2 * Copyright 2021, Haiku, Inc. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef _HTIF_H_ 7 #define _HTIF_H_ 8 9 #include <SupportDefs.h> 10 11 12 // host-target interface 13 struct HtifRegs 14 { 15 uint32 toHostLo; 16 uint32 toHostHi; 17 uint32 fromHostLo; 18 uint32 fromHostHi; 19 }; 20 21 22 extern HtifRegs* volatile gHtifRegs; 23 24 25 uint64 HtifCmd(uint32 device, uint8 cmd, uint32 arg); 26 27 void HtifShutdown(); 28 void HtifOutChar(char ch); 29 void HtifOutString(const char* str); 30 void HtifOutString(const char* str, size_t len); 31 32 33 #endif // _HTIF_H_ 34