From 28f17c5bc2351a6788a7fe5917d7580db991363e Mon Sep 17 00:00:00 2001 From: mjacob Date: Thu, 1 Mar 2001 02:15:58 +0000 Subject: Go to a default port and default node wwn model. Eliminate isp_name and isp_unit and just store the device_t, fer gosh sakes.... Include sys/bus.h for use by isp_pci.c. --- sys/dev/isp/isp_freebsd.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys/dev/isp') diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h index 85a0066..e29c55b 100644 --- a/sys/dev/isp/isp_freebsd.h +++ b/sys/dev/isp/isp_freebsd.h @@ -28,7 +28,7 @@ #define _ISP_FREEBSD_H #define ISP_PLATFORM_VERSION_MAJOR 5 -#define ISP_PLATFORM_VERSION_MINOR 5 +#define ISP_PLATFORM_VERSION_MINOR 6 /* * We're not ready for primetime yet @@ -48,6 +48,7 @@ #include #include #include +#include #include #include @@ -94,9 +95,9 @@ typedef struct tstate { struct isposinfo { struct ispsoftc * next; - u_int64_t default_wwn; - char name[8]; - int unit; + u_int64_t default_port_wwn; + u_int64_t default_node_wwn; + device_t dev; struct cam_sim *sim; struct cam_path *path; struct cam_sim *sim2; @@ -256,8 +257,8 @@ 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)->isp_osinfo.default_wwn +#define DEFAULT_NODEWWN(isp) (isp)->isp_osinfo.default_node_wwn +#define DEFAULT_PORTWWN(isp) (isp)->isp_osinfo.default_port_wwn #define ISP_NODEWWN(isp) FCPARAM(isp)->isp_nodewwn #define ISP_PORTWWN(isp) FCPARAM(isp)->isp_portwwn @@ -289,8 +290,7 @@ struct isposinfo { #define isp_path isp_osinfo.path #define isp_sim2 isp_osinfo.sim2 #define isp_path2 isp_osinfo.path2 -#define isp_unit isp_osinfo.unit -#define isp_name isp_osinfo.name +#define isp_dev isp_osinfo.dev /* * prototypes for isp_pci && isp_freebsd to share -- cgit v1.1