Deleted Added
full compact
aic7xxx.seq (19231) aic7xxx.seq (19421)
1/*+M***********************************************************************
2 *Adaptec 274x/284x/294x device driver for Linux and FreeBSD.
3 *
4 *Copyright (c) 1994 John Aycock
5 * The University of Calgary Department of Computer Science.
6 * All rights reserved.
7 *
8 *FreeBSD, Twin, Wide, 2 command per target support, tagged queuing,

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

34 *OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 *HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 *LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 *OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 *SUCH DAMAGE.
39 *
40 *-M************************************************************************/
41
1/*+M***********************************************************************
2 *Adaptec 274x/284x/294x device driver for Linux and FreeBSD.
3 *
4 *Copyright (c) 1994 John Aycock
5 * The University of Calgary Department of Computer Science.
6 * All rights reserved.
7 *
8 *FreeBSD, Twin, Wide, 2 command per target support, tagged queuing,

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

34 *OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 *HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 *LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 *OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 *SUCH DAMAGE.
39 *
40 *-M************************************************************************/
41
42VERSION AIC7XXX_SEQ_VER "$Id: aic7xxx.seq,v 1.45 1996/10/28 06:01:07 gibbs Exp $"
42VERSION AIC7XXX_SEQ_VER "$Id: aic7xxx.seq,v 1.46 1996/10/28 17:00:24 gibbs Exp $"
43
44#if defined(__NetBSD__)
45#include "../../../../dev/ic/aic7xxxreg.h"
46#include "../../../../scsi/scsi_message.h"
47#elif defined(__FreeBSD__)
48#include "../../dev/aic7xxx/aic7xxx_reg.h"
49#include "../../scsi/scsi_message.h"
50#endif

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

1113 ret
1114
1115index_untagged_scb:
1116 mov DINDEX, SINDEX
1117 shr DINDEX, 4
1118 and DINDEX, 0x03 /* Bottom two bits of tid */
1119 add DINDEX, SCB_ACTIVE0
1120 shr A, SINDEX, 6 /* Target ID divided by 4 */
43
44#if defined(__NetBSD__)
45#include "../../../../dev/ic/aic7xxxreg.h"
46#include "../../../../scsi/scsi_message.h"
47#elif defined(__FreeBSD__)
48#include "../../dev/aic7xxx/aic7xxx_reg.h"
49#include "../../scsi/scsi_message.h"
50#endif

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

1113 ret
1114
1115index_untagged_scb:
1116 mov DINDEX, SINDEX
1117 shr DINDEX, 4
1118 and DINDEX, 0x03 /* Bottom two bits of tid */
1119 add DINDEX, SCB_ACTIVE0
1120 shr A, SINDEX, 6 /* Target ID divided by 4 */
1121 test SCB_TCL, SELBUSB jz index_untagged_scb2
1122 or A, 2 /* Add 2 positions */
1121 test SINDEX, SELBUSB jz index_untagged_scb2
1122 add A, 2 /* Add 2 positions */
1123index_untagged_scb2:
1124 mov SCBPTR, A /*
1125 * Select the SCB with this
1126 * target's information.
1127 */
1128 mov SINDEX, DINDEX ret
1129
1130

--- 55 unchanged lines hidden ---
1123index_untagged_scb2:
1124 mov SCBPTR, A /*
1125 * Select the SCB with this
1126 * target's information.
1127 */
1128 mov SINDEX, DINDEX ret
1129
1130

--- 55 unchanged lines hidden ---