diff options
author | joe <joe@FreeBSD.org> | 2002-05-26 22:00:06 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-05-26 22:00:06 +0000 |
commit | 7a6410c018f342a4765593d0b728aeea5defd36b (patch) | |
tree | f94c382742231ea2eb85b1f9d808f5ad0a3595e4 /sys/dev/usb/uhci.c | |
parent | 98011cfe8b52577271331b5a6440f1ef80972582 (diff) | |
download | FreeBSD-src-7a6410c018f342a4765593d0b728aeea5defd36b.zip FreeBSD-src-7a6410c018f342a4765593d0b728aeea5defd36b.tar.gz |
MFNetBSD: ohci.c (1.124), uhci.c (1.159), usbdi.c (1.100)
date: 2002/05/19 06:24:31; author: augustss; state: Exp;
Update dma memory access API a little.
NetBSD have adopted our way of using the KERNADDR macro. Update
the revision tags to show that we're in sync, and remove the casts
that they did in their adaptation.
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r-- | sys/dev/usb/uhci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 372c51c..e01503e 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhci.c,v 1.158 2002/03/17 18:02:53 augustss Exp $ */ +/* $NetBSD: uhci.c,v 1.159 2002/05/19 06:24:32 augustss Exp $ */ /* $FreeBSD$ */ /* @@ -1627,7 +1627,7 @@ uhci_alloc_std(uhci_softc_t *sc) return (0); for(i = 0; i < UHCI_STD_CHUNK; i++) { offs = i * UHCI_STD_SIZE; - std = (uhci_soft_td_t *)((char *)KERNADDR(&dma, offs)); + std = KERNADDR(&dma, offs); std->physaddr = DMAADDR(&dma, offs); std->link.std = sc->sc_freetds; sc->sc_freetds = std; @@ -1670,7 +1670,7 @@ uhci_alloc_sqh(uhci_softc_t *sc) return (0); for(i = 0; i < UHCI_SQH_CHUNK; i++) { offs = i * UHCI_SQH_SIZE; - sqh = (uhci_soft_qh_t *)((char *)KERNADDR(&dma, offs)); + sqh = KERNADDR(&dma, offs); sqh->physaddr = DMAADDR(&dma, offs); sqh->hlink = sc->sc_freeqhs; sc->sc_freeqhs = sqh; |