2005-10-06 21:03:19 +00:00
|
|
|
/*
|
|
|
|
*
|
2007-10-08 12:38:22 +00:00
|
|
|
* (c) 2005-2007 Laurent Vivier <Laurent@lvivier.info>
|
2005-10-06 21:03:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-10-08 12:38:22 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2007-10-08 13:20:24 +00:00
|
|
|
extern signed short drive_to_refnum(int drive);
|
|
|
|
extern int refnum_to_drive(signed short refnum);
|
|
|
|
|
2005-10-10 21:42:58 +00:00
|
|
|
extern void turn_off_interrupts();
|