diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2004-02-07 03:43:27 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2004-02-07 03:43:27 +0000 |
| commit | 4e8a2b48a73c10502aeb0045c9f6dc8c7c7b2f4a (patch) | |
| tree | 3af679ab17cb5f340445a77c3f70a14a61a75d12 /sys/dev | |
| parent | cc330eadff2a39f891fd85fe3282fedd4aa03113 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/isp/isp_ioctl.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/isp/isp_ioctl.h b/sys/dev/isp/isp_ioctl.h index f4d3c15acf8e..93ccc53f9ceb 100644 --- a/sys/dev/isp/isp_ioctl.h +++ b/sys/dev/isp/isp_ioctl.h @@ -63,8 +63,8 @@ #define ISP_SETROLE _IOWR(ISP_IOC, 4, int) #define ISP_ROLE_NONE 0x0 -#define ISP_ROLE_INITIATOR 0x1 -#define ISP_ROLE_TARGET 0x2 +#define ISP_ROLE_TARGET 0x1 +#define ISP_ROLE_INITIATOR 0x2 #define ISP_ROLE_BOTH (ISP_ROLE_TARGET|ISP_ROLE_INITIATOR) #ifndef ISP_DEFAULT_ROLES #define ISP_DEFAULT_ROLES ISP_ROLE_BOTH @@ -115,8 +115,10 @@ typedef struct { * only), 24 bit Port ID and Node and Port WWNs. */ struct isp_fc_device { - u_int32_t loopid; /* 0..255 */ - u_int32_t portid; /* 24 bit Port ID */ + u_int32_t loopid; /* 0..255 */ + u_int32_t : 6, + role : 2, + portid : 24; /* 24 bit Port ID */ u_int64_t node_wwn; u_int64_t port_wwn; }; |
