home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextDeveloper / Examples / DriverKit / AMDPCSCSIDriver / AMDPCSCSIDriver_reloc.tproj / ioPorts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-10  |  662 b   |  33 lines

  1. /*
  2.  * Allow normal functions for i/o ops for debugging.
  3.  */
  4.  
  5. #define    USE_COMPILED_IO        DEBUG
  6.  
  7. #if    USE_COMPILED_IO
  8.  
  9. #define inb    _inb
  10. #define inw    _inw
  11. #define inl    _inl
  12. #define outb    _outb
  13. #define outw    _outw
  14. #define outl    _outl
  15.  
  16. extern unsigned char  _inb(unsigned short port);
  17. extern unsigned short _inw(unsigned short port);
  18. extern unsigned long  _inl(unsigned short port);
  19. extern void _outb(unsigned short port, unsigned char data);
  20. extern void _outs(unsigned short port, unsigned short data);
  21. extern void _outl(unsigned short port, unsigned long data);
  22.  
  23.  
  24. /*
  25.  * Use ioPorts.c.
  26.  */
  27.  
  28. #else    USE_COMPILED_IO
  29.  
  30. #import <driverkit/i386/ioPorts.h>
  31.  
  32. #endif    USE_COMPILED_IO
  33.