summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-10-15 15:35:25 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-10-15 15:35:54 -0700
commitd43d21c8cb0f917b65228852a03a7d501636f227 (patch)
tree0b27d3f0ccaa281e28e5e7dddf6d075a1bc7176e
parent4c1c607c602e5e8d9277b9c01edfa7a8d10333cd (diff)
Fix various typos (mostly in comments)
-rw-r--r--src/common_interface.c16
-rw-r--r--src/linux_devmem.c2
-rw-r--r--src/linux_sysfs.c4
-rw-r--r--src/pci_tools.h2
-rw-r--r--src/solx_devfs.c14
5 files changed, 19 insertions, 19 deletions
diff --git a/src/common_interface.c b/src/common_interface.c
index 649ca47..0cdf25d 100644
--- a/src/common_interface.c
+++ b/src/common_interface.c
@@ -110,7 +110,7 @@ pci_device_read_rom( struct pci_device * dev, void * buffer )
* \param dev Device to be probed.
*
* \return
- * Zero on succes or an \c errno value on failure.
+ * Zero on success or an \c errno value on failure.
*/
int
pci_device_probe( struct pci_device * dev )
@@ -127,7 +127,7 @@ pci_device_probe( struct pci_device * dev )
/**
* Map the specified BAR so that it can be accessed by the CPU.
*
- * Maps the specified BAR for acces by the processor. The pointer to the
+ * Maps the specified BAR for access by the processor. The pointer to the
* mapped region is stored in the \c pci_mem_region::memory pointer for the
* BAR.
*
@@ -166,7 +166,7 @@ pci_device_map_region(struct pci_device * dev, unsigned region,
* Map the specified memory range so that it can be accessed by the CPU.
*
* Maps the specified memory range for access by the processor. The pointer
- * to the mapped region is stored in \c addr. In addtion, the
+ * to the mapped region is stored in \c addr. In addition, the
* \c pci_mem_region::memory pointer for the BAR will be updated.
*
* \param dev Device whose memory region is to be mapped.
@@ -194,7 +194,7 @@ int pci_device_map_memory_range(struct pci_device *dev,
* Map the specified memory range so that it can be accessed by the CPU.
*
* Maps the specified memory range for access by the processor. The pointer
- * to the mapped region is stored in \c addr. In addtion, the
+ * to the mapped region is stored in \c addr. In addition, the
* \c pci_mem_region::memory pointer for the BAR will be updated.
*
* \param dev Device whose memory region is to be mapped.
@@ -415,7 +415,7 @@ pci_device_unmap_range(struct pci_device *dev, void *memory,
*
* Reads data from the device's PCI configuration space. As with the system
* read command, less data may be returned, without an error, than was
- * requested. This is particuarly the case if a non-root user tries to read
+ * requested. This is particularly the case if a non-root user tries to read
* beyond the first 64-bytes of configuration space.
*
* \param dev Device whose PCI configuration data is to be read.
@@ -429,7 +429,7 @@ pci_device_unmap_range(struct pci_device *dev, void *memory,
* Zero on success or an errno value on failure.
*
* \note
- * Data read from PCI configuartion space using this routine is \b not
+ * Data read from PCI configuration space using this routine is \b not
* byte-swapped to the host's byte order. PCI configuration data is always
* stored in little-endian order, and that is what this routine returns.
*/
@@ -500,7 +500,7 @@ pci_device_cfg_read_u32( struct pci_device * dev, uint32_t * data,
/**
* Write arbitrary bytes to device's PCI config space
*
- * Writess data to the device's PCI configuration space. As with the system
+ * Writes data to the device's PCI configuration space. As with the system
* write command, less data may be written, without an error, than was
* requested.
*
@@ -515,7 +515,7 @@ pci_device_cfg_read_u32( struct pci_device * dev, uint32_t * data,
* Zero on success or an errno value on failure.
*
* \note
- * Data written to PCI configuartion space using this routine is \b not
+ * Data written to PCI configuration space using this routine is \b not
* byte-swapped from the host's byte order. PCI configuration data is always
* stored in little-endian order, so data written with this routine should be
* put in that order in advance.
diff --git a/src/linux_devmem.c b/src/linux_devmem.c
index 21b45ef..271e53f 100644
--- a/src/linux_devmem.c
+++ b/src/linux_devmem.c
@@ -145,7 +145,7 @@ pci_device_linux_devmem_read_rom(struct pci_device *dev, void *buffer)
const int tmp_err = pci_device_cfg_write_u32(& priv->base,
rom_base_tmp, 48);
- /* Prefer to return the first error that occured.
+ /* Prefer to return the first error that occurred.
*/
if (err == 0) {
err = tmp_err;
diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c
index ca4d3ef..8c3cf67 100644
--- a/src/linux_sysfs.c
+++ b/src/linux_sysfs.c
@@ -26,7 +26,7 @@
* \file linux_sysfs.c
* Access PCI subsystem using Linux's sysfs interface. This interface is
* available starting somewhere in the late 2.5.x kernel phase, and is the
- * prefered method on all 2.6.x kernels.
+ * preferred method on all 2.6.x kernels.
*
* \author Ian Romanick <idr@us.ibm.com>
*/
@@ -73,7 +73,7 @@ static int pci_device_linux_sysfs_read( struct pci_device * dev, void * data,
static int pci_device_linux_sysfs_write( struct pci_device * dev,
const void * data, pciaddr_t offset, pciaddr_t size,
- pciaddr_t * bytes_wrtten );
+ pciaddr_t * bytes_written );
static const struct pci_system_methods linux_sysfs_methods = {
.destroy = NULL,
diff --git a/src/pci_tools.h b/src/pci_tools.h
index 0305923..0622612 100644
--- a/src/pci_tools.h
+++ b/src/pci_tools.h
@@ -184,7 +184,7 @@ typedef struct pcitool_intr_get {
#define PCITOOL_ACC_IS_BIG_ENDIAN(x) (x & PCITOOL_ACC_ATTR_ENDN_BIG)
/*
- * Data stucture to read and write to pci device registers.
+ * Data structure to read and write to pci device registers.
* This is the argument to the following ioctls:
* PCITOOL_DEVICE_SET/GET_REG
* PCITOOL_NEXUS_SET/GET_REG
diff --git a/src/solx_devfs.c b/src/solx_devfs.c
index a2daec1..6fe564c 100644
--- a/src/solx_devfs.c
+++ b/src/solx_devfs.c
@@ -113,7 +113,7 @@ static int pci_device_solx_devfs_read( struct pci_device * dev, void * data,
static int pci_device_solx_devfs_write( struct pci_device * dev,
const void * data, pciaddr_t offset, pciaddr_t size,
- pciaddr_t * bytes_wrtten );
+ pciaddr_t * bytes_written );
static int
probe_dev(int fd, pcitool_reg_t *prg_p, struct pci_system *pci_sys);
@@ -149,7 +149,7 @@ static const struct pci_system_methods solx_devfs_methods = {
};
/*
- * Rlease all the resources
+ * Release all the resources
* Solaris version
*/
static void
@@ -351,7 +351,7 @@ probe_dev(int fd, pcitool_reg_t *prg_p, struct pci_system *pci_sys)
/*
* Data came back as 0.
- * Treat as unresponsive device amd check next device.
+ * Treat as unresponsive device and check next device.
*/
} else if (prg_p->data == 0) {
rval = 0;
@@ -379,7 +379,7 @@ probe_dev(int fd, pcitool_reg_t *prg_p, struct pci_system *pci_sys)
}
/*
- * Found one device with bus numer, device number and
+ * Found one device with bus number, device number and
* function number.
*/
@@ -417,7 +417,7 @@ probe_dev(int fd, pcitool_reg_t *prg_p, struct pci_system *pci_sys)
pci_sys->num_devices++;
/*
- * Accomodate devices which state their
+ * Accommodate devices which state their
* multi-functionality only in their function 0 config
* space. Note multi-functionality throughout probing
* of all of this device's functions.
@@ -486,7 +486,7 @@ do_probe(int fd, struct pci_system *pci_sys)
}
}
if (pci_sys->num_devices > MAX_DEVICES) {
- (void) fprintf(stderr, "pci devices reach maximu number\n");
+ (void) fprintf(stderr, "pci devices reach maximum number\n");
}
return (rval);
@@ -505,7 +505,7 @@ find_target_node(di_node_t node, void *arg)
devnode = (i_devnode_t *)arg;
/*
- * Test the property funtions, only for testing
+ * Test the property functions, only for testing
*/
/*
(void) fprintf(stderr, "start of node 0x%x\n", node->nodeid);