mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
Fix SET_IID_VAL/SET_BUS_VAL macros to usable.
MFC after: 4 weeks
This commit is contained in:
parent
df5c1fb10b
commit
2332ac8c61
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83005
|
@ -333,8 +333,8 @@ typedef struct {
|
|||
*/
|
||||
#define GET_IID_VAL(x) (x & 0x3f)
|
||||
#define GET_BUS_VAL(x) ((x >> 7) & 0x1)
|
||||
#define SET_IID_VAL(y, x) (y | (x & 0x3f))
|
||||
#define SET_BUS_VAL(y, x) (y | ((x & 0x1) << 7))
|
||||
#define SET_IID_VAL(y, x) y = ((y & ~0x3f) | (x & 0x3f))
|
||||
#define SET_BUS_VAL(y, x) y = ((y & 0x3f) | ((x & 0x1) << 7))
|
||||
|
||||
/*
|
||||
* ct_flags values
|
||||
|
|
Loading…
Reference in a new issue