Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* RE: linux-pre-2.0.31-9
@ 1997-09-17 13:07 Leslie F. Donaldson
  0 siblings, 0 replies; 3+ messages in thread
From: Leslie F. Donaldson @ 1997-09-17 13:07 UTC (permalink / raw)


Try this for fixing the driver.
(comes from my 2.1.55) patch.
Note: this fuction isn't actually used yet.

*** linux/drivers/scsi/aic7xxx.c.old    Fri Sep  5 18:58:42 1997
--- linux/drivers/scsi/aic7xxx.c        Sat Sep 13 11:15:09 1997
***************
*** 992,997 ****
--- 992,998 ----
  {
    if (p->maddr != NULL)
    {
+ #ifdef 0
      __asm __volatile("
        cld;
      1:  lodsb;
***************
*** 1001,1006 ****
--- 1002,1014 ----
        "r" ((p)->maddr + (port)),
        "S" ((valp)), "c" ((size))  :
        "%esi", "%ecx", "%eax");
+ #else
+       unsigned char *iop = ((p)->maddr + (port));
+       const unsigned char *dp = (valp);
+       int xferlen = (size);
+       for (; xferlen; --xferlen)
+           *iop = *dp++;
+ #endif
    }
    else
    {

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* linux-pre-2.0.31-9
@ 1997-09-17 20:41 Andreas U. Trottmann
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas U. Trottmann @ 1997-09-17 20:41 UTC (permalink / raw)


Hi there!

I just tried to compile the latest pre-2.0.31 on my Alpha and found out
that the new version of the Adaptec driver is intel-only right now: 

/usr/src/linux/drivers/scsi/aic7xxx.c, line 990:
static inline void
aic_outsb(struct aic7xxx_host *p, long port, unsigned char *valp, size_t size)
{
  if (p->maddr != NULL)
  {
    __asm __volatile("
      cld;
    1:  lodsb;
      movb %%al,(%0);
      loop 1b"      :
              :
      "r" ((p)->maddr + (port)),
      "S" ((valp)), "c" ((size))  :
      "%esi", "%ecx", "%eax");
  }
  else
  {
    outsb(p->base + port, valp, size);
  }
}

Being illiterate of both intel and alpha assembly language, I don't know 
how this translates, though I think it souldn't be hard. Has anyone on this 
list a "quick fix" for this in the desk drawer? 

-- 
Andreas Trottmann <andreas.trottmann@aart.ch>

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-pre-2.0.31-9
       [not found] <199709171307.IAA01504@vulture.cs.rose-hulman.edu>
@ 1997-09-18 19:18 ` Andreas U. Trottmann
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas U. Trottmann @ 1997-09-18 19:18 UTC (permalink / raw)


On Wed, Sep 17, 1997 at 08:07:33AM -0500, Leslie F. Donaldson wrote:

> Try this for fixing the driver.
> (comes from my 2.1.55) patch.

Works. At least it seems to :-)

In the kernel and in MILO.

Thank you very much!

> Note: this fuction isn't actually used yet.

oops... I should have checked that :)

-- 
Andreas Trottmann <andreas.trottmann@aart.ch>

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-09-18 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <199709171307.IAA01504@vulture.cs.rose-hulman.edu>
1997-09-18 19:18 ` linux-pre-2.0.31-9 Andreas U. Trottmann
1997-09-17 20:41 linux-pre-2.0.31-9 Andreas U. Trottmann
  -- strict thread matches above, loose matches on Subject: below --
1997-09-17 13:07 linux-pre-2.0.31-9 Leslie F. Donaldson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox