1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
16:
17: 18: 19: 20: 21:
22:
23: #ifndef __TM_TMONITOR_H__
24: #define __TM_TMONITOR_H__
25:
26: #include <basic.h>
27: #include <stdarg.h>
28:
29: #ifdef __cplusplus
30: extern "C" {
31: #endif
32:
33: #define L_DEVNM 8
34:
35: 36: 37:
38: typedef struct BootInfo {
39: UB devnm[L_DEVNM];
40: INT part; 41:
42: INT start; 43:
44: INT secsz;
45: } BootInfo;
46:
47: 48: 49:
50: #define TMEF_PORTBPS 0x00U
51: #define TMEF_RDAINFO 0x01U
52: #define TMEF_PCIINFO 0x02U
53: #define TMEF_DIPSW 0x10U
54: #define TMEF_WROM 0x20U
55:
56: 57: 58:
59: typedef struct {
60: UW rd_type;
61: UW rd_blksz;
62: UW rd_saddr;
63: UW rd_eaddr;
64: } RdaInfo;
65:
66: 67: 68:
69: #define CADDR(bus, dev, func) (((bus) << 8) | ((dev) << 3) | (func))
70:
71: typedef struct {
72: UH caddr;
73: UH vendor;
74: UH devid;
75: UH devclass;
76: } PciInfo;
77:
78: 79: 80:
81: IMPORT void tm_monitor( void );
82: IMPORT INT tm_getchar( INT wait );
83: IMPORT INT tm_putchar( INT c );
84: IMPORT INT tm_getline( UB *buff );
85: IMPORT INT tm_putstring( const UB *buff );
86: IMPORT INT tm_command( const UB *buff );
87: IMPORT INT tm_readdisk( const UB *dev, INT sec, INT nsec, void *addr );
88: IMPORT INT tm_writedisk( const UB *dev, INT sec, INT nsec, void *addr );
89: IMPORT INT tm_infodisk( const UB *dev, INT *blksz, INT *nblks );
90: IMPORT void tm_exit( INT mode );
91: IMPORT INT tm_extsvc( INT fno, INT par1, INT par2, INT par3 );
92:
93: 94: 95:
96: IMPORT int tm_vprintf( const char *format, va_list ap );
97: IMPORT int tm_vsprintf( char *str, const char *format, va_list ap );
98: IMPORT int tm_sprintf( char *str, const char *format, ... );
99: IMPORT int tm_printf( const char *format, ... );
100: #define bms_printf tm_printf
101:
102: #ifdef __cplusplus
103: }
104: #endif
105: #endif