Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 1998 15:34:00 -0700 (PDT)
From:      Kenneth Merry <ken@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
Message-ID:  <199809182234.PAA04087@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809182234.PAA04087>