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

  1. #ifndef __CRU_H__
  2. #define __CRU_H__
  3.  
  4. #include "v9t9_types.h"
  5.  
  6. #include "9901.h"
  7.  
  8. #include "centry.h"
  9.  
  10. void    cruwrite(u32 addr,u32 val,u32 num);
  11.  
  12. u32        cruread(u32 addr,u32 num);
  13.  
  14. typedef    u32    (crufunc)(u32 addr,u32 data,u32 num);
  15.  
  16. #define    CRU_READ 1
  17. #define    CRU_WRITE 2
  18.  
  19. /*
  20.     range is in BITS, not address units.  base - base+range*2
  21. */
  22. int        cruadddevice(int rw, u32 base, u32 range, crufunc *func);
  23. int        crudeldevice(int rw, u32 base, u32 range, crufunc *func);
  24.  
  25. void    cruinit(void);
  26.  
  27. #include "cexit.h"
  28.  
  29. #endif
  30.