home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.7z / ftp.whtech.com / emulators / v9t9 / linux / sources / V9t9 / source / dsr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-10-19  |  1008 b   |  45 lines

  1.  
  2. /*
  3.     DSR (device service routine) emulation.  All devices that
  4.     conform to the TI standard file API have hardware
  5.     emulation (through CRU traps) and possibly software
  6.     emulation (through the DSR routine).
  7.     
  8.     The way to add a new DSR is:  (1) make a new CRU module
  9.     for the I/O address space (like >1200...>12FF).  The handler
  10.     for SBO >0 should turn on the ROM for the DSR at >4000 and
  11.     update currentdsr.  See examples.  (2) possibly add a handler
  12.     
  13. */
  14.  
  15. #ifndef __DSR_H__
  16. #define __DSR_H__
  17.  
  18. #include "centry.h"
  19.  
  20. void    dsr_set_active(vmModule *dsrmodule);
  21.  
  22. int        dsr_get_disk_count(void);        
  23.  
  24. // disks 1..x are valid for these calls
  25.  
  26. #ifdef REAL_DISK_DSR
  27. int        dsr_is_real_disk(int disk);        // disk==1..5
  28. #endif
  29.  
  30. #ifdef EMU_DISK_DSR
  31. int        dsr_is_emu_disk(int disk);        // disk==1..5
  32. #endif
  33.  
  34. const char *dsr_get_disk_info(int disk);
  35. int       dsr_set_disk_info(int disk, const char *path);
  36.  
  37. extern OSPathSpec emudiskpath[5];
  38.  
  39. extern char *diskimagepath;
  40. extern char diskname[3][OS_NAMESIZE];
  41.  
  42. #include "cexit.h"
  43.  
  44. #endif
  45.