mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
21 lines
391 B
C
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();
|