mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-28 08:32:38 +00:00
9bd9755dbb
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU>
21 lines
388 B
C
21 lines
388 B
C
/*
|
|
*
|
|
* (c) 2005-2007 Laurent Vivier <Laurent@Vivier.EU>
|
|
*
|
|
*/
|
|
|
|
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();
|