FreeBSD 3.0-CURRENT CAM patch for sane-1.0

Parag Patel (parag@cgt.com)
Mon, 04 Jan 1999 11:13:00 -0800

Hello. I'm not on the SANE mailing list, but I ran across a problem
with the SANE port on FreeBSD 3.0-CURRENT and the latest CAM support.

The problem is that the CAM code has been limited to 64K shared-data
area due to some bug in combination with cdrecord/cdda2wav. The upshot
is that it can't scan anything with SANE without getting errors such as
this from the kernel:

cam_periph_mapmem: attempt to map 131029 bytes, which is greater than
DFLTPHYS(65536)

The fix is below. With this patch, things work just fine.

Thank-you for all your efforts.

-- Parag Patel

*** sanei/sanei_scsi.c-org Sun Jan 3 16:37:08 1999
--- sanei/sanei_scsi.c Sun Jan 3 16:37:11 1999
***************
*** 186,192 ****
#endif

#if USE == FREEBSD_CAM_INTERFACE
! # define MAX_DATA MAXPHYS
#endif

#ifndef MAX_DATA
--- 186,192 ----
#endif

#if USE == FREEBSD_CAM_INTERFACE
! # define MAX_DATA DFLTPHYS
#endif

#ifndef MAX_DATA

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com