aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2004-02-07 03:38:39 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2004-02-07 03:38:39 +0000
commite0d3cfb7beca04cd6e25f04d497deada0b19e474 (patch)
tree7579469536be1d736ad2cf0f9beeacdcb86f7a88
parent8f6a5435e70dbb7b4cb31818c98d3a7019fd4709 (diff)
downloadsrc-e0d3cfb7beca04cd6e25f04d497deada0b19e474.tar.gz
src-e0d3cfb7beca04cd6e25f04d497deada0b19e474.zip
Change role defines so that they better match class 3 service parameters.
Add ISPCTL_GET_PDB isp_control operation. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=125544
-rw-r--r--sys/dev/isp/ispvar.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h
index 5f21d56e958b..f44c24abe0ee 100644
--- a/sys/dev/isp/ispvar.h
+++ b/sys/dev/isp/ispvar.h
@@ -487,8 +487,8 @@ typedef struct ispsoftc {
*
*/
#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)
#define ISP_ROLE_EITHER ISP_ROLE_BOTH
#ifndef ISP_DEFAULT_ROLES
@@ -679,7 +679,8 @@ typedef enum {
ISPCTL_SEND_LIP, /* Send a LIP */
ISPCTL_GET_POSMAP, /* Get FC-AL position map */
ISPCTL_RUN_MBOXCMD, /* run a mailbox command */
- ISPCTL_TOGGLE_TMODE /* toggle target mode */
+ ISPCTL_TOGGLE_TMODE, /* toggle target mode */
+ ISPCTL_GET_PDB /* get a single port database entry */
} ispctl_t;
int isp_control(struct ispsoftc *, ispctl_t, void *);