diff options
Diffstat (limited to 'sys/dev/dpt/dpt_scsi.c')
-rw-r--r-- | sys/dev/dpt/dpt_scsi.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index 47c12a51bdade..42ff038f6645d 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -43,7 +43,7 @@ * arrays that span controllers (Wow!). */ -#ident "$Id: dpt_scsi.c,v 1.21 1998/12/22 00:52:27 eivind Exp $" +#ident "$Id: dpt_scsi.c,v 1.19 1998/10/15 23:17:56 gibbs Exp $" #define _DPT_C_ @@ -300,12 +300,11 @@ dptallocsgmap(struct dpt_softc *dpt) return (NULL); } - (void)bus_dmamap_load(dpt->sg_dmat, sg_map->sg_dmamap, sg_map->sg_vaddr, - PAGE_SIZE, dptmapmem, &sg_map->sg_physaddr, - /*flags*/0); - SLIST_INSERT_HEAD(&dpt->sg_maps, sg_map, links); + bus_dmamap_load(dpt->sg_dmat, sg_map->sg_dmamap, sg_map->sg_vaddr, + PAGE_SIZE, dptmapmem, &sg_map->sg_physaddr, /*flags*/0); + return (sg_map); } @@ -1129,7 +1128,7 @@ dpt_free(struct dpt_softc *dpt) free(dpt, M_DEVBUF); } -static u_int8_t string_sizes[] = +u_int8_t string_sizes[] = { sizeof(((dpt_inq_t*)NULL)->vendor), sizeof(((dpt_inq_t*)NULL)->modelNum), @@ -1148,9 +1147,6 @@ dpt_init(struct dpt_softc *dpt) int i; int retval; - dpt->init_level = 0; - SLIST_INIT(&dpt->sg_maps); - #ifdef DPT_RESET_BOARD printf("dpt%d: resetting HBA\n", dpt->unit); dpt_outb(dpt, HA_WCOMMAND, EATA_CMD_RESET); |