diff options
author | peter <peter@FreeBSD.org> | 2000-08-07 18:44:05 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-08-07 18:44:05 +0000 |
commit | 3f5533135215e8ab3d5bd8ab8b3a3cf55919892b (patch) | |
tree | e13a8f7cb680ab59a112d8f4f559e52f5313afac /sys/dev/dpt | |
parent | e953756ee5b3591fc44b7b56d03faac843e19013 (diff) | |
download | FreeBSD-src-3f5533135215e8ab3d5bd8ab8b3a3cf55919892b.zip FreeBSD-src-3f5533135215e8ab3d5bd8ab8b3a3cf55919892b.tar.gz |
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.
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r-- | sys/dev/dpt/dpt_scsi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index d9a54b8..fb07604 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -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 = |