mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
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.
This commit is contained in:
parent
3c75bb14be
commit
c9a6d60b09
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73246
@ -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 <sys/malloc.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/bus.h>
|
||||
|
||||
#include <machine/bus_memio.h>
|
||||
#include <machine/bus_pio.h>
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user