Diff for /src/sys/dev/disk/ata/ata-disk.c between versions 1.17 and 1.18

version 1.17, 2004/05/13 23:49:14 version 1.18, 2004/05/19 22:52:40
Line 297  adclose(dev_t dev, int flags, int fmt, s Line 297  adclose(dev_t dev, int flags, int fmt, s
     return 0;      return 0;
 }  }
   
   /*
    * note: always use the passed device rather then bp->b_dev, as the bp
    * may have been translated through several layers.
    */
 static void   static void 
 adstrategy(struct buf *bp)  adstrategy(struct buf *bp)
 {  {
Line 316  adstrategy(struct buf *bp) Line 320  adstrategy(struct buf *bp)
 }  }
   
 int  int
addump(dev_t dev)addump(dev_t dev, u_int count, u_int blkno, u_int secsize)
 {  {
     struct ad_softc *adp = dev->si_drv1;      struct ad_softc *adp = dev->si_drv1;
     struct ad_request request;      struct ad_request request;
     u_int count, blkno, secsize;  
     vm_paddr_t addr = 0;      vm_paddr_t addr = 0;
     long blkcnt;      long blkcnt;
     int dumppages = MAXDUMPPGS;      int dumppages = MAXDUMPPGS;
     int error;  
     int i;      int i;
   
     if ((error = disk_dumpcheck(dev, &count, &blkno, &secsize)))  
         return error;  
           
     if (!adp)      if (!adp)
         return ENXIO;          return ENXIO;
   

Removed from v.1.17  
changed lines
  Added in v.1.18