Print this page
First attempt at pulling 4310 fix from Andy Giles tree


 999                 MPI2_WRSEQ_3RD_KEY_VALUE); \
1000         ddi_put32(hdl->m_datap, &hdl->m_reg->WriteSequence, \
1001                 MPI2_WRSEQ_4TH_KEY_VALUE); \
1002         ddi_put32(hdl->m_datap, &hdl->m_reg->WriteSequence, \
1003                 MPI2_WRSEQ_5TH_KEY_VALUE); \
1004         ddi_put32(hdl->m_datap, &hdl->m_reg->WriteSequence, \
1005                 MPI2_WRSEQ_6TH_KEY_VALUE);
1006 
1007 /*
1008  * m_options flags
1009  */
1010 #define MPTSAS_OPT_PM           0x01    /* Power Management */
1011 
1012 /*
1013  * m_softstate flags
1014  */
1015 #define MPTSAS_SS_DRAINING              0x02
1016 #define MPTSAS_SS_QUIESCED              0x04
1017 #define MPTSAS_SS_MSG_UNIT_RESET        0x08
1018 #define MPTSAS_DID_MSG_UNIT_RESET       0x10


1019 
1020 /*
1021  * regspec defines.
1022  */
1023 #define CONFIG_SPACE    0       /* regset[0] - configuration space */
1024 #define IO_SPACE        1       /* regset[1] - used for i/o mapped device */
1025 #define MEM_SPACE       2       /* regset[2] - used for memory mapped device */
1026 #define BASE_REG2       3       /* regset[3] - used for 875 scripts ram */
1027 
1028 /*
1029  * Handy constants
1030  */
1031 #define FALSE           0
1032 #define TRUE            1
1033 #define UNDEFINED       -1
1034 #define FAILED          -2
1035 
1036 /*
1037  * power management.
1038  */




 999                 MPI2_WRSEQ_3RD_KEY_VALUE); \
1000         ddi_put32(hdl->m_datap, &hdl->m_reg->WriteSequence, \
1001                 MPI2_WRSEQ_4TH_KEY_VALUE); \
1002         ddi_put32(hdl->m_datap, &hdl->m_reg->WriteSequence, \
1003                 MPI2_WRSEQ_5TH_KEY_VALUE); \
1004         ddi_put32(hdl->m_datap, &hdl->m_reg->WriteSequence, \
1005                 MPI2_WRSEQ_6TH_KEY_VALUE);
1006 
1007 /*
1008  * m_options flags
1009  */
1010 #define MPTSAS_OPT_PM           0x01    /* Power Management */
1011 
1012 /*
1013  * m_softstate flags
1014  */
1015 #define MPTSAS_SS_DRAINING              0x02
1016 #define MPTSAS_SS_QUIESCED              0x04
1017 #define MPTSAS_SS_MSG_UNIT_RESET        0x08
1018 #define MPTSAS_DID_MSG_UNIT_RESET       0x10
1019 #define MPTSAS_SS_RESET_INWATCH         0x20
1020 #define MPTSAS_SS_MUR_INWATCH           0x40
1021 
1022 /*
1023  * regspec defines.
1024  */
1025 #define CONFIG_SPACE    0       /* regset[0] - configuration space */
1026 #define IO_SPACE        1       /* regset[1] - used for i/o mapped device */
1027 #define MEM_SPACE       2       /* regset[2] - used for memory mapped device */
1028 #define BASE_REG2       3       /* regset[3] - used for 875 scripts ram */
1029 
1030 /*
1031  * Handy constants
1032  */
1033 #define FALSE           0
1034 #define TRUE            1
1035 #define UNDEFINED       -1
1036 #define FAILED          -2
1037 
1038 /*
1039  * power management.
1040  */