mirror of
https://github.com/vivier/EMILE.git
synced 2026-10-22 04:02:33 +00:00
Find scsi id accorind refnum and vice-versa
This commit is contained in:
1 parent
52a797f3eb
commit
636b4d0868
1 file changed
+11
-1
+11
-1
@@ -1,7 +1,17 @@
|
||||
/*
|
||||
*
|
||||
* (c) 2005 Laurent Vivier <Laurent@lvivier.info>
|
||||
* (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 void turn_off_interrupts();
|
||||
Reference in new issue
Block a user