Browse Source

[src] Fix spelling in comments, debug messages and local variable names

Fixes in comments and debug messages:

  existance -> existence
  unecessary -> unnecessary
  occured -> occurred
  decriptor -> descriptor
  neccessary -> necessary
  addres, adress -> address
  initilize -> initialize
  sucessfully -> successfully
  paramter -> parameter
  acess -> access
  upto -> up to
  likelyhood ->likelihood
  thru -> through
  substracting -> subtracting
  lenght -> length
  isnt -> isn't
  interupt -> interrupt
  publically -> publicly (this one was not wrong, but unusual)
  recieve -> receive
  accessable -> accessible
  seperately -> separately
  pacet -> packet
  controled -> controlled
  dectect -> detect
  indicies -> indices
  extremly -> extremely
  boundry -> boundary
  usefull -> useful
  unuseable -> unusable
  auxilliary -> auxiliary
  embeded -> embedded
  enviroment -> environment
  sturcture -> structure
  complier -> compiler
  constructes -> constructs
  supress -> suppress
  intruduced -> introduced
  compatability -> compatibility
  verfication -> verification
  ths -> the
  reponse -> response

Fixes in local variable names:

  retreive -> retrieve

Most of these fixes were made using codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Stefan Weil 12 years ago
parent
commit
3fcb8cf8dc

+ 1
- 1
src/drivers/net/3c509.h View File

77
 /**************************************************************************
77
 /**************************************************************************
78
  *
78
  *
79
  * These define the EEPROM data structure.  They are used in the probe
79
  * These define the EEPROM data structure.  They are used in the probe
80
- * function to verify the existance of the adapter after having sent
80
+ * function to verify the existence of the adapter after having sent
81
  * the ID_Sequence.
81
  * the ID_Sequence.
82
  *
82
  *
83
  * There are others but only the ones we use are defined here.
83
  * There are others but only the ones we use are defined here.

+ 1
- 1
src/drivers/net/3c515.c View File

656
 corkscrew_found_device(int ioaddr, int irq,
656
 corkscrew_found_device(int ioaddr, int irq,
657
 		       int product_index, int options, struct nic *nic)
657
 		       int product_index, int options, struct nic *nic)
658
 {
658
 {
659
-	/* Direct copy from Becker 3c515.c with unecessary parts removed */
659
+	/* Direct copy from Becker 3c515.c with unnecessary parts removed */
660
 	vp->product_name = "3c515";
660
 	vp->product_name = "3c515";
661
 	vp->options = options;
661
 	vp->options = options;
662
 	if (options >= 0) {
662
 	if (options >= 0) {

+ 1
- 1
src/drivers/net/3c595.c View File

127
 		S_TX_COMPLETE | S_TX_AVAIL, BASE + VX_COMMAND);
127
 		S_TX_COMPLETE | S_TX_AVAIL, BASE + VX_COMMAND);
128
 
128
 
129
 /*
129
 /*
130
- * Attempt to get rid of any stray interrupts that occured during
130
+ * Attempt to get rid of any stray interrupts that occurred during
131
  * configuration.  On the i386 this isn't possible because one may
131
  * configuration.  On the i386 this isn't possible because one may
132
  * already be queued.  However, a single stray interrupt is
132
  * already be queued.  However, a single stray interrupt is
133
  * unimportant.
133
  * unimportant.

+ 1
- 1
src/drivers/net/amd8111e.h View File

574
 #define CSTATE  1 
574
 #define CSTATE  1 
575
 #define SSTATE  2 
575
 #define SSTATE  2 
576
 
576
 
577
-/* amd8111e decriptor flag definitions */
577
+/* amd8111e descriptor flag definitions */
578
 typedef enum {
578
 typedef enum {
579
 
579
 
580
 	OWN_BIT		=	(1 << 15),
580
 	OWN_BIT		=	(1 << 15),

+ 1
- 1
src/drivers/net/cs89x0.c View File

58
   Fri Nov 22 23:00:00 1996  Markus Gutschke  <gutschk@math.uni-muenster.de>
58
   Fri Nov 22 23:00:00 1996  Markus Gutschke  <gutschk@math.uni-muenster.de>
59
 
59
 
60
   * read the manuals for the CS89x0 chipsets and took note of all the
60
   * read the manuals for the CS89x0 chipsets and took note of all the
61
-    changes that will be neccessary in order to adapt Russel Nelson's code
61
+    changes that will be necessary in order to adapt Russel Nelson's code
62
     to the requirements of a BOOT-Prom
62
     to the requirements of a BOOT-Prom
63
 
63
 
64
   * 6
64
   * 6

+ 4
- 4
src/drivers/net/davicom.c View File

213
  phy_write_1bit(io_dcr9, PHY_DATA_1);
213
  phy_write_1bit(io_dcr9, PHY_DATA_1);
214
  phy_write_1bit(io_dcr9, PHY_DATA_0);
214
  phy_write_1bit(io_dcr9, PHY_DATA_0);
215
 
215
 
216
- /* Send Phy addres */
216
+ /* Send Phy address */
217
  for (i=0x10; i>0; i=i>>1)
217
  for (i=0x10; i>0; i=i>>1)
218
      phy_write_1bit(io_dcr9, phy_addr&i ? PHY_DATA_1: PHY_DATA_0);
218
      phy_write_1bit(io_dcr9, phy_addr&i ? PHY_DATA_1: PHY_DATA_0);
219
    
219
    
220
- /* Send register addres */
220
+ /* Send register address */
221
  for (i=0x10; i>0; i=i>>1)
221
  for (i=0x10; i>0; i=i>>1)
222
      phy_write_1bit(io_dcr9, location&i ? PHY_DATA_1: PHY_DATA_0);
222
      phy_write_1bit(io_dcr9, location&i ? PHY_DATA_1: PHY_DATA_0);
223
 
223
 
257
  phy_write_1bit(io_dcr9, PHY_DATA_0);
257
  phy_write_1bit(io_dcr9, PHY_DATA_0);
258
  phy_write_1bit(io_dcr9, PHY_DATA_1);
258
  phy_write_1bit(io_dcr9, PHY_DATA_1);
259
 
259
 
260
- /* Send Phy addres */
260
+ /* Send Phy address */
261
  for (i=0x10; i>0; i=i>>1)
261
  for (i=0x10; i>0; i=i>>1)
262
    phy_write_1bit(io_dcr9, phy_addr&i ? PHY_DATA_1: PHY_DATA_0);
262
    phy_write_1bit(io_dcr9, phy_addr&i ? PHY_DATA_1: PHY_DATA_0);
263
 
263
 
264
- /* Send register addres */
264
+ /* Send register address */
265
  for (i=0x10; i>0; i=i>>1)
265
  for (i=0x10; i>0; i=i>>1)
266
    phy_write_1bit(io_dcr9, location&i ? PHY_DATA_1: PHY_DATA_0);
266
    phy_write_1bit(io_dcr9, location&i ? PHY_DATA_1: PHY_DATA_0);
267
 
267
 

+ 10
- 10
src/drivers/net/dmfe.c View File

261
 		db->cr0_data = 0;
261
 		db->cr0_data = 0;
262
 		db->dm910x_chk_mode = 1;	/* Enter the check mode */
262
 		db->dm910x_chk_mode = 1;	/* Enter the check mode */
263
 	}
263
 	}
