/[gxemul]/upstream/0.4.4/src/include/diskimage.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/0.4.4/src/include/diskimage.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by dpavlin, Mon Oct 8 16:18:11 2007 UTC revision 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC
# Line 2  Line 2 
2  #define DISKIMAGE_H  #define DISKIMAGE_H
3    
4  /*  /*
5   *  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.   *  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.
6   *   *
7   *  Redistribution and use in source and binary forms, with or without   *  Redistribution and use in source and binary forms, with or without
8   *  modification, are permitted provided that the following conditions are met:   *  modification, are permitted provided that the following conditions are met:
# Line 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: diskimage.h,v 1.28 2005/05/25 06:40:19 debug Exp $   *  $Id: diskimage.h,v 1.32 2006/09/05 06:13:27 debug Exp $
32   *   *
33   *  Generic disk image functions.  (See diskimage.c for more info.)   *  Generic disk image functions.  (See diskimage.c for more info.)
34   */   */
# Line 116  int diskimage_scsicommand(struct cpu *cp Line 116  int diskimage_scsicommand(struct cpu *cp
116          struct scsi_transfer *);          struct scsi_transfer *);
117  int diskimage_access(struct machine *machine, int id, int type, int writeflag,  int diskimage_access(struct machine *machine, int id, int type, int writeflag,
118          off_t offset, unsigned char *buf, size_t len);          off_t offset, unsigned char *buf, size_t len);
119  int diskimage_exist(struct machine *machine, int scsi_id, int type);  int diskimage_exist(struct machine *machine, int id, int type);
120  int diskimage_bootdev(struct machine *machine, int *typep);  int diskimage_bootdev(struct machine *machine, int *typep);
121  int diskimage_add(struct machine *machine, char *fname);  int diskimage_add(struct machine *machine, char *fname);
122    int diskimage_getname(struct machine *machine, int id, int type,
123            char *buf, size_t bufsize);
124  int diskimage_is_a_cdrom(struct machine *machine, int id, int type);  int diskimage_is_a_cdrom(struct machine *machine, int id, int type);
125  int diskimage_is_a_tape(struct machine *machine, int id, int type);  int diskimage_is_a_tape(struct machine *machine, int id, int type);
126  void diskimage_dump_info(struct machine *machine);  void diskimage_dump_info(struct machine *machine);
# Line 137  void diskimage_dump_info(struct machine Line 139  void diskimage_dump_info(struct machine
139  #define SCSICMD_MODE_SELECT             0x15  #define SCSICMD_MODE_SELECT             0x15
140  #define SCSICMD_MODE_SENSE              0x1a  #define SCSICMD_MODE_SENSE              0x1a
141  #define SCSICMD_START_STOP_UNIT         0x1b  #define SCSICMD_START_STOP_UNIT         0x1b
142    #define SCSICMD_PREVENT_ALLOW_REMOVE    0x1e
143    #define SCSICMD_MODE_SENSE10            0x5a
144    
145  #define SCSICMD_SYNCHRONIZE_CACHE       0x35  #define SCSICMD_SYNCHRONIZE_CACHE       0x35
146    
# Line 146  void diskimage_dump_info(struct machine Line 150  void diskimage_dump_info(struct machine
150  /*  SCSI CD-ROM commands:  */  /*  SCSI CD-ROM commands:  */
151  #define SCSICDROM_READ_SUBCHANNEL       0x42  #define SCSICDROM_READ_SUBCHANNEL       0x42
152  #define SCSICDROM_READ_TOC              0x43  #define SCSICDROM_READ_TOC              0x43
153    #define SCSICDROM_READ_DISCINFO         0x51
154    #define SCSICDROM_READ_TRACKINFO        0x52
155    
156  /*  SCSI tape commands:  */  /*  SCSI tape commands:  */
157  #define SCSICMD_REWIND                  0x01  #define SCSICMD_REWIND                  0x01

Legend:
Removed from v.6  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.26