Diff for /src/sys/bus/cam/scsi/scsi_ch.c between versions 1.9 and 1.10

version 1.9, 2004/05/13 23:49:11 version 1.10, 2004/05/19 22:52:38
Line 148  struct ch_softc { Line 148  struct ch_softc {
         ch_quirks       quirks;          ch_quirks       quirks;
         union ccb       saved_ccb;          union ccb       saved_ccb;
         struct devstat  device_stats;          struct devstat  device_stats;
         dev_t           dev;  
   
         int             sc_picker;      /* current picker */          int             sc_picker;      /* current picker */
   
Line 311  chcleanup(struct cam_periph *periph) Line 310  chcleanup(struct cam_periph *periph)
         softc = (struct ch_softc *)periph->softc;          softc = (struct ch_softc *)periph->softc;
   
         devstat_remove_entry(&softc->device_stats);          devstat_remove_entry(&softc->device_stats);
         destroy_dev(softc->dev);  
         cam_extend_release(chperiphs, periph->unit_number);          cam_extend_release(chperiphs, periph->unit_number);
         xpt_print_path(periph->path);          xpt_print_path(periph->path);
         printf("removing device entry\n");          printf("removing device entry\n");
           cdevsw_remove(&ch_cdevsw, -1, periph->unit_number);
         free(softc, M_DEVBUF);          free(softc, M_DEVBUF);
 }  }
   
Line 395  chregister(struct cam_periph *periph, vo Line 394  chregister(struct cam_periph *periph, vo
                           DEVSTAT_PRIORITY_OTHER);                            DEVSTAT_PRIORITY_OTHER);
   
         /* Register the device */          /* Register the device */
        softc->dev = make_dev(&ch_cdevsw, periph->unit_number, UID_ROOT,        cdevsw_add(&ch_cdevsw, -1, periph->unit_number);
                              GID_OPERATOR, 0600, "%s%d", periph->periph_name,        make_dev(&ch_cdevsw, periph->unit_number, UID_ROOT,
                              periph->unit_number);                  GID_OPERATOR, 0600, "%s%d", periph->periph_name,
                   periph->unit_number);
   
         /*          /*
          * Add an async callback so that we get           * Add an async callback so that we get

Removed from v.1.9  
changed lines
  Added in v.1.10