Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix typos in comments.



details:   https://anonhg.NetBSD.org/src/rev/22f4112d0c16
branches:  trunk
changeset: 483600:22f4112d0c16
user:      enami <enami%NetBSD.org@localhost>
date:      Tue Mar 14 01:29:30 2000 +0000

description:
Fix typos in comments.

diffstat:

 sys/dev/pci/pccbb.c |  48 ++++++++++++++++++++++++------------------------
 1 files changed, 24 insertions(+), 24 deletions(-)

diffs (201 lines):

diff -r 246341a1af2e -r 22f4112d0c16 sys/dev/pci/pccbb.c
--- a/sys/dev/pci/pccbb.c       Tue Mar 14 00:04:19 2000 +0000
+++ b/sys/dev/pci/pccbb.c       Tue Mar 14 01:29:30 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pccbb.c,v 1.31 2000/03/12 11:31:53 mycroft Exp $       */
+/*     $NetBSD: pccbb.c,v 1.32 2000/03/14 01:29:30 enami Exp $ */
 
 /*
  * Copyright (c) 1998, 1999 and 2000
@@ -173,7 +173,7 @@
 static void pccbb_pcmcia_do_mem_map __P((struct pcic_handle *, int));
 static void pccbb_powerhook __P((int, void *));
 
-/* bus-space allocation and disallocation functions */
+/* bus-space allocation and deallocation functions */
 #if rbus
 
 static int pccbb_rbus_cb_space_alloc __P((cardbus_chipset_tag_t, rbus_tag_t,
@@ -577,7 +577,7 @@
 #endif
        }
 
-       /* bus bridge initialisation */
+       /* bus bridge initialization */
        pccbb_chipinit(sc);
 
        base_memt = sc->sc_base_memt;  /* socket regs memory tag */
@@ -627,7 +627,7 @@
                pcireg_t busreg = pci_conf_read(pc, sc->sc_tag, PCI_BUSNUM);
                pcireg_t bhlc = pci_conf_read(pc, sc->sc_tag, PCI_BHLC_REG);
 
-               /* initialise cbslot_attach */
+               /* initialize cbslot_attach */
                cba.cba_busname = "cardbus";
                cba.cba_iot = sc->sc_iot;
                cba.cba_memt = sc->sc_memt;
@@ -679,7 +679,7 @@
 /*
  * static void pccbb_chipinit(struct pccbb_softc *sc)
  *
- *   This function initialise YENTA chip registers listed below:
+ *   This function initialize YENTA chip registers listed below:
  *     1) PCI command reg,
  *     2) PCI and CardBus latency timer,
  *     3) disable legacy (PCIC-compatible) io,
@@ -816,7 +816,7 @@
        rbus_tag_t rb;
 #endif
 
-       /* initialise pcmcia part in pccbb_softc */
+       /* initialize pcmcia part in pccbb_softc */
        ph->ph_parent = (struct device *)sc;
        ph->sock = sc->sc_function;
        ph->flags = 0;
@@ -843,7 +843,7 @@
        Pcic_write(ph, PCIC_CSC_INTR, PCIC_CSC_INTR_CD_ENABLE);
        Pcic_read(ph, PCIC_CSC);
 
-       /* initialise pcmcia bus attachment */
+       /* initialize pcmcia bus attachment */
        paa->paa_busname = "pcmcia";
        paa->pct = sc->sc_pct;
        paa->pch = ph;
@@ -961,7 +961,7 @@
  * static int pccbbintr_function(struct pccbb_softc *sc)
  *
  *    This function calls each interrupt handler registered at the
- *    bridge.  The interrupt handlers are called in registerd order.
+ *    bridge.  The interrupt handlers are called in registered order.
  */
 static int
 pccbbintr_function(sc)
@@ -995,14 +995,14 @@
                DPRINTF(("%s: 0x%08x", sc->sc_dev.dv_xname, sockevent));
                DPRINTF((" card inserted, 0x%08x\n", sockstate));
                sc->sc_flags |= CBB_CARDEXIST;
-               /* call pccard intterupt handler here */
+               /* call pccard interrupt handler here */
                if (sockstate & CB_SOCKET_STAT_16BIT) {
                        /* 16-bit card found */
 /*      pccbb_pcmcia_attach_card(&sc->sc_pcmcia_h); */
                        cardslot_event_throw(sc->sc_csc,
                            CARDSLOT_EVENT_INSERTION_16);
                } else if (sockstate & CB_SOCKET_STAT_CB) {
-                       /* cardbus card fuond */
+                       /* cardbus card found */
 /*      cardbus_attach_card(sc->sc_csc); */
                        cardslot_event_throw(sc->sc_csc,
                            CARDSLOT_EVENT_INSERTION_CB);
@@ -1541,8 +1541,8 @@
  *                                     void *arg)
  *
  *   This function registers an interrupt handler at the bridge, in
- *   order not to call the interrput handlers of child devices when
- *   a card-deletion interrput occurs.
+ *   order not to call the interrupt handlers of child devices when
+ *   a card-deletion interrupt occurs.
  *
  *   The arguments irq and level are not used.
  */
@@ -1584,8 +1584,8 @@
  *                                  void *arg)
  *
  *   This function registers an interrupt handler at the bridge, in
