aboutsummaryrefslogtreecommitdiff
path: root/lib/libbcm
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-02-22 16:40:56 +0100
committerAlexey Kardashevskiy <aik@ozlabs.ru>2023-02-28 16:12:57 +1100
commit9604efb1832de13b51f93ad0a3581f9ed6dc04b5 (patch)
tree67b01f8c25785243baedd3863df657baa3d086a2 /lib/libbcm
parentac9eac38755af41c114bef5515aa6863ad648d86 (diff)
downloadSLOF-9604efb1832de13b51f93ad0a3581f9ed6dc04b5.zip
SLOF-9604efb1832de13b51f93ad0a3581f9ed6dc04b5.tar.gz
SLOF-9604efb1832de13b51f93ad0a3581f9ed6dc04b5.tar.bz2
Fix typos in the remaining lib folders
Found with the "codespell" utility. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libbcm')
-rw-r--r--lib/libbcm/bcm57xx.c4
-rw-r--r--lib/libbcm/bcm57xx.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libbcm/bcm57xx.c b/lib/libbcm/bcm57xx.c
index 2ecb517..f6765ce 100644
--- a/lib/libbcm/bcm57xx.c
+++ b/lib/libbcm/bcm57xx.c
@@ -16,7 +16,7 @@
* reference:
* Broadcom 57xx
* Host Programmer Interface Specification for the
- * NetXtreme Family of Highly-Integrated Media Access Controlers
+ * NetXtreme Family of Highly-Integrated Media Access Controllers
*/
#include <stdint.h>
#include <stdio.h>
@@ -3255,7 +3255,7 @@ bcm_setmac(char mac_addr1[6], char mac_addr2[6])
manu[(0xCC-0x74)/4] = val3;
manu[(0xD0-0x74)/4] = val4;
- /* Calculate the new manufacturing datas CRC */
+ /* Calculate the new manufacturing data CRC */
crc = util_gen_crc(((char *)manu),
MANUFACTURING_INFO_SIZE - 4, 0xFFFFFFFF);
diff --git a/lib/libbcm/bcm57xx.h b/lib/libbcm/bcm57xx.h
index efaba60..3566f60 100644
--- a/lib/libbcm/bcm57xx.h
+++ b/lib/libbcm/bcm57xx.h
@@ -41,11 +41,11 @@
#define PCI_BAR2_R ( (uint16_t) 0x0014 )
// PCI bar1 register
#define PCI_SUBID_R ( (uint16_t) 0x002e )
-// PCI-X Comand register
+// PCI-X Command register
#define PCI_X_COM_R ( (uint16_t) 0x0042 )
// Message Data Register
#define MSG_DATA_R ( (uint16_t) 0x0064 )
-// PCI misc host contrl register
+// PCI misc host control register
#define PCI_MISC_HCTRL_R ( (uint16_t) 0x0068 )
// DMA Read/Write Control register
#define DMA_RW_CTRL_R ( (uint16_t) 0x006c )