264
-	/* Initilize DM910X board */
264
+	/* Initialize DM910X board */
265
 	dmfe_init_dm910x(nic);
265
 	dmfe_init_dm910x(nic);
266
 
266
 
267
 	return;
267
 	return;
268
 }
268
 }
269
 
269
 
270
-/*	Initilize DM910X board
270
+/*	Initialize DM910X board
271
  *	Reset DM910X board
271
  *	Reset DM910X board
272
- *	Initilize TX/Rx descriptor chain structure
272
+ *	Initialize TX/Rx descriptor chain structure
273
  *	Send the set-up frame
273
  *	Send the set-up frame
274
  *	Enable Tx/Rx machine
274
  *	Enable Tx/Rx machine
275
  */
275
  */
307
 	if (!(db->media_mode & DMFE_AUTO))
307
 	if (!(db->media_mode & DMFE_AUTO))
308
 		db->op_mode = db->media_mode;	/* Force Mode */
308
 		db->op_mode = db->media_mode;	/* Force Mode */
309
 
309
 
310
-	/* Initiliaze Transmit/Receive decriptor and CR3/4 */
310
+	/* Initiliaze Transmit/Receive descriptor and CR3/4 */
311
 	dmfe_descriptor_init(nic, ioaddr);
311
 	dmfe_descriptor_init(nic, ioaddr);
312
 
312
 
313
 	/* tx descriptor start pointer */
313
 	/* tx descriptor start pointer */
572
 
572
 
573
 /*
573
 /*
574
  *	Send a setup frame for DM9132
574
  *	Send a setup frame for DM9132
575
- *	This setup frame initilize DM910X addres filter mode
575
+ *	This setup frame initialize DM910X address filter mode
576
 */
576
 */
577
 
577
 
578
 static void dm9132_id_table(struct nic *nic __unused)
578
 static void dm9132_id_table(struct nic *nic __unused)
623
 
623
 
624
 /*
624
 /*
625
  *	Send a setup frame for DM9102/DM9102A
625
  *	Send a setup frame for DM9102/DM9102A
626
- *	This setup frame initilize DM910X addres filter mode
626
+ *	This setup frame initialize DM910X address filter mode
627
  */
627
  */
628
 
628
 
629
 static void send_filter_frame(struct nic *nic)
629
 static void send_filter_frame(struct nic *nic)
903
 		phy_write_1bit(ioaddr, PHY_DATA_0);
903
 		phy_write_1bit(ioaddr, PHY_DATA_0);
904
 		phy_write_1bit(ioaddr, PHY_DATA_1);
904
 		phy_write_1bit(ioaddr, PHY_DATA_1);
905
 
905
 
906
-		/* Send Phy addres */
906
+		/* Send Phy address */
907
 		for (i = 0x10; i > 0; i = i >> 1)
907
 		for (i = 0x10; i > 0; i = i >> 1)
908
 			phy_write_1bit(ioaddr,
908
 			phy_write_1bit(ioaddr,
909
 				       phy_addr & i ? PHY_DATA_1 :
909
 				       phy_addr & i ? PHY_DATA_1 :
910
 				       PHY_DATA_0);
910
 				       PHY_DATA_0);
911
 
911
 
912
-		/* Send register addres */
912
+		/* Send register address */
913
 		for (i = 0x10; i > 0; i = i >> 1)
913
 		for (i = 0x10; i > 0; i = i >> 1)
