Fix some warnings. Here are more part-time volatiles - ie: data that

lives in memory and is sometimes busmastered to/from the controller.
I believe these are all ok.
This commit is contained in:
Peter Wemm 2000-08-07 18:44:05 +00:00
parent a114459191
commit d27e361b58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64355

View File

@ -497,7 +497,7 @@ dpt_get_conf(dpt_softc_t *dpt, dpt_ccb_t *dccb, u_int32_t dccb_busaddr,
int result;
cp = &dccb->eata_ccb;
bzero((void *)dpt->sp, sizeof(*dpt->sp));
bzero((void *)(uintptr_t)(volatile void *)dpt->sp, sizeof(*dpt->sp));
cp->Interpret = 1;
cp->DataIn = 1;
@ -608,7 +608,7 @@ dpt_detect_cache(dpt_softc_t *dpt, dpt_ccb_t *dccb, u_int32_t dccb_busaddr,
dpt->cache_size = 0;
cp = &dccb->eata_ccb;
bzero((void *)dpt->sp, sizeof(dpt->sp));
bzero((void *)(uintptr_t)(volatile void *)dpt->sp, sizeof(dpt->sp));
bzero(buff, 512);
/* Setup the command structure */
@ -1292,7 +1292,7 @@ dpt_init(struct dpt_softc *dpt)
goto error_exit;
dpt->sp = (volatile dpt_sp_t *)sg_map->sg_vaddr;
dccb = (struct dpt_ccb *)&dpt->sp[1];
dccb = (struct dpt_ccb *)(uintptr_t)(volatile void *)&dpt->sp[1];
bzero(dccb, sizeof(*dccb));
dpt->sp_physaddr = sg_map->sg_physaddr;
dccb->eata_ccb.cp_dataDMA =