From roderick@stud187236.mobiel.utwente.nl  Sun Jul 20 08:23:02 2003
Return-Path: <roderick@stud187236.mobiel.utwente.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8283C37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Jul 2003 08:23:02 -0700 (PDT)
Received: from stud187236.mobiel.utwente.nl (stud187236.mobiel.utwente.nl [130.89.187.236])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AB0DC43F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Jul 2003 08:23:01 -0700 (PDT)
	(envelope-from roderick@stud187236.mobiel.utwente.nl)
Received: from stud187236.mobiel.utwente.nl (localhost [127.0.0.1])
	by stud187236.mobiel.utwente.nl (8.12.9/8.12.9) with ESMTP id h6KFKn4T028020
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Jul 2003 17:20:49 +0200 (CEST)
	(envelope-from roderick@stud187236.mobiel.utwente.nl)
Received: (from root@localhost)
	by stud187236.mobiel.utwente.nl (8.12.9/8.12.9/Submit) id h6KFKht5028018;
	Sun, 20 Jul 2003 17:20:43 +0200 (CEST)
Message-Id: <200307201520.h6KFKht5028018@stud187236.mobiel.utwente.nl>
Date: Sun, 20 Jul 2003 17:20:43 +0200 (CEST)
From: Roderick van Domburg <r.s.a.vandomburg@student.utwente.nl>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [patch] Several spelling and other minor corrections in sys/i386/include/bus_dma.h
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54658
>Category:       kern
>Synopsis:       [patch] Several spelling and other minor corrections in sys/i386/include/bus_dma.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 20 08:30:18 PDT 2003
>Closed-Date:    Wed Nov 05 15:56:33 PST 2003
>Last-Modified:  Wed Nov 05 15:56:33 PST 2003
>Originator:     Roderick van Domburg
>Release:        FreeBSD 5.1-CURRENT sparc64
>Organization:
University of Twente
>Environment:
System: FreeBSD stud187236.mobiel.utwente.nl 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Jul 1 12:10:05 CEST 2003 roderick@stud187236.mobiel.utwente.nl:/usr/obj/usr/src/sys/E250 sparc64


	
>Description:
Whilst browsing the kernel source I found several spelling mistakes.
in sys/i386/include/bus_dma.h.

Since I had time on my hands, I corrected them along a couple of
other minor documentation corrections (mostly whitespacing). I am
unsure if this should be fixed upstream?
>How-To-Repeat:
N/A
>Fix:
--- /usr/src/sys/i386/include/bus_dma.h.old     Sun Jul 20 17:05:53 2003
+++ /usr/src/sys/i386/include/bus_dma.h Sun Jul 20 17:09:33 2003
@@ -103,7 +103,7 @@
  *     A machine-dependent opaque type describing the characteristics
  *     of how to perform DMA mappings.  This structure encapsultes
  *     information concerning address and alignment restrictions, number
- *     of S/G  segments, amount of data per S/G segment, etc.
+ *     of S/G segments, amount of data per S/G segment, etc.
  */
 typedef struct bus_dma_tag     *bus_dma_tag_t;

@@ -132,7 +132,7 @@
 typedef int bus_dma_filter_t(void *, bus_addr_t);

 /*
- * A function that performs driver-specific syncronization on behalf of
+ * A function that performs driver-specific synchronization on behalf of
  * busdma.
  */
 typedef enum {
@@ -146,7 +146,7 @@
  * Allocate a device specific dma_tag encapsulating the constraints of
  * the parent tag in addition to other restrictions specified:
  *
- *     alignment:      alignment for segments.
+ *     alignment:      Alignment for segments.
  *     boundary:       Boundary that segments cannot cross.
  *     lowaddr:        Low restricted address that cannot appear in a mapping.
  *     highaddr:       High restricted address that cannot appear in a mapping.
@@ -179,21 +179,21 @@
 int bus_dmamap_create(bus_dma_tag_t dmat, int flags, bus_dmamap_t *mapp);

 /*
- * Destroy  a handle for mapping from kva/uva/physical
+ * Destroy a handle for mapping from kva/uva/physical
  * address space into bus device space.
  */
 int bus_dmamap_destroy(bus_dma_tag_t dmat, bus_dmamap_t map);

 /*
  * Allocate a piece of memory that can be efficiently mapped into
- * bus device space based on the constraints lited in the dma tag.
+ * bus device space based on the constraints listed in the dma tag.
  * A dmamap to for use with dmamap_load is also allocated.
  */
 int bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags,
                     bus_dmamap_t *mapp);

 /*
- * Free a piece of memory and it's allociated dmamap, that was allocated
+ * Free a piece of memory and its allocated dmamap, that was allocated
  * via bus_dmamem_alloc.
  */
 void bus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map);
@@ -213,7 +213,7 @@

 /*
  * Like bus_dmamap_callback but includes map size in bytes.  This is
- * defined as a separate interface to maintain compatiiblity for users
+ * defined as a separate interface to maintain compatibility for users
  * of bus_dmamap_callback_t--at some point these interfaces should be merged.
  */
 typedef void bus_dmamap_callback2_t(void *, bus_dma_segment_t *, int, bus_size_t, int);
@@ -235,7 +235,7 @@
                        int flags);

 /*
- * Perform a syncronization operation on the given map.
+ * Perform a synchronization operation on the given map.
  */
 void _bus_dmamap_sync(bus_dma_tag_t, bus_dmamap_t, bus_dmasync_op_t);
 #define bus_dmamap_sync(dmat, dmamap, op)              \
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: anholt 
State-Changed-When: Wed Nov 5 15:56:10 PST 2003 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54658 
>Unformatted:
