system.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef _WONX_SYS_SYSTEM_H_
  2. #define _WONX_SYS_SYSTEM_H_
  3. #include "service.h"
  4. /*****************************************************************************/
  5. /* 年眶の年盗 */
  6. /*****************************************************************************/
  7. enum {
  8. SYS_INT_SENDREADY = 0,
  9. SYS_INT_KEY,
  10. SYS_INT_CASETTE,
  11. SYS_INT_RECEIVEREADY,
  12. SYS_INT_DISPLINE,
  13. SYS_INT_TIMER_COUNTUP,
  14. SYS_INT_VBLANK,
  15. SYS_INT_HBLANK_COUNTUP
  16. };
  17. typedef struct {
  18. void (*callback)(void);
  19. int cs;
  20. int ds;
  21. int reserve;
  22. } intvector_t;
  23. /*****************************************************************************/
  24. /* 高垂簇眶の离咐 */
  25. /*****************************************************************************/
  26. void sys_interrupt_set_hook(int type, intvector_t * vector,
  27. intvector_t * old_vector);
  28. void sys_interrupt_reset_hook(int type, intvector_t * old_vector);
  29. void sys_wait(unsigned int wait_time);
  30. unsigned long int sys_get_tick_count(void);
  31. void sys_sleep(void);
  32. void sys_set_sleep_time(int sleep_time);
  33. int sys_get_sleep_time(void);
  34. void sys_set_awake_key(int pattern);
  35. int sys_get_awake_key(void);
  36. void sys_set_keepalive_int(int pattern);
  37. void sys_get_ownerinfo(int size, char * buffer);
  38. int sys_suspend(int core);
  39. void sys_resume(int core);
  40. void sys_set_remote(int remote);
  41. unsigned int sys_get_remote(void);
  42. void * sys_alloc_iram(void * p, unsigned int size);
  43. void sys_free_iram(void * p);
  44. void * sys_get_my_iram(void);
  45. unsigned int sys_get_version(void);
  46. int sys_swap(int core);
  47. void sys_set_resume(unsigned int flags);
  48. unsigned int sys_get_resume(void);
  49. void bios_exit();
  50. #endif