914
 			phy_write_1bit(ioaddr,
914
 			phy_write_1bit(ioaddr,
915
 				       offset & i ? PHY_DATA_1 :
915
 				       offset & i ? PHY_DATA_1 :
959
 		phy_write_1bit(ioaddr, PHY_DATA_1);
959
 		phy_write_1bit(ioaddr, PHY_DATA_1);
960
 		phy_write_1bit(ioaddr, PHY_DATA_0);
960
 		phy_write_1bit(ioaddr, PHY_DATA_0);
961
 
961
 
962
-		/* Send Phy addres */
962
+		/* Send Phy address */
963
 		for (i = 0x10; i > 0; i = i >> 1)
963
 		for (i = 0x10; i > 0; i = i >> 1)
964
 			phy_write_1bit(ioaddr,
964
 			phy_write_1bit(ioaddr,
965
 				       phy_addr & i ? PHY_DATA_1 :
965
 				       phy_addr & i ? PHY_DATA_1 :
966
 				       PHY_DATA_0);
966
 				       PHY_DATA_0);
967
 
967
 
968
-		/* Send register addres */
968
+		/* Send register address */
969
 		for (i = 0x10; i > 0; i = i >> 1)
969
 		for (i = 0x10; i > 0; i = i >> 1)
970
 			phy_write_1bit(ioaddr,
970
 			phy_write_1bit(ioaddr,
971
 				       offset & i ? PHY_DATA_1 :
971
 				       offset & i ? PHY_DATA_1 :

+ 1
- 1
src/drivers/net/eepro100.c View File

910
  * Initial allocation & initialization of the rx ring.
910
  * Initial allocation & initialization of the rx ring.
911
  *
911
  *
912
  * @v netdev  		Device of rx ring.
912
  * @v netdev  		Device of rx ring.
913
- * @ret rc    		Non-zero if error occured
913
+ * @ret rc    		Non-zero if error occurred
914
  */
914
  */
915
 static int ifec_rx_setup ( struct net_device *netdev )
915
 static int ifec_rx_setup ( struct net_device *netdev )
916
 {
916
 {

+ 2
- 2
src/drivers/net/epic100.c View File

250
 
250
 
251
     outl(tmp, txcon);
251
     outl(tmp, txcon);
252
 
252
 
253
-    /* Give adress of RX and TX ring to the chip */
253
+    /* Give address of RX and TX ring to the chip */
254
     outl(virt_to_le32desc(&rx_ring), prcdar);
254
     outl(virt_to_le32desc(&rx_ring), prcdar);
255
     outl(virt_to_le32desc(&tx_ring), ptcdar);
255
     outl(virt_to_le32desc(&tx_ring), ptcdar);
256
 
256
 
365
  * Arguments: none
365
  * Arguments: none
366
  *
366
  *
367
  * returns:   1 if a packet was received.
367
  * returns:   1 if a packet was received.
368
- *            0 if no pacet was received.
368
+ *            0 if no packet was received.
369
  * side effects:
369
  * side effects:
370
  *            returns the packet in the array nic->packet.
370
  *            returns the packet in the array nic->packet.
371
  *            returns the length of the packet in nic->packetlen.
371
  *            returns the length of the packet in nic->packetlen.

+ 1
- 1
src/drivers/net/epic100.h View File

64
 #define INTR_RX_STATUS_OK	(0x00008000)	/* rx status valid. NI */
64
 #define INTR_RX_STATUS_OK	(0x00008000)	/* rx status valid. NI */
65
 #define INTR_PCI_TGT_ABT	(0x00004000)	/* PCI Target abort */
65
 #define INTR_PCI_TGT_ABT	(0x00004000)	/* PCI Target abort */
66
 #define INTR_PCI_MASTER_ABT	(0x00002000)	/* PCI Master abort */
66
 #define INTR_PCI_MASTER_ABT	(0x00002000)	/* PCI Master abort */
67
-#define INTR_PCI_PARITY_ERR	(0x00001000)	/* PCI adress parity error */
67
+#define INTR_PCI_PARITY_ERR	(0x00001000)	/* PCI address parity error */
68
 #define INTR_PCI_DATA_ERR	(0x00000800)	/* PCI data parity error */
68
 #define INTR_PCI_DATA_ERR	(0x00000800)	/* PCI data parity error */
69
 #define INTR_RX_THR_CROSSED	(0x00000400)	/* rx copy threshold crossed */
69
 #define INTR_RX_THR_CROSSED	(0x00000400)	/* rx copy threshold crossed */
70
 #define INTR_CNTFULL		(0x00000200)	/* Counter overflow */
70
 #define INTR_CNTFULL		(0x00000200)	/* Counter overflow */

+ 4
- 4
src/drivers/net/etherfabric.c View File

1566
 	efab_dword_t md_stat;
1566
 	efab_dword_t md_stat;
1567
 	int count;
1567
 	int count;
1568
 
1568
 
1569
-	/* wait upto 10ms */
1569
+	/* wait up to 10ms */
1570
 	for (count = 0; count < 1000; count++) {
1570
 	for (count = 0; count < 1000; count++) {
1571
 		falcon_readl ( efab, &md_stat, FCN_MD_STAT_REG_KER );
1571
 		falcon_readl ( efab, &md_stat, FCN_MD_STAT_REG_KER );
1572
 		if ( EFAB_DWORD_FIELD ( md_stat, FCN_MD_BSY ) == 0 ) {
1572
 		if ( EFAB_DWORD_FIELD ( md_stat, FCN_MD_BSY ) == 0 ) {
2195
 	falcon_xmac_writel ( efab, &reg, FCN_XX_PWR_RST_REG_MAC );
2195
 	falcon_xmac_writel ( efab, &reg, FCN_XX_PWR_RST_REG_MAC );
2196
 
2196
 
2197
 	/* Give some time for the link to establish */
2197
 	/* Give some time for the link to establish */
2198
-	for (count = 0; count < 1000; count++) { /* wait upto 10ms */
2198
+	for (count = 0; count < 1000; count++) { /* wait up to 10ms */
2199
 		falcon_xmac_readl ( efab, &reg, FCN_XX_PWR_RST_REG_MAC );
2199
 		falcon_xmac_readl ( efab, &reg, FCN_XX_PWR_RST_REG_MAC );
2200
 		if ( EFAB_DWORD_FIELD ( reg, FCN_XX_RST_XX_EN ) == 0 ) {
2200
 		if ( EFAB_DWORD_FIELD ( reg, FCN_XX_RST_XX_EN ) == 0 ) {
2201
 			falcon_setup_xaui ( efab );
2201
 			falcon_setup_xaui ( efab );
3395
 		falcon_read ( efab, &reg, FCN_SRM_CFG_REG_KER );
3395
 		falcon_read ( efab, &reg, FCN_SRM_CFG_REG_KER );
3396
 		if ( !EFAB_OWORD_FIELD ( reg, FCN_SRAM_OOB_BT_INIT_EN ) )
3396
 		if ( !EFAB_OWORD_FIELD ( reg, FCN_SRAM_OOB_BT_INIT_EN ) )
3397
 			return 0;
3397
 			return 0;
3398
-	} while (++count < 20);	/* wait upto 0.4 sec */
3398
+	} while (++count < 20);	/* wait up to 0.4 sec */
3399
 
3399
 
3400
 	EFAB_ERR ( "timed out waiting for SRAM reset\n");
3400
 	EFAB_ERR ( "timed out waiting for SRAM reset\n");
3401
 	return -ETIMEDOUT;
3401
 	return -ETIMEDOUT;
3426
 	falcon_write ( efab, &reg, FCN_RX_DC_CFG_REG_KER );
3426
 	falcon_write ( efab, &reg, FCN_RX_DC_CFG_REG_KER );
3427
 	
3427
 	
3428
 	/* Set number of RSS CPUs
3428
 	/* Set number of RSS CPUs
3429
-	 * bug7244: Increase filter depth to reduce RX_RESET likelyhood
3429
+	 * bug7244: Increase filter depth to reduce RX_RESET likelihood
3430
 	 */
3430
 	 */
3431
 	EFAB_POPULATE_OWORD_5 ( reg,
3431
 	EFAB_POPULATE_OWORD_5 ( reg,
3432
 				FCN_NUM_KER, 0,
3432
 				FCN_NUM_KER, 0,

+ 1
- 1
src/drivers/net/forcedeth.c View File

998
 
998
 
999
 	DBG ( "forcedeth_poll: status = %#04x\n", status );
999
 	DBG ( "forcedeth_poll: status = %#04x\n", status );
1000
 
1000
 
1001
-	/* Link change interrupt occured. Call always if link is down,
1001
+	/* Link change interrupt occurred. Call always if link is down,
1002
 	 * to give auto-neg a chance to finish */
1002
 	 * to give auto-neg a chance to finish */
1003
 	if ( ( status & NVREG_IRQ_LINK ) || ! ( netdev_link_ok ( netdev ) ) )
1003
 	if ( ( status & NVREG_IRQ_LINK ) || ! ( netdev_link_ok ( netdev ) ) )
1004
 		forcedeth_link_status ( netdev );
1004
 		forcedeth_link_status ( netdev );

+ 1
- 1
src/drivers/net/myri10ge.c View File

719
 		return 0;
719
 		return 0;
720
 	}
720
 	}
721
 
721
 
722
-	/* Initilize NonVolatile Storage state. */
722
+	/* Initialize NonVolatile Storage state. */
723
 
723
 
724
 	priv->nvs.word_len_log2 = 0;
724
 	priv->nvs.word_len_log2 = 0;
725
 	priv->nvs.size		= hdr.eeprom_len;
725
 	priv->nvs.size		= hdr.eeprom_len;

+ 1
- 1
src/drivers/net/p80211hdr.h View File

258
 /*================================================================*/
258
 /*================================================================*/
259
 /* Function Declarations */
259
 /* Function Declarations */
260
 
260
 
261
-/* Frame and header lenght macros */
261
+/* Frame and header length macros */
262
 
262
 
263
 #define WLAN_CTL_FRAMELEN(fstype) (\
263
 #define WLAN_CTL_FRAMELEN(fstype) (\
264
 	(fstype) == WLAN_FSTYPE_BLOCKACKREQ	? 24 : \
264
 	(fstype) == WLAN_FSTYPE_BLOCKACKREQ	? 24 : \

+ 1
- 1
src/drivers/net/pcnet32.c View File

407
 	/*
407
 	/*
408
 	 * On selected chips turn on the BCR18:NOUFLO bit. This stops transmit
408
 	 * On selected chips turn on the BCR18:NOUFLO bit. This stops transmit
409
 	 * starting until the packet is loaded. Strike one for reliability, lose
409
 	 * starting until the packet is loaded. Strike one for reliability, lose
410
-	 * one for latency - although on PCI this isnt a big loss. Older chips
410
+	 * one for latency - although on PCI this isn't a big loss. Older chips
411
 	 * have FIFO's smaller than a packet, so you can't do this.
411
 	 * have FIFO's smaller than a packet, so you can't do this.
412
 	 * Turn on BCR18:BurstRdEn and BCR18:BurstWrEn.
412
 	 * Turn on BCR18:BurstRdEn and BCR18:BurstWrEn.
413
 	 */
413
 	 */

+ 2
- 2
src/drivers/net/sis190.h View File

77
 	IntrStatus		= 0x20,
77
 	IntrStatus		= 0x20,
78
 	IntrMask		= 0x24,
78
 	IntrMask		= 0x24,
79
 	IntrControl		= 0x28,
79
 	IntrControl		= 0x28,
80
-	IntrTimer		= 0x2c,	// unused (Interupt Timer)
80
+	IntrTimer		= 0x2c,	// unused (Interrupt Timer)
81
 	PMControl		= 0x30,	// unused (Power Mgmt Control/Status)
81
 	PMControl		= 0x30,	// unused (Power Mgmt Control/Status)
82
 	rsv2			= 0x34,	// reserved
82
 	rsv2			= 0x34,	// reserved
83
 	ROMControl		= 0x38,
83
 	ROMControl		= 0x38,
218
 	RxSizeMask	= 0x0000ffff
218
 	RxSizeMask	= 0x0000ffff
219
 	/*
219
 	/*
220
 	* The asic could apparently do vlan, TSO, jumbo (sis191 only) and
220
 	* The asic could apparently do vlan, TSO, jumbo (sis191 only) and
221
-	* provide two (unused with Linux) Tx queues. No publically
221
+	* provide two (unused with Linux) Tx queues. No publicly
222
 	* available documentation alas.
222
 	* available documentation alas.
223
 	*/
223
 	*/
224
 };
224
 };

+ 5
- 5
src/drivers/net/sis900.c View File

328
  *
328
  *
329
  * Side effects:
329
  * Side effects:
330
  *            leaves the ioaddress of the sis900 chip in the variable ioaddr.
330
  *            leaves the ioaddress of the sis900 chip in the variable ioaddr.
331
- *            leaves the sis900 initialized, and ready to recieve packets.
331
+ *            leaves the sis900 initialized, and ready to receive packets.
332
  *
332
  *
333
  * Returns:   struct nic *:          pointer to NIC data structure
333
  * Returns:   struct nic *:          pointer to NIC data structure
334
  */
334
  */
394
 
394
 
395
         mii_status = sis900_mdio_read(phy_addr, MII_STATUS);
395
         mii_status = sis900_mdio_read(phy_addr, MII_STATUS);
396
         if (mii_status == 0xffff || mii_status == 0x0000)
396
         if (mii_status == 0xffff || mii_status == 0x0000)
397
-            /* the mii is not accessable, try next one */
397
+            /* the mii is not accessible, try next one */
398
             continue;
398
             continue;
399
                 
399
                 
400
         phy_id0 = sis900_mdio_read(phy_addr, MII_PHY_ID0);
400
         phy_id0 = sis900_mdio_read(phy_addr, MII_PHY_ID0);
508
 /* 
508
 /* 
509
    Read and write the MII management registers using software-generated
509
    Read and write the MII management registers using software-generated
510
    serial MDIO protocol. Note that the command bits and data bits are
510
    serial MDIO protocol. Note that the command bits and data bits are
511
-   send out seperately 
511
+   sent out separately
512
 */
512
 */
513
 
513
 
514
 static void sis900_mdio_idle(long mdio_addr)
514
 static void sis900_mdio_idle(long mdio_addr)
1171
  *
1171
  *
1172
  * Arguments: struct nic *nic:          NIC data structure
1172
  * Arguments: struct nic *nic:          NIC data structure
1173
  *
1173
  *
1174
- * Returns:   1 if a packet was recieved.
1175
- *            0 if no pacet was recieved.
1174
+ * Returns:   1 if a packet was received.
1175
+ *            0 if no packet was received.
1176
  *
1176
  *
1177
  * Side effects:
1177
  * Side effects:
1178
  *            Returns (copies) the packet to the array nic->packet.
1178
  *            Returns (copies) the packet to the array nic->packet.

+ 4
- 4
src/drivers/net/skge.h View File

1095
 
1095
 
1096
 	PHY_ST_PRE_SUP	= 1<<6, /* Bit  6:	Preamble Suppression */
1096
 	PHY_ST_PRE_SUP	= 1<<6, /* Bit  6:	Preamble Suppression */
1097
 	PHY_ST_AN_OVER	= 1<<5, /* Bit  5:	Auto-Negotiation Over */
1097
 	PHY_ST_AN_OVER	= 1<<5, /* Bit  5:	Auto-Negotiation Over */
1098
-	PHY_ST_REM_FLT	= 1<<4, /* Bit  4:	Remote Fault Condition Occured */
1098
+	PHY_ST_REM_FLT	= 1<<4, /* Bit  4:	Remote Fault Condition Occurred */
1099
 	PHY_ST_AN_CAP	= 1<<3, /* Bit  3:	Auto-Negotiation Capability */
1099
 	PHY_ST_AN_CAP	= 1<<3, /* Bit  3:	Auto-Negotiation Capability */
1100
 	PHY_ST_LSYNC	= 1<<2, /* Bit  2:	Link Synchronized */
1100
 	PHY_ST_LSYNC	= 1<<2, /* Bit  2:	Link Synchronized */
1101
 	PHY_ST_JAB_DET	= 1<<1, /* Bit  1:	Jabber Detected */
1101
 	PHY_ST_JAB_DET	= 1<<1, /* Bit  1:	Jabber Detected */
1778
 	GM_GPSR_LINK_UP		= 1<<12, /* Bit 12:	Link Up Status */
1778
 	GM_GPSR_LINK_UP		= 1<<12, /* Bit 12:	Link Up Status */
1779
 	GM_GPSR_PAUSE		= 1<<11, /* Bit 11:	Pause State */
1779
 	GM_GPSR_PAUSE		= 1<<11, /* Bit 11:	Pause State */
1780
 	GM_GPSR_TX_ACTIVE	= 1<<10, /* Bit 10:	Tx in Progress */
1780
 	GM_GPSR_TX_ACTIVE	= 1<<10, /* Bit 10:	Tx in Progress */
1781
-	GM_GPSR_EXC_COL		= 1<<9,	/* Bit  9:	Excessive Collisions Occured */
1782
-	GM_GPSR_LAT_COL		= 1<<8,	/* Bit  8:	Late Collisions Occured */
1781
+	GM_GPSR_EXC_COL		= 1<<9,	/* Bit  9:	Excessive Collisions Occurred */
1782
+	GM_GPSR_LAT_COL		= 1<<8,	/* Bit  8:	Late Collisions Occurred */
1783
 
1783
 
1784
 	GM_GPSR_PHY_ST_CH	= 1<<5,	/* Bit  5:	PHY Status Change */
1784
 	GM_GPSR_PHY_ST_CH	= 1<<5,	/* Bit  5:	PHY Status Change */
1785
 	GM_GPSR_GIG_SPEED	= 1<<4,	/* Bit  4:	Gigabit Speed (1 = 1000 Mbps) */
1785
 	GM_GPSR_GIG_SPEED	= 1<<4,	/* Bit  4:	Gigabit Speed (1 = 1000 Mbps) */
2284
 	XM_ST_BC	= 1<<7,		/* Bit  7:	Broadcast packet */
2284
 	XM_ST_BC	= 1<<7,		/* Bit  7:	Broadcast packet */
2285
 	XM_ST_MC	= 1<<6,		/* Bit  6:	Multicast packet */
2285
 	XM_ST_MC	= 1<<6,		/* Bit  6:	Multicast packet */
2286
 	XM_ST_UC	= 1<<5,		/* Bit  5:	Unicast packet */
2286
 	XM_ST_UC	= 1<<5,		/* Bit  5:	Unicast packet */
2287
-	XM_ST_TX_UR	= 1<<4,		/* Bit  4:	FIFO Underrun occured */
2287
+	XM_ST_TX_UR	= 1<<4,		/* Bit  4:	FIFO Underrun occurred */
2288
 	XM_ST_CS_ERR	= 1<<3,		/* Bit  3:	Carrier Sense Error */
2288
 	XM_ST_CS_ERR	= 1<<3,		/* Bit  3:	Carrier Sense Error */
2289
 	XM_ST_LAT_COL	= 1<<2,		/* Bit  2:	Late Collision Error */
2289
 	XM_ST_LAT_COL	= 1<<2,		/* Bit  2:	Late Collision Error */
2290
 	XM_ST_MUL_COL	= 1<<1,		/* Bit  1:	Multiple Collisions */
2290
 	XM_ST_MUL_COL	= 1<<1,		/* Bit  1:	Multiple Collisions */

+ 1
- 1
src/drivers/net/sky2.c View File

783
 	sky2_write8(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_RST_CLR);
783
 	sky2_write8(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_RST_CLR);
784
 	sky2_write16(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_OPER_ON);
784
 	sky2_write16(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_OPER_ON);
785
 
785
 
786
-	/* On chips without ram buffer, pause is controled by MAC level */
786
+	/* On chips without ram buffer, pause is controlled by MAC level */
787
 	if (!(hw->flags & SKY2_HW_RAM_BUFFER)) {
787
 	if (!(hw->flags & SKY2_HW_RAM_BUFFER)) {
788
 		sky2_write8(hw, SK_REG(port, RX_GMF_LP_THR), 768/8);
788
 		sky2_write8(hw, SK_REG(port, RX_GMF_LP_THR), 768/8);
789
 		sky2_write8(hw, SK_REG(port, RX_GMF_UP_THR), 1024/8);
789
 		sky2_write8(hw, SK_REG(port, RX_GMF_UP_THR), 1024/8);

+ 3
- 3
src/drivers/net/sky2.h View File

1056
 
1056
 
1057
 	PHY_ST_PRE_SUP	= 1<<6, /* Bit  6:	Preamble Suppression */
1057
 	PHY_ST_PRE_SUP	= 1<<6, /* Bit  6:	Preamble Suppression */
1058
 	PHY_ST_AN_OVER	= 1<<5, /* Bit  5:	Auto-Negotiation Over */
1058
 	PHY_ST_AN_OVER	= 1<<5, /* Bit  5:	Auto-Negotiation Over */
1059
-	PHY_ST_REM_FLT	= 1<<4, /* Bit  4:	Remote Fault Condition Occured */
1059
+	PHY_ST_REM_FLT	= 1<<4, /* Bit  4:	Remote Fault Condition Occurred */
1060
 	PHY_ST_AN_CAP	= 1<<3, /* Bit  3:	Auto-Negotiation Capability */
1060
 	PHY_ST_AN_CAP	= 1<<3, /* Bit  3:	Auto-Negotiation Capability */
1061
 	PHY_ST_LSYNC	= 1<<2, /* Bit  2:	Link Synchronized */
1061
 	PHY_ST_LSYNC	= 1<<2, /* Bit  2:	Link Synchronized */
1062
 	PHY_ST_JAB_DET	= 1<<1, /* Bit  1:	Jabber Detected */
1062
 	PHY_ST_JAB_DET	= 1<<1, /* Bit  1:	Jabber Detected */
1587
 	GM_GPSR_LINK_UP		= 1<<12, /* Bit 12:	Link Up Status */
1587
 	GM_GPSR_LINK_UP		= 1<<12, /* Bit 12:	Link Up Status */
1588
 	GM_GPSR_PAUSE		= 1<<11, /* Bit 11:	Pause State */
1588
 	GM_GPSR_PAUSE		= 1<<11, /* Bit 11:	Pause State */
1589
 	GM_GPSR_TX_ACTIVE	= 1<<10, /* Bit 10:	Tx in Progress */
1589
 	GM_GPSR_TX_ACTIVE	= 1<<10, /* Bit 10:	Tx in Progress */
1590
-	GM_GPSR_EXC_COL		= 1<<9,	/* Bit  9:	Excessive Collisions Occured */
1591
-	GM_GPSR_LAT_COL		= 1<<8,	/* Bit  8:	Late Collisions Occured */
1590
+	GM_GPSR_EXC_COL		= 1<<9,	/* Bit  9:	Excessive Collisions Occurred */
1591
+	GM_GPSR_LAT_COL		= 1<<8,	/* Bit  8:	Late Collisions Occurred */
1592
 
1592
 
1593
 	GM_GPSR_PHY_ST_CH	= 1<<5,	/* Bit  5:	PHY Status Change */
1593
 	GM_GPSR_PHY_ST_CH	= 1<<5,	/* Bit  5:	PHY Status Change */
1594
 	GM_GPSR_GIG_SPEED	= 1<<4,	/* Bit  4:	Gigabit Speed (1 = 1000 Mbps) */
1594
 	GM_GPSR_GIG_SPEED	= 1<<4,	/* Bit  4:	Gigabit Speed (1 = 1000 Mbps) */

+ 2
- 2
src/drivers/net/smc9000.h View File

107
 #define RPC_LED_10      (0x02)  // LED = 10Mbps link detect
107
 #define RPC_LED_10      (0x02)  // LED = 10Mbps link detect
108
 #define RPC_LED_FD      (0x03)  // LED = Full Duplex Mode
108
 #define RPC_LED_FD      (0x03)  // LED = Full Duplex Mode
109
 #define RPC_LED_TX_RX   (0x04)  // LED = TX or RX packet occurred
109
 #define RPC_LED_TX_RX   (0x04)  // LED = TX or RX packet occurred
110
-#define RPC_LED_100     (0x05)  // LED = 100Mbps link dectect
110
+#define RPC_LED_100     (0x05)  // LED = 100Mbps link detect
111
 #define RPC_LED_TX      (0x06)  // LED = TX packet occurred
111
 #define RPC_LED_TX      (0x06)  // LED = TX packet occurred
112
 #define RPC_LED_RX      (0x07)  // LED = RX packet occurred
112
 #define RPC_LED_RX      (0x07)  // LED = RX packet occurred
113
 #define RPC_DEFAULT (RPC_ANEG | (RPC_LED_100 << RPC_LSXA_SHFT) | (RPC_LED_FD << RPC_LSXB_SHFT) | RPC_SPEED | RPC_DPLX)
113
 #define RPC_DEFAULT (RPC_ANEG | (RPC_LED_100 << RPC_LSXA_SHFT) | (RPC_LED_FD << RPC_LSXB_SHFT) | RPC_SPEED | RPC_DPLX)
125
 #define RPC_LED_10      (0x02)  // LED = 10Mbps link detect
125
 #define RPC_LED_10      (0x02)  // LED = 10Mbps link detect
126
 #define RPC_LED_FD      (0x03)  // LED = Full Duplex Mode
126
 #define RPC_LED_FD      (0x03)  // LED = Full Duplex Mode
127
 #define RPC_LED_TX_RX   (0x04)  // LED = TX or RX packet occurred
127
 #define RPC_LED_TX_RX   (0x04)  // LED = TX or RX packet occurred
128
-#define RPC_LED_100     (0x05)  // LED = 100Mbps link dectect
128
+#define RPC_LED_100     (0x05)  // LED = 100Mbps link detect
129
 #define RPC_LED_TX      (0x06)  // LED = TX packet occurred
129
 #define RPC_LED_TX      (0x06)  // LED = TX packet occurred
130
 #define RPC_LED_RX      (0x07)  // LED = RX packet occurred
130
 #define RPC_LED_RX      (0x07)  // LED = RX packet occurred
131
 #define RPC_DEFAULT (RPC_ANEG | (RPC_LED_100 << RPC_LSXA_SHFT) | (RPC_LED_FD << RPC_LSXB_SHFT) | RPC_SPEED | RPC_DPLX)
131
 #define RPC_DEFAULT (RPC_ANEG | (RPC_LED_100 << RPC_LSXA_SHFT) | (RPC_LED_FD << RPC_LSXB_SHFT) | RPC_SPEED | RPC_DPLX)

+ 3
- 3
src/drivers/net/sundance.c View File

258
 	const char *nic_name;
258
 	const char *nic_name;
259
 	/* Frequently used values */
259
 	/* Frequently used values */
260
 
260
 
261
-	unsigned int cur_rx;	/* Producer/consumer ring indicies */
261
+	unsigned int cur_rx;	/* Producer/consumer ring indices */
262
 	unsigned int mtu;
262
 	unsigned int mtu;
263
 
263
 
264
 	/* These values keep track of the tranceiver/media in use */
264
 	/* These values keep track of the tranceiver/media in use */
441
 /**************************************************************************
441
 /**************************************************************************
442
 POLL - Wait for a frame
442
 POLL - Wait for a frame
443
 ***************************************************************************/
443
 ***************************************************************************/
444
-static int sundance_poll(struct nic *nic, int retreive)
444
+static int sundance_poll(struct nic *nic, int retrieve)
445
 {
445
 {
446
 	/* return true if there's an ethernet packet ready to read */
446
 	/* return true if there's an ethernet packet ready to read */
447
 	/* nic->packet should contain data on return */
447
 	/* nic->packet should contain data on return */
455
 		return 0;
455
 		return 0;
456
 
456
 
457
 	/* There is a packet ready */
457
 	/* There is a packet ready */
458
-	if(!retreive)
458
+	if(!retrieve)
459
 		return 1;
459
 		return 1;
460
 
460
 
461
 	intr_status = inw(nic->ioaddr + IntrStatus);
461
 	intr_status = inw(nic->ioaddr + IntrStatus);

+ 3
- 3
src/drivers/net/tlan.c View File

202
 	unsigned short vendor_id;	/* PCI Vendor code */
202
 	unsigned short vendor_id;	/* PCI Vendor code */
203
 	unsigned short dev_id;	/* PCI Device code */
203
 	unsigned short dev_id;	/* PCI Device code */
204
 	const char *nic_name;
204
 	const char *nic_name;
205
-	unsigned int cur_rx, dirty_rx;	/* Producer/consumer ring indicies */
205
+	unsigned int cur_rx, dirty_rx;	/* Producer/consumer ring indices */
206
 	unsigned rx_buf_sz;	/* Based on mtu + Slack */
206
 	unsigned rx_buf_sz;	/* Based on mtu + Slack */
207
 	struct TLanList *txList;
207
 	struct TLanList *txList;
208
 	u32 txHead;
208
 	u32 txHead;
1085
 *				for this device.
1085
 *				for this device.
1086
 *		phy		The address of the PHY to be queried.
1086
 *		phy		The address of the PHY to be queried.
1087
 *		reg		The register whose contents are to be
1087
 *		reg		The register whose contents are to be
1088
-*				retreived.
1088
+*				retrieved.
1089
 *		val		A pointer to a variable to store the
1089
 *		val		A pointer to a variable to store the
1090
 *				retrieved value.
1090
 *				retrieved value.
1091
 *
1091
 *
1092
-*	This function uses the TLAN's MII bus to retreive the contents
1092
+*	This function uses the TLAN's MII bus to retrieve the contents
1093
 *	of a given register on a PHY.  It sends the appropriate info
1093
 *	of a given register on a PHY.  It sends the appropriate info
1094
 *	and then reads the 16-bit register value from the MII bus via
1094
 *	and then reads the 16-bit register value from the MII bus via
1095
 *	the TLAN SIO register.
1095
 *	the TLAN SIO register.

+ 5
- 5
src/drivers/net/via-rhine.c View File

288
  */
288
  */
289
 
289
 
290
 #define EECSR_EEPR		0x80	/* eeprom programed status, 73h means programed */
290
 #define EECSR_EEPR		0x80	/* eeprom programed status, 73h means programed */
291
-#define EECSR_EMBP		0x40	/* eeprom embeded programming */
291
+#define EECSR_EMBP		0x40	/* eeprom embedded programming */
292
 #define EECSR_AUTOLD		0x20	/* eeprom content reload */
292
 #define EECSR_AUTOLD		0x20	/* eeprom content reload */
293
 #define EECSR_DPM		0x10	/* eeprom direct programming */
293
 #define EECSR_DPM		0x10	/* eeprom direct programming */
294
 #define EECSR_CS		0x08	/* eeprom CS pin */
294
 #define EECSR_CS		0x08	/* eeprom CS pin */
322
  * Bits in the CFGA register
322
  * Bits in the CFGA register
323
  */
323
  */
324
 
324
 
325
-#define CFGA_EELOAD		0x80	/* enable eeprom embeded and direct programming */
325
+#define CFGA_EELOAD		0x80	/* enable eeprom embedded and direct programming */
326
 #define CFGA_JUMPER		0x40
326
 #define CFGA_JUMPER		0x40
327
 #define CFGA_MTGPIO		0x08
327
 #define CFGA_MTGPIO		0x08
328
 #define CFGA_T10EN		0x02
328
 #define CFGA_T10EN		0x02
693
 static void rhine_init_ring (struct nic *dev);
693
 static void rhine_init_ring (struct nic *dev);
694
 static void rhine_disable (struct nic *nic);
694
 static void rhine_disable (struct nic *nic);
695
 static void rhine_reset (struct nic *nic);
695
 static void rhine_reset (struct nic *nic);
696
-static int rhine_poll (struct nic *nic, int retreive);
696
+static int rhine_poll (struct nic *nic, int retrieve);
697
 static void rhine_transmit (struct nic *nic, const char *d, unsigned int t,
697
 static void rhine_transmit (struct nic *nic, const char *d, unsigned int t,
698
 			    unsigned int s, const char *p);
698
 			    unsigned int s, const char *p);
699
 static void reload_eeprom(int ioaddr);
699
 static void reload_eeprom(int ioaddr);
1286
 #define IOSYNC  do { inb(nic->ioaddr + StationAddr); } while (0)
1286
 #define IOSYNC  do { inb(nic->ioaddr + StationAddr); } while (0)
1287
 
1287
 
1288
 static int
1288
 static int
1289
-rhine_poll (struct nic *nic, int retreive)
1289
+rhine_poll (struct nic *nic, int retrieve)
1290
 {
1290
 {
1291
     struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
1291
     struct rhine_private *tp = (struct rhine_private *) nic->priv_data;
1292
     int rxstatus, good = 0;;
1292
     int rxstatus, good = 0;;
1295
     {
1295
     {
1296
         unsigned int intr_status;
1296
         unsigned int intr_status;
1297
         /* There is a packet ready */
1297
         /* There is a packet ready */
1298
-        if(!retreive)
1298
+        if(!retrieve)
1299
             return 1;
1299
             return 1;
1300
 
1300
 
1301
         intr_status = inw(nic->ioaddr + IntrStatus);
1301
         intr_status = inw(nic->ioaddr + IntrStatus);

+ 1
- 1
src/drivers/net/via-velocity.c View File

125
 /* IP_byte_align[] is used for IP header DWORD byte aligned
125
 /* IP_byte_align[] is used for IP header DWORD byte aligned
126
    0: indicate the IP header won't be DWORD byte aligned.(Default) .
126
    0: indicate the IP header won't be DWORD byte aligned.(Default) .
127
    1: indicate the IP header will be DWORD byte aligned.
127
    1: indicate the IP header will be DWORD byte aligned.
128
-      In some enviroment, the IP header should be DWORD byte aligned,
128
+      In some environment, the IP header should be DWORD byte aligned,
129
       or the packet will be droped when we receive it. (eg: IPVS)
129
       or the packet will be droped when we receive it. (eg: IPVS)
130
 */
130
 */
131
 VELOCITY_PARAM(IP_byte_align, "Enable IP header dword aligned");
131
 VELOCITY_PARAM(IP_byte_align, "Enable IP header dword aligned");

+ 1
- 1
src/drivers/net/via-velocity.h View File

878
  *	Bits in the EECSR register
878
  *	Bits in the EECSR register
879
  */
879
  */
880
 
880
 
881
-#define EECSR_EMBP          0x40	/* eeprom embeded programming */
881
+#define EECSR_EMBP          0x40	/* eeprom embedded programming */
882
 #define EECSR_RELOAD        0x20	/* eeprom content reload */
882
 #define EECSR_RELOAD        0x20	/* eeprom content reload */
883
 #define EECSR_DPM           0x10	/* eeprom direct programming */
883
 #define EECSR_DPM           0x10	/* eeprom direct programming */
884
 #define EECSR_ECS           0x08	/* eeprom CS pin */
884
 #define EECSR_ECS           0x08	/* eeprom CS pin */

+ 1
- 1
src/drivers/net/virtio-net.c View File

69
  * Linux source.
69
  * Linux source.
70
  */
70
  */
71
 
71
 
72
-/* Virtqueue indicies */
72
+/* Virtqueue indices */
73
 enum {
73
 enum {
74
 	RX_INDEX = 0,
74
 	RX_INDEX = 0,
75
 	TX_INDEX,
75
 	TX_INDEX,

+ 1
- 1
src/drivers/net/vxge/vxge_main.c View File

252
 /*
252
 /*
253
  * vxge_irq - enable or Disable interrupts
253
  * vxge_irq - enable or Disable interrupts
254
  *
254
  *
255
- * @netdev   netdevice sturcture reference
255
+ * @netdev   netdevice structure reference
256
  * @action   requested interrupt action
256
  * @action   requested interrupt action
257
  */
257
  */
258
 static void vxge_irq(struct net_device *netdev __unused, int action)
258
 static void vxge_irq(struct net_device *netdev __unused, int action)

+ 1
- 1
src/include/ipxe/iscsi.h View File

36
 		 */
36
 		 */
37
 		uint8_t data_len[3];
37
 		uint8_t data_len[3];
38
 	} bytes;
38
 	} bytes;
39
-	/** Ths data length (measured in bytes), in network byte
39
+	/** The data length (measured in bytes), in network byte
40
 	 * order, with ahs_len as the first byte.
40
 	 * order, with ahs_len as the first byte.
41
 	 */
41
 	 */
42
 	uint32_t ahs_and_data_len;
42
 	uint32_t ahs_and_data_len;

+ 1
- 1
src/include/ipxe/pci.h View File

172
 #define  PCI_PM_CAP_PME_CLOCK	0x0008	/* PME clock required */
172
 #define  PCI_PM_CAP_PME_CLOCK	0x0008	/* PME clock required */
173
 #define  PCI_PM_CAP_RESERVED    0x0010  /* Reserved field */
173
 #define  PCI_PM_CAP_RESERVED    0x0010  /* Reserved field */
174
 #define  PCI_PM_CAP_DSI		0x0020	/* Device specific initialization */
174
 #define  PCI_PM_CAP_DSI		0x0020	/* Device specific initialization */
175
-#define  PCI_PM_CAP_AUX_POWER	0x01C0	/* Auxilliary power support mask */
175
+#define  PCI_PM_CAP_AUX_POWER	0x01C0	/* Auxiliary power support mask */
176
 #define  PCI_PM_CAP_D1		0x0200	/* D1 power state support */
176
 #define  PCI_PM_CAP_D1		0x0200	/* D1 power state support */
177
 #define  PCI_PM_CAP_D2		0x0400	/* D2 power state support */
177
 #define  PCI_PM_CAP_D2		0x0400	/* D2 power state support */
178
 #define  PCI_PM_CAP_PME		0x0800	/* PME pin supported */
178
 #define  PCI_PM_CAP_PME		0x0800	/* PME pin supported */

+ 1
- 1
src/net/udp/dns.c View File

428
 	}
428
 	}
429
 	
429
 	
430
 	/* Determine what to do next based on the type of query we
430
 	/* Determine what to do next based on the type of query we
431
-	 * issued and the reponse we received
431
+	 * issued and the response we received
432
 	 */
432
 	 */
433
 	switch ( qtype ) {
433
 	switch ( qtype ) {
434
 
434
 

Loading…
Cancel
Save