Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Make the 'size' argument of _bus_dmamap_loa...
details: https://anonhg.NetBSD.org/src/rev/4ee4899b6a55
branches: trunk
changeset: 769956:4ee4899b6a55
user: dyoung <dyoung%NetBSD.org@localhost>
date: Tue Sep 27 23:25:55 2011 +0000
description:
Make the 'size' argument of _bus_dmamap_load_busaddr() a bus_size_t for
consistency's sake.
diffstat:
sys/arch/x86/x86/bus_dma.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 1c9012da7504 -r 4ee4899b6a55 sys/arch/x86/x86/bus_dma.c
--- a/sys/arch/x86/x86/bus_dma.c Tue Sep 27 23:04:18 2011 +0000
+++ b/sys/arch/x86/x86/bus_dma.c Tue Sep 27 23:25:55 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.60 2011/09/13 17:59:46 dyoung Exp $ */
+/* $NetBSD: bus_dma.c,v 1.61 2011/09/27 23:25:55 dyoung Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2007 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.60 2011/09/13 17:59:46 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.61 2011/09/27 23:25:55 dyoung Exp $");
/*
* The following is included because _bus_dma_uiomove is derived from
@@ -168,7 +168,7 @@
static int _bus_dmamap_load_buffer(bus_dma_tag_t t, bus_dmamap_t map,
void *buf, bus_size_t buflen, struct vmspace *vm, int flags);
static inline int _bus_dmamap_load_busaddr(bus_dma_tag_t, bus_dmamap_t,
- bus_addr_t, int);
+ bus_addr_t, bus_size_t);
#ifndef _BUS_DMAMEM_ALLOC_RANGE
static int _bus_dmamem_alloc_range(bus_dma_tag_t tag, bus_size_t size,
@@ -436,7 +436,7 @@
static inline int
_bus_dmamap_load_busaddr(bus_dma_tag_t t, bus_dmamap_t map,
- bus_addr_t addr, int size)
+ bus_addr_t addr, bus_size_t size)
{
bus_dma_segment_t * const segs = map->dm_segs;
int nseg = map->dm_nsegs;
Home |
Main Index |
Thread Index |
Old Index