ispvar.h (54671) | ispvar.h (55364) |
---|---|
1/* $FreeBSD: head/sys/dev/isp/ispvar.h 54671 1999-12-16 05:42:02Z mjacob $ */ | 1/* $FreeBSD: head/sys/dev/isp/ispvar.h 55364 2000-01-03 22:13:40Z mjacob $ */ |
2/* 3 * Soft Definitions for for Qlogic ISP SCSI adapters. 4 * 5 * Copyright (c) 1997, 1998, 1999 by Matthew Jacob 6 * NASA/Ames Research Center 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 40 unchanged lines hidden (view full) --- 50#ifdef __linux__ 51#include "ispmbox.h" 52#ifdef ISP_TARGET_MODE 53#include "isp_target.h" 54#endif 55#endif 56 57#define ISP_CORE_VERSION_MAJOR 1 | 2/* 3 * Soft Definitions for for Qlogic ISP SCSI adapters. 4 * 5 * Copyright (c) 1997, 1998, 1999 by Matthew Jacob 6 * NASA/Ames Research Center 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 40 unchanged lines hidden (view full) --- 50#ifdef __linux__ 51#include "ispmbox.h" 52#ifdef ISP_TARGET_MODE 53#include "isp_target.h" 54#endif 55#endif 56 57#define ISP_CORE_VERSION_MAJOR 1 |
58#define ISP_CORE_VERSION_MINOR 11 | 58#define ISP_CORE_VERSION_MINOR 12 |
59 60/* 61 * Vector for bus specific code to provide specific services. 62 */ 63struct ispsoftc; 64struct ispmdvec { 65 u_int16_t (*dv_rd_reg) __P((struct ispsoftc *, int)); 66 void (*dv_wr_reg) __P((struct ispsoftc *, int, u_int16_t)); --- 377 unchanged lines hidden (view full) --- 444 * Assumes all locks are held and that no reentrancy issues need be dealt with. 445 * 446 */ 447typedef enum { 448 ISPCTL_RESET_BUS, /* Reset Bus */ 449 ISPCTL_RESET_DEV, /* Reset Device */ 450 ISPCTL_ABORT_CMD, /* Abort Command */ 451 ISPCTL_UPDATE_PARAMS, /* Update Operating Parameters */ | 59 60/* 61 * Vector for bus specific code to provide specific services. 62 */ 63struct ispsoftc; 64struct ispmdvec { 65 u_int16_t (*dv_rd_reg) __P((struct ispsoftc *, int)); 66 void (*dv_wr_reg) __P((struct ispsoftc *, int, u_int16_t)); --- 377 unchanged lines hidden (view full) --- 444 * Assumes all locks are held and that no reentrancy issues need be dealt with. 445 * 446 */ 447typedef enum { 448 ISPCTL_RESET_BUS, /* Reset Bus */ 449 ISPCTL_RESET_DEV, /* Reset Device */ 450 ISPCTL_ABORT_CMD, /* Abort Command */ 451 ISPCTL_UPDATE_PARAMS, /* Update Operating Parameters */ |
452#ifdef ISP_TARGET_MODE 453 ISPCTL_ENABLE_LUN, /* enable a LUN */ 454 ISPCTL_MODIFY_LUN, /* enable a LUN */ 455#endif 456 ISPCTL_FCLINK_TEST /* Test FC Link Status */ | 452 ISPCTL_FCLINK_TEST, /* Test FC Link Status */ 453 ISPCTL_PDB_SYNC, /* Synchronize Port Database */ 454 ISPCTL_TOGGLE_TMODE /* toggle target mode */ |
457} ispctl_t; 458int isp_control __P((struct ispsoftc *, ispctl_t, void *)); 459 460 461/* 462 * Platform Dependent to Internal to External Control Function 463 * (each platform must provide such a function) 464 * --- 4 unchanged lines hidden (view full) --- 469typedef enum { 470 ISPASYNC_NEW_TGT_PARAMS, 471 ISPASYNC_BUS_RESET, /* Bus Was Reset */ 472 ISPASYNC_LOOP_DOWN, /* FC Loop Down */ 473 ISPASYNC_LOOP_UP, /* FC Loop Up */ 474 ISPASYNC_PDB_CHANGED, /* FC Port Data Base Changed */ 475 ISPASYNC_CHANGE_NOTIFY, /* FC SNS Change Notification */ 476 ISPASYNC_FABRIC_DEV, /* FC New Fabric Device */ | 455} ispctl_t; 456int isp_control __P((struct ispsoftc *, ispctl_t, void *)); 457 458 459/* 460 * Platform Dependent to Internal to External Control Function 461 * (each platform must provide such a function) 462 * --- 4 unchanged lines hidden (view full) --- 467typedef enum { 468 ISPASYNC_NEW_TGT_PARAMS, 469 ISPASYNC_BUS_RESET, /* Bus Was Reset */ 470 ISPASYNC_LOOP_DOWN, /* FC Loop Down */ 471 ISPASYNC_LOOP_UP, /* FC Loop Up */ 472 ISPASYNC_PDB_CHANGED, /* FC Port Data Base Changed */ 473 ISPASYNC_CHANGE_NOTIFY, /* FC SNS Change Notification */ 474 ISPASYNC_FABRIC_DEV, /* FC New Fabric Device */ |
477 ISPASYNC_TARGET_CMD, /* New target command */ 478 ISPASYNC_TARGET_EVENT /* New target event */ | 475 ISPASYNC_TARGET_MESSAGE, /* target message */ 476 ISPASYNC_TARGET_EVENT, /* target asynchronous event */ 477 ISPASYNC_TARGET_ACTION /* other target command action */ |
479} ispasync_t; 480int isp_async __P((struct ispsoftc *, ispasync_t, void *)); 481 482/* 483 * lost command routine (XXXX IN TRANSITION XXXX) 484 */ 485void isp_lostcmd __P((struct ispsoftc *, ISP_SCSI_XFER_T *)); 486 487#endif /* _ISPVAR_H */ | 478} ispasync_t; 479int isp_async __P((struct ispsoftc *, ispasync_t, void *)); 480 481/* 482 * lost command routine (XXXX IN TRANSITION XXXX) 483 */ 484void isp_lostcmd __P((struct ispsoftc *, ISP_SCSI_XFER_T *)); 485 486#endif /* _ISPVAR_H */ |