View | Details | Raw Unified | Return to bug 197143 | Differences between
and this patch

Collapse All | Expand All

(-)sys/dev/wpi/if_wpi.c (-2 / +2 lines)
Lines 2080-2086 Link Here
2080
	bus_dmamap_sync(sc->shared_dma.tag, sc->shared_dma.map,
2080
	bus_dmamap_sync(sc->shared_dma.tag, sc->shared_dma.map,
2081
	    BUS_DMASYNC_POSTREAD);
2081
	    BUS_DMASYNC_POSTREAD);
2082
2082
2083
	hw = le32toh(sc->shared->next);
2083
	hw = le32toh(sc->shared->next) & 0xfff;
2084
	hw = (hw == 0) ? WPI_RX_RING_COUNT - 1 : hw - 1;
2084
	hw = (hw == 0) ? WPI_RX_RING_COUNT - 1 : hw - 1;
2085
2085
2086
	while (sc->rxq.cur != hw) {
2086
	while (sc->rxq.cur != hw) {
Lines 2305-2311 Link Here
2305
static void
2305
static void
2306
wpi_debug_registers(struct wpi_softc *sc)
2306
wpi_debug_registers(struct wpi_softc *sc)
2307
{
2307
{
2308
	int i;
2308
	size_t i;
2309
	static const uint32_t csr_tbl[] = {
2309
	static const uint32_t csr_tbl[] = {
2310
		WPI_HW_IF_CONFIG,
2310
		WPI_HW_IF_CONFIG,
2311
		WPI_INT,
2311
		WPI_INT,
(-)sys/dev/wpi/if_wpi_debug.h (-2 / +2 lines)
Lines 99-105 Link Here
99
/*
99
/*
100
 * Translate CSR code to string
100
 * Translate CSR code to string
101
 */
101
 */
102
static const char *wpi_get_csr_string(int csr)
102
static const char *wpi_get_csr_string(size_t csr)
103
{
103
{
104
	switch (csr) {
104
	switch (csr) {
105
		WPI_DESC(WPI_HW_IF_CONFIG);
105
		WPI_DESC(WPI_HW_IF_CONFIG);
Lines 123-129 Link Here
123
	}
123
	}
124
}
124
}
125
125
126
static const char *wpi_get_prph_string(int prph)
126
static const char *wpi_get_prph_string(size_t prph)
127
{
127
{
128
	switch (prph) {
128
	switch (prph) {
129
		WPI_DESC(WPI_APMG_CLK_CTRL);
129
		WPI_DESC(WPI_APMG_CLK_CTRL);

Return to bug 197143