diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-04-01 15:36:02 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-04-01 15:36:02 +0000 |
commit | c1a4b4a0335e9ed3e587abff67f19ff34d478e47 (patch) | |
tree | a0c28e7da307caa8939dd54dc22cf44d4614601c /sys | |
parent | 01cf5512e446ba33aabff2cf25e84a238f8b0ffe (diff) |
use proper types and not fetch iobase that is not used later; damien ok
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_iwi.c | 9 | ||||
-rw-r--r-- | sys/dev/pci/if_iwivar.h | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index c9e7a7fda11..5c64069c7ab 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwi.c,v 1.64 2006/04/01 01:04:40 pedro Exp $ */ +/* $OpenBSD: if_iwi.c,v 1.65 2006/04/01 15:36:01 mickey Exp $ */ /*- * Copyright (c) 2004-2006 @@ -101,7 +101,7 @@ int iwi_alloc_cmd_ring(struct iwi_softc *, struct iwi_cmd_ring *); void iwi_reset_cmd_ring(struct iwi_softc *, struct iwi_cmd_ring *); void iwi_free_cmd_ring(struct iwi_softc *, struct iwi_cmd_ring *); int iwi_alloc_tx_ring(struct iwi_softc *, struct iwi_tx_ring *, - bus_addr_t, bus_addr_t); + bus_size_t, bus_size_t); void iwi_reset_tx_ring(struct iwi_softc *, struct iwi_tx_ring *); void iwi_free_tx_ring(struct iwi_softc *, struct iwi_tx_ring *); int iwi_alloc_rx_ring(struct iwi_softc *, struct iwi_rx_ring *); @@ -185,7 +185,6 @@ iwi_attach(struct device *parent, struct device *self, void *aux) const char *intrstr; bus_space_tag_t memt; bus_space_handle_t memh; - bus_addr_t base; pci_intr_handle_t ih; pcireg_t data; uint16_t val; @@ -201,7 +200,7 @@ iwi_attach(struct device *parent, struct device *self, void *aux) /* map the register window */ error = pci_mapreg_map(pa, IWI_PCI_BAR0, PCI_MAPREG_TYPE_MEM | - PCI_MAPREG_MEM_TYPE_32BIT, 0, &memt, &memh, &base, &sc->sc_sz, 0); + PCI_MAPREG_MEM_TYPE_32BIT, 0, &memt, &memh, NULL, &sc->sc_sz, 0); if (error != 0) { printf(": could not map memory space\n"); return; @@ -504,7 +503,7 @@ iwi_free_cmd_ring(struct iwi_softc *sc, struct iwi_cmd_ring *ring) int iwi_alloc_tx_ring(struct iwi_softc *sc, struct iwi_tx_ring *ring, - bus_addr_t csr_ridx, bus_addr_t csr_widx) + bus_size_t csr_ridx, bus_size_t csr_widx) { struct iwi_tx_data *data; int i, nsegs, error; diff --git a/sys/dev/pci/if_iwivar.h b/sys/dev/pci/if_iwivar.h index 52e4c38938c..1f0fb64c72c 100644 --- a/sys/dev/pci/if_iwivar.h +++ b/sys/dev/pci/if_iwivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwivar.h,v 1.16 2006/04/01 01:04:40 pedro Exp $ */ +/* $OpenBSD: if_iwivar.h,v 1.17 2006/04/01 15:36:01 mickey Exp $ */ /*- * Copyright (c) 2004-2006 @@ -74,8 +74,8 @@ struct iwi_tx_data { struct iwi_tx_ring { bus_dmamap_t map; bus_dma_segment_t seg; - bus_addr_t csr_ridx; - bus_addr_t csr_widx; + bus_size_t csr_ridx; + bus_size_t csr_widx; struct iwi_tx_desc *desc; struct iwi_tx_data data[IWI_TX_RING_COUNT]; int queued; |