diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2000-10-12 23:59:40 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2000-10-12 23:59:40 +0000 |
| commit | e5d4e197148860997701592e0ecb1b7e6613ffce (patch) | |
| tree | 90bea732038b22ad41cd1be90a416465bcb2b8f0 /sys/dev | |
| parent | c914d4237df04d546ca7d22e03367c3667b0c803 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/isp/isp_freebsd.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h index 3d83b524d677..fb1f9d438f63 100644 --- a/sys/dev/isp/isp_freebsd.h +++ b/sys/dev/isp/isp_freebsd.h @@ -228,9 +228,9 @@ struct isposinfo { #define DEFAULT_IID(x) 7 #define DEFAULT_LOOPID(x) 109 #define DEFAULT_NODEWWN(isp) (isp)->isp_osinfo.default_wwn -#define DEFAULT_PORTWWN(isp) \ - isp_port_from_node_wwn((isp), (isp)->isp_osinfo.default_wwn) -#define PORT_FROM_NODE_WWN isp_port_from_node_wwn +#define DEFAULT_PORTWWN(isp) (isp)->isp_osinfo.default_wwn +#define ISP_NODEWWN(isp) FCPARAM(isp)->isp_nodewwn +#define ISP_PORTWWN(isp) FCPARAM(isp)->isp_portwwn #define ISP_UNSWIZZLE_AND_COPY_PDBP(isp, dest, src) \ if((void *)src != (void *)dest) bcopy(src, dest, sizeof (isp_pdb_t)) @@ -400,18 +400,6 @@ strncat(char *d, const char *s, size_t c) return (t); } -static INLINE u_int64_t isp_port_from_node_wwn(struct ispsoftc *, u_int64_t); -static INLINE u_int64_t -isp_port_from_node_wwn(struct ispsoftc *isp, u_int64_t node_wwn) -{ - u_int64_t rv = node_wwn; - if ((node_wwn >> 60) == 2) { - rv = node_wwn | - (((u_int64_t)(isp->isp_unit+1)) << 48); - } - return (rv); -} - /* * Common inline functions */ |
