Deleted Added
full compact
ispvar.h (290054) ispvar.h (290993)
1/* $FreeBSD: head/sys/dev/isp/ispvar.h 290054 2015-10-27 18:32:03Z mav $ */
1/* $FreeBSD: head/sys/dev/isp/ispvar.h 290993 2015-11-17 16:33:46Z mav $ */
2/*-
3 * Copyright (c) 1997-2009 by Matthew Jacob
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *

--- 467 unchanged lines hidden (view full) ---

477 /*
478 * Scratch DMA mapped in area to fetch Port Database stuff, etc.
479 */
480 void * isp_scratch;
481 XS_DMA_ADDR_T isp_scdma;
482} fcparam;
483
484#define FW_CONFIG_WAIT 0
2/*-
3 * Copyright (c) 1997-2009 by Matthew Jacob
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *

--- 467 unchanged lines hidden (view full) ---

477 /*
478 * Scratch DMA mapped in area to fetch Port Database stuff, etc.
479 */
480 void * isp_scratch;
481 XS_DMA_ADDR_T isp_scdma;
482} fcparam;
483
484#define FW_CONFIG_WAIT 0
485#define FW_WAIT_AL_PA 1
485#define FW_WAIT_LINK 1
486#define FW_WAIT_LOGIN 2
487#define FW_READY 3
488#define FW_LOSS_OF_SYNC 4
489#define FW_ERROR 5
490#define FW_REINIT 6
491#define FW_NON_PART 7
492
493#define LOOP_NIL 0
486#define FW_WAIT_LOGIN 2
487#define FW_READY 3
488#define FW_LOSS_OF_SYNC 4
489#define FW_ERROR 5
490#define FW_REINIT 6
491#define FW_NON_PART 7
492
493#define LOOP_NIL 0
494#define LOOP_LIP_RCVD 1
495#define LOOP_PDB_RCVD 2
494#define LOOP_TESTING_LINK 1
495#define LOOP_LTEST_DONE 2
496#define LOOP_SCANNING_LOOP 3
497#define LOOP_LSCAN_DONE 4
498#define LOOP_SCANNING_FABRIC 5
499#define LOOP_FSCAN_DONE 6
500#define LOOP_SYNCING_PDB 7
501#define LOOP_READY 8
502
503#define TOPO_NL_PORT 0

--- 352 unchanged lines hidden (view full) ---

856 * ... ISPCTL_RESET_DEV, int channel, int target);
857 * Reset Device on this channel at this target.
858 * ... ISPCTL_ABORT_CMD, XS_T *xs);
859 * Abort active transaction described by xs.
860 * ... IPCTL_UPDATE_PARAMS);
861 * Update any operating parameters (speed, etc.)
862 * ... ISPCTL_FCLINK_TEST, int channel);
863 * Test FC link status on this channel
496#define LOOP_SCANNING_LOOP 3
497#define LOOP_LSCAN_DONE 4
498#define LOOP_SCANNING_FABRIC 5
499#define LOOP_FSCAN_DONE 6
500#define LOOP_SYNCING_PDB 7
501#define LOOP_READY 8
502
503#define TOPO_NL_PORT 0

--- 352 unchanged lines hidden (view full) ---

856 * ... ISPCTL_RESET_DEV, int channel, int target);
857 * Reset Device on this channel at this target.
858 * ... ISPCTL_ABORT_CMD, XS_T *xs);
859 * Abort active transaction described by xs.
860 * ... IPCTL_UPDATE_PARAMS);
861 * Update any operating parameters (speed, etc.)
862 * ... ISPCTL_FCLINK_TEST, int channel);
863 * Test FC link status on this channel
864 * ... ISPCTL_SCAN_FABRIC, int channel);
865 * Scan fabric on this channel
866 * ... ISPCTL_SCAN_LOOP, int channel);
867 * Scan local loop on this channel
864 * ... ISPCTL_SCAN_LOOP, int channel);
865 * Scan local loop on this channel
866 * ... ISPCTL_SCAN_FABRIC, int channel);
867 * Scan fabric on this channel
868 * ... ISPCTL_PDB_SYNC, int channel);
869 * Synchronize port database on this channel
870 * ... ISPCTL_SEND_LIP, int channel);
871 * Send a LIP on this channel
872 * ... ISPCTL_GET_NAMES, int channel, int np, uint64_t *wwnn, uint64_t *wwpn)
873 * Get a WWNN/WWPN for this N-port handle on this channel
874 * ... ISPCTL_RUN_MBOXCMD, mbreg_t *mbp)
875 * Run this mailbox command
876 * ... ISPCTL_GET_PDB, int channel, int nphandle, isp_pdb_t *pdb)
877 * Get PDB on this channel for this N-port handle
878 * ... ISPCTL_PLOGX, isp_plcmd_t *)
879 * Performa a port login/logout
880 * ... ISPCTL_CHANGE_ROLE, int channel, int role);
881 * Change role of specified channel
882 *
883 * ISPCTL_PDB_SYNC is somewhat misnamed. It actually is the final step, in
868 * ... ISPCTL_PDB_SYNC, int channel);
869 * Synchronize port database on this channel
870 * ... ISPCTL_SEND_LIP, int channel);
871 * Send a LIP on this channel
872 * ... ISPCTL_GET_NAMES, int channel, int np, uint64_t *wwnn, uint64_t *wwpn)
873 * Get a WWNN/WWPN for this N-port handle on this channel
874 * ... ISPCTL_RUN_MBOXCMD, mbreg_t *mbp)
875 * Run this mailbox command
876 * ... ISPCTL_GET_PDB, int channel, int nphandle, isp_pdb_t *pdb)
877 * Get PDB on this channel for this N-port handle
878 * ... ISPCTL_PLOGX, isp_plcmd_t *)
879 * Performa a port login/logout
880 * ... ISPCTL_CHANGE_ROLE, int channel, int role);
881 * Change role of specified channel
882 *
883 * ISPCTL_PDB_SYNC is somewhat misnamed. It actually is the final step, in
884 * order, of ISPCTL_FCLINK_TEST, ISPCTL_SCAN_FABRIC, and ISPCTL_SCAN_LOOP.
884 * order, of ISPCTL_FCLINK_TEST, ISPCTL_SCAN_LOOP, and ISPCTL_SCAN_FABRIC.
885 * The main purpose of ISPCTL_PDB_SYNC is to complete management of logging
886 * and logging out of fabric devices (if one is on a fabric) and then marking
887 * the 'loop state' as being ready to now be used for sending commands to
885 * The main purpose of ISPCTL_PDB_SYNC is to complete management of logging
886 * and logging out of fabric devices (if one is on a fabric) and then marking
887 * the 'loop state' as being ready to now be used for sending commands to
888 * devices. Originally fabric name server and local loop scanning were
889 * part of this function. It's now been separated to allow for finer control.
888 * devices.
890 */
891typedef enum {
892 ISPCTL_RESET_BUS,
893 ISPCTL_RESET_DEV,
894 ISPCTL_ABORT_CMD,
895 ISPCTL_UPDATE_PARAMS,
896 ISPCTL_FCLINK_TEST,
897 ISPCTL_SCAN_FABRIC,

--- 269 unchanged lines hidden ---
889 */
890typedef enum {
891 ISPCTL_RESET_BUS,
892 ISPCTL_RESET_DEV,
893 ISPCTL_ABORT_CMD,
894 ISPCTL_UPDATE_PARAMS,
895 ISPCTL_FCLINK_TEST,
896 ISPCTL_SCAN_FABRIC,

--- 269 unchanged lines hidden ---