Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2001 19:01:36 +0800
From:      "Derren" <derrenl@synology.com>
To:        <iain@research.canon.com.au>
Cc:        "JustinT. Gibbs" <gibbs@scsiguy.com>, <freebsd-scsi@FreeBSD.ORG>
Subject:   Re: More target mode observations 
Message-ID:  <003901c08f63$02e6fa80$e301a8c0@derrenltest>

next in thread | raw e-mail | index | archive | help
>>Following up to myself with a bit more info,

>I've been tied up with things, but I'll try to look into this tomorrow.
>Target mode has worked, but I must have broken something recently.
>I'm sure it won't take me long to figure out what.

I've let the target mode run successfully on my machine.
The key is the "targbh" device. You should add it in your kernel
configuration if you want to trigger the target mode functionality.

Let's check ahc_handle_en_lun() in aic7xxx.c

  /* Allow select-in operations */
  if (ahc->black_hole != NULL && ahc->enabled_luns > 0) {
   scsiseq = ahc_inb(ahc, SCSISEQ_TEMPLATE);
   scsiseq |= ENSELI;
   ahc_outb(ahc, SCSISEQ_TEMPLATE, scsiseq);
   scsiseq = ahc_inb(ahc, SCSISEQ);
   scsiseq |= ENSELI;
   ahc_outb(ahc, SCSISEQ, scsiseq);
  }

By the way, the chip I worked on is Aic-7890.

Derren





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003901c08f63$02e6fa80$e301a8c0>