EMILE/second/driver.h
2007-10-08 13:20:24 +00:00

21 lines
391 B
C

/*
*
* (c) 2005-2007 Laurent Vivier <Laurent@lvivier.info>
*
*/
static inline int refnum_to_scsi_id(signed short refnum)
{
return (~refnum) - 32;
}
static inline signed short scsi_id_to_refnum(int scsi_id)
{
return ~((signed short)scsi_id + 32);
}
extern signed short drive_to_refnum(int drive);
extern int refnum_to_drive(signed short refnum);
extern void turn_off_interrupts();