- *   order not to call the interrput handlers of child devices when
- *   a card-deletion interrput occurs.
+ *   order not to call the interrupt handlers of child devices when
+ *   a card-deletion interrupt occurs.
  *
  *   The arguments irq and level are not used.
  */
@@ -1601,7 +1601,7 @@
        DPRINTF(("pccbb_intr_establish start. %p\n", sc->sc_pil));
 
        if (sc->sc_pil == NULL) {
-               /* initialise bridge intr routing */
+               /* initialize bridge intr routing */
 
                switch (sc->sc_chipset) {
                case CB_TI113X:
@@ -1621,7 +1621,7 @@
        }
 
        /* 
-        * Allocate a room for interrut handler structure.
+        * Allocate a room for interrupt handler structure.
         */
        if (NULL == (newpil =
            (struct pccbb_intrhand_list *)malloc(sizeof(struct
@@ -1809,7 +1809,7 @@
  *                                  struct pcmcia_io_handle *pcihp
  *
  * This function only allocates I/O region for pccard. This function
- * never maps the allcated region to pccard I/O area.
+ * never maps the allocated region to pccard I/O area.
  *
  * XXX: The interface of this function is not very good, I believe.
  */
@@ -2065,7 +2065,7 @@
 /*
  * STATIC void pccbb_pcmcia_io_unmap(pcmcia_chipset_handle_t *h, int win)
  *
- * This function unmapss I/O region.  No return value.
+ * This function unmaps I/O region.  No return value.
  */
 STATIC void
 pccbb_pcmcia_io_unmap(pch, win)
@@ -2313,7 +2313,7 @@
  *                                   struct pcmcia_mem_handle *pcmhp)
  *
  * This function only allocates memory region for pccard. This
- * function never maps the allcated region to pccard memory area.
+ * function never maps the allocated region to pccard memory area.
  *
  * XXX: Why the argument of start address is not in?
  */
@@ -2389,7 +2389,7 @@
  * STATIC void pccbb_pcmcia_mem_free(pcmcia_chipset_handle_t pch,
  *                                   struct pcmcia_mem_handle *pcmhp)
  *
- * This function release the memory space allocated by the fuction
+ * This function release the memory space allocated by the function
  * pccbb_pcmcia_mem_alloc().
  */
 STATIC void
@@ -2410,7 +2410,7 @@
 /*
  * STATIC void pccbb_pcmcia_do_mem_map(struct pcic_handle *ph, int win)
  *
- * This function release the memory space allocated by the fuction
+ * This function release the memory space allocated by the function
  * pccbb_pcmcia_mem_alloc().
  */
 STATIC void
@@ -2521,7 +2521,7 @@
  *                                 struct pcmcia_mem_handle *pcmhp,
  *                                 bus_addr_t *offsetp, int *windowp)
  *
- * This function maps memory space allocated by the fuction
+ * This function maps memory space allocated by the function
  * pccbb_pcmcia_mem_alloc().
  */
 STATIC int
@@ -2596,7 +2596,7 @@
  * STATIC int pccbb_pcmcia_mem_unmap(pcmcia_chipset_handle_t pch,
  *                                   int window)
  *
- * This function unmaps memory space which mapped by the fuction
+ * This function unmaps memory space which mapped by the function
  * pccbb_pcmcia_mem_map().
  */
 STATIC void
@@ -3009,7 +3009,7 @@
                        continue;
                }
 
-               /* Both windows are engagad. */
+               /* Both windows are engaged. */
                if (win[0].win_flags == win[1].win_flags) {
                        /* same flags */
                        if (win[0].win_flags == chainp->wc_flags) {



Home | Main Index | Thread Index | Old Index