Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev Typo in comment. From OpenBSD.



details:   https://anonhg.NetBSD.org/src/rev/0f35724f190a
branches:  trunk
changeset: 553875:0f35724f190a
user:      mjl <mjl%NetBSD.org@localhost>
date:      Wed Oct 22 09:04:39 2003 +0000

description:
Typo in comment. From OpenBSD.

diffstat:

 sys/dev/ofw/ofw_pci.h          |   4 ++--
 sys/dev/pckbc/pckbd.c          |   6 +++---
 sys/dev/pckbc/pckbdreg.h       |   4 ++--
 sys/dev/pcmcia/if_awi_pcmcia.c |   6 +++---
 sys/dev/pcmcia/if_ray.c        |  28 ++++++++++++++--------------
 sys/dev/pcmcia/if_rayreg.h     |   8 ++++----
 sys/dev/pcmcia/pcmcia_cis.c    |   9 +++++----
 7 files changed, 33 insertions(+), 32 deletions(-)

diffs (259 lines):

diff -r 87bfe8c8a6ad -r 0f35724f190a sys/dev/ofw/ofw_pci.h
--- a/sys/dev/ofw/ofw_pci.h     Wed Oct 22 09:03:40 2003 +0000
+++ b/sys/dev/ofw/ofw_pci.h     Wed Oct 22 09:04:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofw_pci.h,v 1.4 2001/02/17 16:28:37 mrg Exp $  */
+/*     $NetBSD: ofw_pci.h,v 1.5 2003/10/22 09:04:39 mjl Exp $  */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  *     phys.lo cell:   llllllll llllllll llllllll llllllll
  *
  *     n       nonrelocatable
- *     p       prefectable
+ *     p       prefetchable
  *     t       aliased below 1MB (memory) or 64k (i/o)
  *     ss      space code
  *     b       bus number
diff -r 87bfe8c8a6ad -r 0f35724f190a sys/dev/pckbc/pckbd.c
--- a/sys/dev/pckbc/pckbd.c     Wed Oct 22 09:03:40 2003 +0000
+++ b/sys/dev/pckbc/pckbd.c     Wed Oct 22 09:04:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pckbd.c,v 1.37 2003/10/18 09:19:04 manu Exp $ */
+/* $NetBSD: pckbd.c,v 1.38 2003/10/22 09:06:24 mjl Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pckbd.c,v 1.37 2003/10/18 09:19:04 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pckbd.c,v 1.38 2003/10/22 09:06:24 mjl Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -198,7 +198,7 @@
         * is set to table 1; in fact, it would appear that some keyboards just
         * ignore the command altogether.  So by default, we use the AT scan
         * codes and have the 8042 translate them.  Unfortunately, this is
-        * known to not work on some PS/2 machines.  We try desparately to deal
+        * known to not work on some PS/2 machines.  We try desperately to deal
         * with this by checking the (lack of a) translate bit in the 8042 and
         * attempting to set the keyboard to XT mode.  If this all fails, well,
         * tough luck.
diff -r 87bfe8c8a6ad -r 0f35724f190a sys/dev/pckbc/pckbdreg.h
--- a/sys/dev/pckbc/pckbdreg.h  Wed Oct 22 09:03:40 2003 +0000
+++ b/sys/dev/pckbc/pckbdreg.h  Wed Oct 22 09:04:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pckbdreg.h,v 1.2 1998/04/07 13:43:16 hannken Exp $ */
+/* $NetBSD: pckbdreg.h,v 1.3 2003/10/22 09:06:24 mjl Exp $ */
 
 /*
  * Keyboard definitions
@@ -21,7 +21,7 @@
 #define        KBR_RESEND      0xFE    /* needs resend of command */
 #define        KBR_ACK         0xFA    /* received a valid command */
 #define        KBR_OVERRUN     0x00    /* flooded */
-#define        KBR_FAILURE     0xFD    /* diagnosic failure */
+#define        KBR_FAILURE     0xFD    /* diagnostic failure */
 #define        KBR_BREAK       0xF0    /* break code prefix - sent on key release */
 #define        KBR_RSTDONE     0xAA    /* reset complete */
 #define        KBR_ECHO        0xEE    /* echo response */
