[sane-devel] SANE 1.0.10 on IRIX 6.5.x
Peter Fales
psfales at lucent.com
Sun Feb 9 03:26:12 GMT 2003
Thanks, I've applied those changes to CVS.
--
Peter Fales Lucent Technologies, Room 4G-310
N9IYJ 2000 N Naperville Rd PO Box 3033
Naperville, IL 60566-7033
internet: psfales at lucent.com work: (630) 979-8031
On Sun, Feb 09, 2003 at 03:18:30AM +0100, Andrea Suatoni wrote:
> I wrote:
>
> > I have finished the packaging of SANE 1.0.10 on IRIX, using the SGI MIPSpro C
> > compiler. You can update the supported platforms page on the SANE web site
> > with the following info:
>
> But of course, I forgotten to test the Kodak DC240 backend. And infact, I've
> had again problems with the initialization code. The fact is that, on IRIX at
> least, after the tcsendbreak(), tcdrain() is needed, otherwise the camera will
> not be inited correctly and the backend will refuse to work. I have applied
> the same modification to Kodak DC210 backend, which is similar (but I cannot
> test it, since I haven't that camera). Here are the patches (note: the patch
> for the DC210 backend here replaces completely the patch provided in my
> previous message)
>
> diff -ruN sane-backends-1.0.10/backend/dc210.c
> sane-backends-1.0.10-patched/backend/dc210.c
> --- sane-backends-1.0.10/backend/dc210.c Fri Jan 10 12:21:51 2003
> +++ sane-backends-1.0.10-patched/backend/dc210.c Sun Feb 9 02:39:45 2003
> @@ -403,6 +403,9 @@
>
> #ifdef HAVE_TCSENDBREAK
> tcsendbreak (camera->fd, 0);
> +# if defined(__sgi)
> + tcdrain (camera->fd);
> +# endif
> # elif defined(TCSBRKP)
> ioctl (camera->fd, TCSBRKP, 0);
> # elif defined(TCSBRK)
> @@ -412,9 +415,9 @@
> /* and wait for it to recover from the break */
>
> #ifdef HAVE_USLEEP
> - usleep (breakpause);
> + usleep (breakpause);
> #else
> -+ sleep (1);
> + sleep (1);
> #endif
>
> if (send_pck (camera->fd, init_pck) == -1)
> diff -ruN sane-backends-1.0.10/backend/dc240.c
> sane-backends-1.0.10-patched/backend/dc240.c
> --- sane-backends-1.0.10/backend/dc240.c Fri Jan 10 12:21:51 2003
> +++ sane-backends-1.0.10-patched/backend/dc240.c Sun Feb 9 02:39:50 2003
> @@ -448,6 +448,9 @@
>
> #ifdef HAVE_TCSENDBREAK
> tcsendbreak (camera->fd, 0);
> +# if defined(__sgi)
> + tcdrain (camera->fd);
> +# endif
> # elif defined(TCSBRKP)
> ioctl (camera->fd, TCSBRKP, 0);
> # elif defined(TCSBRK)
>
> Andrea
> _______________________________________________
> Sane-devel mailing list
> Sane-devel at www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel
More information about the sane-devel
mailing list