Diff for /src/sys/bus/cam/scsi/scsi_ses.c between versions 1.10 and 1.11

version 1.10, 2004/05/13 23:49:11 version 1.11, 2004/05/19 22:52:38
Line 149  struct ses_softc { Line 149  struct ses_softc {
         ses_encstat     ses_encstat;    /* overall status */          ses_encstat     ses_encstat;    /* overall status */
         u_int8_t        ses_flags;          u_int8_t        ses_flags;
         union ccb       ses_saved_ccb;          union ccb       ses_saved_ccb;
         dev_t           ses_dev;  
         struct cam_periph *periph;          struct cam_periph *periph;
 };  };
 #define SES_FLAG_INVALID        0x01  #define SES_FLAG_INVALID        0x01
Line 271  sescleanup(struct cam_periph *periph) Line 270  sescleanup(struct cam_periph *periph)
   
         softc = (struct ses_softc *)periph->softc;          softc = (struct ses_softc *)periph->softc;
   
         destroy_dev(softc->ses_dev);  
   
         cam_extend_release(sesperiphs, periph->unit_number);          cam_extend_release(sesperiphs, 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(&ses_cdevsw, -1, periph->unit_number);
         free(softc, M_DEVBUF);          free(softc, M_DEVBUF);
 }  }
   
Line 379  sesregister(struct cam_periph *periph, v Line 377  sesregister(struct cam_periph *periph, v
   
         cam_extend_set(sesperiphs, periph->unit_number, periph);          cam_extend_set(sesperiphs, periph->unit_number, periph);
   
        softc->ses_dev = make_dev(&ses_cdevsw, periph->unit_number,        cdevsw_add(&ses_cdevsw, -1, periph->unit_number);
            UID_ROOT, GID_OPERATOR, 0600, "%s%d",        make_dev(&ses_cdevsw, periph->unit_number,
            periph->periph_name, periph->unit_number);                    UID_ROOT, 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.10  
changed lines
  Added in v.1.11