From owner-cvs-all Fri Sep 18 15:34:39 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA18502 for cvs-all-outgoing; Fri, 18 Sep 1998 15:34:39 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA18479; Fri, 18 Sep 1998 15:34:24 -0700 (PDT) (envelope-from ken@FreeBSD.org) From: Kenneth Merry Received: (from ken@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA04087; Fri, 18 Sep 1998 15:34:00 -0700 (PDT) Date: Fri, 18 Sep 1998 15:34:00 -0700 (PDT) Message-Id: <199809182234.PAA04087@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/lib/libcam Makefile src/sys/cam/scsi scsi_all.c scsi_all.h scsi_da.c scsi_da.h Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ken 1998/09/18 15:34:00 PDT Modified files: lib/libcam Makefile Log: Remove scsi_da.c from the list of things compiled into the CAM library. The functions that were being compiled into the library have been moved to scsi_all.c. One warning: Any programs using scsi_start_stop() or scsi_read_write() that included scsi_da.h but not scsi_all.h will need to be changed to include scsi_all.h. This doesn't affect camcontrol, and I don't think it affects any ports, but you never know. PR: kern/7969 Reviewed by: gibbs Revision Changes Path 1.2 +1 -1 src/lib/libcam/Makefile Modified files: sys/cam/scsi scsi_all.c scsi_all.h scsi_da.c scsi_da.h Log: Fix the CAM code so that people can compile kernels with the CD driver but without the DA driver. The problem was that the CD driver depended on scsi_read_write() and scsi_start_stop(), which were defined in scsi_da.c. I moved both functions, and their associated data structures and defines from scsi_da.* to scsi_all.*. This is technically the "wrong" thing to do since those commands are really only for direct-access type devices, not for all SCSI devices. I think, though, that the advantage (allowing people to compile kernels without the disk driver) outweighs any architectural purity arguments. PR: kern/7969 Reviewed by: gibbs Revision Changes Path 1.2 +138 -5 src/sys/cam/scsi/scsi_all.c 1.2 +69 -1 src/sys/cam/scsi/scsi_all.h 1.3 +1 -145 src/sys/cam/scsi/scsi_da.c 1.2 +1 -71 src/sys/cam/scsi/scsi_da.h