|
|
| version 1.10, 2004/05/13 23:49:11 | version 1.11, 2004/05/19 22:52:38 |
|---|---|
| Line 349 ptctor(struct cam_periph *periph, void * | Line 349 ptctor(struct cam_periph *periph, void * |
| SID_TYPE(&cgd->inq_data) | DEVSTAT_TYPE_IF_SCSI, | SID_TYPE(&cgd->inq_data) | DEVSTAT_TYPE_IF_SCSI, |
| DEVSTAT_PRIORITY_OTHER); | DEVSTAT_PRIORITY_OTHER); |
| softc->dev = make_dev(&pt_cdevsw, periph->unit_number, UID_ROOT, | cdevsw_add(&pt_cdevsw, -1, periph->unit_number); |
| GID_OPERATOR, 0600, "%s%d", periph->periph_name, | make_dev(&pt_cdevsw, periph->unit_number, UID_ROOT, |
| periph->unit_number); | GID_OPERATOR, 0600, "%s%d", periph->periph_name, |
| periph->unit_number); | |
| /* | /* |
| * Add async callbacks for bus reset and | * Add async callbacks for bus reset and |
| * bus device reset calls. I don't bother | * bus device reset calls. I don't bother |
| Line 431 ptdtor(struct cam_periph *periph) | Line 432 ptdtor(struct cam_periph *periph) |
| devstat_remove_entry(&softc->device_stats); | devstat_remove_entry(&softc->device_stats); |
| destroy_dev(softc->dev); | |
| cam_extend_release(ptperiphs, periph->unit_number); | cam_extend_release(ptperiphs, 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(&pt_cdevsw, -1, periph->unit_number); | |
| free(softc, M_DEVBUF); | free(softc, M_DEVBUF); |
| } | } |