home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Other / mCD / Source / scsi_cd.subproj / ListScsi.h < prev    next >
Encoding:
Text File  |  1994-03-16  |  1.1 KB  |  34 lines

  1.  
  2. #import <appkit/appkit.h>
  3. #import "scsi_commands.h"
  4.  
  5. @interface ListScsi:Object
  6. {
  7.     struct inquiry_all_reply inquireAllResult;
  8.     struct esense_reply inquire_Ereply;
  9.     short  mapDiskToScsiId[INQ_ALL_MAX_SCSI_CNT];
  10.  
  11.     char   testBuff[120];
  12. }
  13.  
  14. - init;
  15. - (int) getTypeOfDev:(int) devNumber;
  16. - (int) getTypeOfDev:(int) devNumber retCharDescription:(char *)devStr ;
  17.  
  18. @end
  19.  
  20. /* some defines copied from bsd/dev/scsireg.h */
  21. #define    DEVTYPE_DISK        0x00    /* read/write disks */
  22. #define    DEVTYPE_TAPE        0x01    /* tapes and other sequential devices*/
  23. #define    DEVTYPE_PRINTER        0x02    /* printers */
  24. #define    DEVTYPE_PROCESSOR    0x03    /* cpu's */
  25. #define    DEVTYPE_WORM        0x04    /* write-once optical disks */
  26. #define    DEVTYPE_CDROM        0x05    /* cd rom's, etc */
  27. #define DEVTYPE_SCANNER        0x06
  28. #define DEVTYPE_OPTICAL        0x07    /* other optical storage */
  29. #define DEVTYPE_CHANGER        0x08    /* jukebox */
  30. #define DEVTYPE_COMM        0x09    /* communication device */
  31. #define DEVTYPE_GRAPH_A        0x0a    /* ASC IT8 graphics */
  32. #define DEVTYPE_GRAPH_B        0x0b    /* ASC IT8 graphics */
  33. #define DEVTYPE_NOTPRESENT      0x1f    /* logical unit not present */
  34.