Lines Matching defs:_MPT_ADAPTER
603 typedef struct _MPT_ADAPTER struct
605 int id; /* Unique adapter id N {0,1,2,...} */
606 int pci_irq; /* This irq */
607 char name[MPT_NAME_LENGTH]; /* "iocN" */
608 const char *prod_name; /* "LSIFC9x9" */
611 char evStr[EVENT_DESCR_STR_SZ];
613 char board_name[16];
614 char board_assembly[16];
615 char board_tracer[16];
616 u16 nvdata_version_persistent;
617 u16 nvdata_version_default;
618 int debug_level;
619 u8 io_missing_delay;
620 u16 device_missing_delay;
621 SYSIF_REGS __iomem *chip; /* == c8817000 (mmap) */
622 SYSIF_REGS __iomem *pio_chip; /* Programmed IO (downloadboot) */
623 u8 bus_type;
624 u32 mem_phys; /* == f4020000 (mmap) */
625 u32 pio_mem_phys; /* Programmed IO (downloadboot) */
626 int mem_size; /* mmap memory size */
627 int number_of_buses;
628 int devices_per_bus;
629 int alloc_total;
630 u32 last_state;
631 int active;
632 u8 *alloc; /* frames alloc ptr */
633 dma_addr_t alloc_dma;
634 u32 alloc_sz;
635 MPT_FRAME_HDR *reply_frames; /* Reply msg frames - rounded up! */
636 u32 reply_frames_low_dma;
637 int reply_depth; /* Num Allocated reply frames */
638 int reply_sz; /* Reply frame size */
639 int num_chain; /* Number of chain buffers */
640 MPT_ADD_SGE add_sge; /* Pointer to add_sge
642 MPT_ADD_CHAIN add_chain; /* Pointer to add_chain
649 int *ReqToChain;
650 int *RequestNB;
651 int *ChainToChain;
652 u8 *ChainBuffer;
653 dma_addr_t ChainBufferDMA;
654 struct list_head FreeChainQ;
655 spinlock_t FreeChainQlock;
657 dma_addr_t req_frames_dma;
658 MPT_FRAME_HDR *req_frames; /* Request msg frames - rounded up! */
659 u32 req_frames_low_dma;
660 int req_depth; /* Number of request frames */
684 struct _MPT_ADAPTER *alt_ioc; /* ptr to 929 bound adapter port */ argument
685 u32 biosVersion; /* BIOS version from IO Unit Page 2 */
686 int eventTypes; /* Event logging parameters */
687 int eventContext; /* Next event context */
688 int eventLogSize; /* Max number of cached events */
689 struct _mpt_ioctl_events *events; /* pointer to event log */
690 u8 *cached_fw; /* Pointer to FW */
691 dma_addr_t cached_fw_dma;
692 int hs_reply_idx;
694 u32 pad0;
696 u32 mfcnt;
698 u32 NB_for_64_byte_frame;
699 u32 hs_req[MPT_MAX_FRAME_SIZE/sizeof(u32)];
700 u16 hs_reply[MPT_MAX_FRAME_SIZE/sizeof(u16)];
701 IOCFactsReply_t facts;
702 PortFactsReply_t pfacts[2];
703 FCPortPage0_t fc_port_page0[2];
704 LANPage0_t lan_cnfg_page0;
705 LANPage1_t lan_cnfg_page1;
707 u8 ir_firmware; /* =1 if IR firmware detected */
714 int errata_flag_1064;
715 int aen_event_read_flag; /* flag to indicate event log was read*/
716 u8 FirstWhoInit;
717 u8 upload_fw; /* If set, do a fw upload */
718 u8 NBShiftFactor; /* NB Shift Factor based on Block Size (Facts) */
719 u8 pad1[4];
720 u8 DoneCtx;
721 u8 TaskCtx;
722 u8 InternalCtx;
723 struct list_head list;
724 struct net_device *netdev;
725 struct list_head sas_topology;
726 struct mutex sas_topology_mutex;
728 struct workqueue_struct *fw_event_q;
729 struct list_head fw_event_list;
730 spinlock_t fw_event_lock;
731 u8 fw_events_off; /* if '1', then ignore events */
732 char fw_event_q_name[MPT_KOBJ_NAME_LEN];
734 struct mutex sas_discovery_mutex;
735 u8 sas_discovery_runtime;
736 u8 sas_discovery_ignore_events;
739 struct mptsas_portinfo *hba_port_info;
740 u64 hba_port_sas_addr;
741 u16 hba_port_num_phy;
742 struct list_head sas_device_info_list;
743 struct mutex sas_device_info_mutex;
744 u8 old_sas_discovery_protocal;
745 u8 sas_discovery_quiesce_io;
746 int sas_index; /* index refrencing */
747 MPT_MGMT sas_mgmt;
748 MPT_MGMT mptbase_cmds; /* for sending config pages */
749 MPT_MGMT internal_cmds;
750 MPT_MGMT taskmgmt_cmds;
751 MPT_MGMT ioctl_cmds;
752 spinlock_t taskmgmt_lock; /* diagnostic reset lock */
753 int taskmgmt_in_progress;
754 u8 taskmgmt_quiesce_io;
755 u8 ioc_reset_in_progress;
756 u8 reset_status;
757 u8 wait_on_reset_completion;
758 MPT_SCHEDULE_TARGET_RESET schedule_target_reset;
759 MPT_FLUSH_RUNNING_CMDS schedule_dead_ioc_flush_running_cmds;
760 struct work_struct sas_persist_task;
762 struct work_struct fc_setup_reset_work;
763 struct list_head fc_rports;
764 struct work_struct fc_lsc_work;
765 u8 fc_link_speed[2];
766 spinlock_t fc_rescan_work_lock;
767 struct work_struct fc_rescan_work;
768 char fc_rescan_work_q_name[MPT_KOBJ_NAME_LEN];
769 struct workqueue_struct *fc_rescan_work_q;
772 unsigned long hard_resets;
774 unsigned long soft_resets;
776 unsigned long timeouts;
778 struct scsi_cmnd **ScsiLookup;
779 spinlock_t scsi_lookup_lock;
780 u64 dma_mask;
781 u32 broadcast_aen_busy;
782 char reset_work_q_name[MPT_KOBJ_NAME_LEN];
783 struct workqueue_struct *reset_work_q;
784 struct delayed_work fault_reset_work;
786 u8 sg_addr_size;
787 u8 in_rescan;
788 u8 SGE_size;