mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-03 12:31:57 +00:00
Find scsi id accorind refnum and vice-versa
This commit is contained in:
parent
52a797f3eb
commit
636b4d0868
@ -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();
|
extern void turn_off_interrupts();
|
||||||
|
Loading…
Reference in New Issue
Block a user