diff -r 87bfe8c8a6ad -r 0f35724f190a sys/dev/pcmcia/if_awi_pcmcia.c
--- a/sys/dev/pcmcia/if_awi_pcmcia.c    Wed Oct 22 09:03:40 2003 +0000
+++ b/sys/dev/pcmcia/if_awi_pcmcia.c    Wed Oct 22 09:04:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_awi_pcmcia.c,v 1.27 2003/10/13 08:10:48 dyoung Exp $ */
+/* $NetBSD: if_awi_pcmcia.c,v 1.28 2003/10/22 09:13:17 mjl Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -40,12 +40,12 @@
  * PCMCIA attachment for BayStack 650 802.11FH PCMCIA card,
  * based on the AMD 79c930 802.11 controller chip.
  *
- * This attachment can probably be trivally adapted for other FH and
+ * This attachment can probably be trivially adapted for other FH and
  * DS cards based on the same chipset.
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_awi_pcmcia.c,v 1.27 2003/10/13 08:10:48 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_awi_pcmcia.c,v 1.28 2003/10/22 09:13:17 mjl Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
diff -r 87bfe8c8a6ad -r 0f35724f190a sys/dev/pcmcia/if_ray.c
--- a/sys/dev/pcmcia/if_ray.c   Wed Oct 22 09:03:40 2003 +0000
+++ b/sys/dev/pcmcia/if_ray.c   Wed Oct 22 09:04:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ray.c,v 1.38 2003/10/13 06:43:22 dyoung Exp $       */
+/*     $NetBSD: if_ray.c,v 1.39 2003/10/22 09:13:17 mjl Exp $  */
 /* 
  * Copyright (c) 2000 Christian E. Hopps
  * All rights reserved.
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ray.c,v 1.38 2003/10/13 06:43:22 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ray.c,v 1.39 2003/10/22 09:13:17 mjl Exp $");
 
 #include "opt_inet.h"
 #include "bpfilter.h"
@@ -138,9 +138,9 @@
 #endif
 
 /*
- * the number of times the HW is reset in 30s before disabling
- * this is needed becuase resets take ~2s and currently pcmcia
- * spins for the reset
+ * The number of times the HW is reset in 30s before disabling.
+ * This is needed because resets take ~2s and currently pcmcia
+ * spins for the reset.
  */
 #ifndef        RAY_MAX_RESETS
 #define        RAY_MAX_RESETS  3
@@ -1882,7 +1882,7 @@
 breakout:
        /* see if we got one of the commands we are looking for */
        if (i > RAY_CCS_CMD_LAST)
-               ; /* nothign */
+               ; /* nothing */
        else if (stat == RAY_CCS_STATUS_FREE) {
                stat = RAY_CCS_STATUS_COMPLETE;
                if ((fp = ray_ccs_done(sc, ccs)))
@@ -1911,7 +1911,7 @@
  * to keep the values from being changed while read:  It checks
  * the `own' bit and if zero writes the current internal counter
  * value, it then sets the `own' bit to 1.  If the `own' bit was 1 it
- * incremenets its internal counter.  The user thus reads the counter
+ * increments its internal counter.  The user thus reads the counter
  * if the `own' bit is one and then sets the own bit to 0.
  */
 static void
@@ -2042,7 +2042,7 @@
 }
 
 /*
- * an unsolicted interrupt, i.e., the ECF is sending us a command
+ * an unsolicited interrupt, i.e., the ECF is sending us a command
  */
 static ray_cmd_func_t
 ray_rccs_intr(sc, ccs)
@@ -2061,7 +2061,7 @@
        rcmd = 0;
        switch (cmd) {
        /*
-        * unsolicted commands
+        * unsolicited commands
         */
        case RAY_ECMD_RX_DONE:
                ray_recv(sc, ccs);
@@ -2273,7 +2273,7 @@
        if ((cmdf & SCP_UPD_MASK) == 0)
                ray_set_pending(sc, track);
        else if (ray_cmd_is_running(sc, SCP_UPDATESUBCMD)) {
-               /* don't do timeout mechaniscm if subcmd already going */
+               /* don't do timeout mechanism if subcmd already going */
                sc->sc_scheduled |= cmdf;
        } else
                ray_set_pending(sc, cmdf | SCP_UPDATESUBCMD);
@@ -2447,7 +2447,7 @@
                if (!RAY_ECF_READY(sc))
                        break;
                /*
-                * give priority to LSB -- e.g., if previous loop reschuled
+                * give priority to LSB -- e.g., if previous loop rescheduled
                 * doing this command after calling the function won't catch
                 * if a later command sets an earlier bit
                 */
@@ -2618,7 +2618,7 @@
        sp->sp_promisc = sc->sc_promisc;
        PUT2(sp->sp_uniq_word, 0x0cbd);
        if (sc->sc_version == SC_BUILD_4) {
-       /* XXX whats this value anyway.. the std says 50us */
+       /* XXX what is this value anyway..? the std says 50us */
                /* XXX sp->sp_slot_time = 0x4e; */
                sp->sp_slot_time = 0x4e;
 #if 1
@@ -2994,9 +2994,9 @@
  */
 
 /*
- * issue a update params
+ * issue an "update params"
  *
- * expected to be called in sleapable context -- intended for user stuff
+ * expected to be called in sleepable context -- intended for user stuff
  */
 static int
 ray_user_update_params(sc, pr)
diff -r 87bfe8c8a6ad -r 0f35724f190a sys/dev/pcmcia/if_rayreg.h
--- a/sys/dev/pcmcia/if_rayreg.h        Wed Oct 22 09:03:40 2003 +0000
+++ b/sys/dev/pcmcia/if_rayreg.h        Wed Oct 22 09:04:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_rayreg.h,v 1.5 2002/03/10 11:55:50 martin Exp $     */
+/*     $NetBSD: if_rayreg.h,v 1.6 2003/10/22 09:13:17 mjl Exp $        */
 /* 
  * Copyright (c) 2000 Christian E. Hopps
  * All rights reserved.
@@ -172,7 +172,7 @@
        u_int16_t       csc_mrx_overflow;       /* ECF incs on rx overflow */
        u_int16_t       csc_mrx_cksum;  /* " on cksum error */
        u_int16_t       csc_rx_hcksum;  /* " on header cksum error */
-       u_int8_t        csc_rx_noise;           /* average RSL measuremant */
+       u_int8_t        csc_rx_noise;           /* average RSL measurement */
 };
 
 /* status area */
@@ -385,7 +385,7 @@
 #define        RAY_CMD_MAX             0x0e
 
 /*
- * unsolicted commands from the ECF
+ * unsolicited commands from the ECF
  */
 #define        RAY_ECMD_RX_DONE                0x80    /* process rx packet */
 #define        RAY_ECMD_REJOIN_DONE            0x81    /* rejoined the network */
@@ -499,7 +499,7 @@
        u_int8_t        c_antenna;
 };
 
-/* RAY_CMD_TX_REQ (for bulid 4) */
+/* RAY_CMD_TX_REQ (for build 4) */
 struct ray_cmd_tx_4 {
        u_int8_t        c_status;               /* ccs generic header */
        u_int8_t        c_cmd;                  /* " */
diff -r 87bfe8c8a6ad -r 0f35724f190a sys/dev/pcmcia/pcmcia_cis.c
--- a/sys/dev/pcmcia/pcmcia_cis.c       Wed Oct 22 09:03:40 2003 +0000
+++ b/sys/dev/pcmcia/pcmcia_cis.c       Wed Oct 22 09:04:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcmcia_cis.c,v 1.31 2002/08/15 10:37:02 christos Exp $ */
+/*     $NetBSD: pcmcia_cis.c,v 1.32 2003/10/22 09:13:17 mjl Exp $      */
 
 /*
  * Copyright (c) 1997 Marc Horowitz.  All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis.c,v 1.31 2002/08/15 10:37:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis.c,v 1.32 2003/10/22 09:13:17 mjl Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1081,8 +1081,9 @@
                                                                idx++;
                                                                /*
                                                                 * until
-                                                                * non-extensi
-                                                                * on byte
+                                                                * non-
+                                                                * extension
+                                                                * byte
                                                                 */
                                                        } while (reg2 & 0x80);
                                                }



Home | Main Index | Thread Index | Old Index