summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-01-15 11:18:19 -0800
committerIan Romanick <idr@us.ibm.com>2007-01-15 11:18:19 -0800
commit37ce43c1804bad9c52b8316eaefd3a57b670ee29 (patch)
treee3f11f08d2ca0b462a395c45d804f789970ee40b
parentc65aa7630802c8dfcc06a20e515ace31ab0d0e48 (diff)
Convert pci_device_write_u* funtions to take a value instead of a pointer.
At anholt's request, the pci_device_write_u* functions have been converted to take the value to be written as a parameter instead of a pointer to the value. Bump the version to 0.8.0.
-rw-r--r--configure.ac2
-rw-r--r--include/pciaccess.h12
-rw-r--r--src/Makefile.am2
-rw-r--r--src/common_interface.c18
4 files changed, 17 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac
index 1c99739..74db3ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,7 +41,7 @@ dnl refers to ${prefix}. Thus we have to use `eval' twice.
AC_PREREQ([2.57])
-AC_INIT(libpciaccess, 0.7.0, [none yet], libpciaccess)
+AC_INIT(libpciaccess, 0.8.0, [none yet], libpciaccess)
AM_INIT_AUTOMAKE([dist-bzip2])
AM_MAINTAINER_MODE
diff --git a/include/pciaccess.h b/include/pciaccess.h
index a0cf067..8ea6700 100644
--- a/include/pciaccess.h
+++ b/include/pciaccess.h
@@ -102,12 +102,12 @@ int pci_device_cfg_read_u32( struct pci_device * dev, uint32_t * data,
int pci_device_cfg_write ( struct pci_device * dev, const void * data,
pciaddr_t offset, pciaddr_t size, pciaddr_t * bytes_written );
-int pci_device_cfg_write_u8 ( struct pci_device * dev, const uint8_t * data,
- pciaddr_t offset );
-int pci_device_cfg_write_u16( struct pci_device * dev, const uint16_t * data,
- pciaddr_t offset );
-int pci_device_cfg_write_u32( struct pci_device * dev, const uint32_t * data,
- pciaddr_t offset );
+int pci_device_cfg_write_u8 (struct pci_device *dev, uint8_t data,
+ pciaddr_t offset);
+int pci_device_cfg_write_u16(struct pci_device *dev, uint16_t data,
+ pciaddr_t offset);
+int pci_device_cfg_write_u32(struct pci_device *dev, uint32_t data,
+ pciaddr_t offset);
int pci_device_cfg_write_bits( struct pci_device * dev, uint32_t mask,
uint32_t data, pciaddr_t offset );
diff --git a/src/Makefile.am b/src/Makefile.am
index de4e52a..9891d5d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -43,7 +43,7 @@ INCLUDES = -I$(top_srcdir)/include
libpciaccess_la_LIBADD = @PCIACCESS_LIBS@
-libpciaccess_la_LDFLAGS = -version-number 0:7:0 -no-undefined
+libpciaccess_la_LDFLAGS = -version-number 0:8:0 -no-undefined
libpciaccessincludedir = $(includedir)
libpciaccessinclude_HEADERS = \
diff --git a/src/common_interface.c b/src/common_interface.c
index 54c8b26..16a0305 100644
--- a/src/common_interface.c
+++ b/src/common_interface.c
@@ -425,8 +425,8 @@ pci_device_cfg_write( struct pci_device * dev, const void * data,
int
-pci_device_cfg_write_u8( struct pci_device * dev, const uint8_t * data,
- pciaddr_t offset )
+pci_device_cfg_write_u8(struct pci_device *dev, uint8_t data,
+ pciaddr_t offset)
{
pciaddr_t bytes;
int err = pci_device_cfg_write( dev, data, offset, 1, & bytes );
@@ -441,11 +441,11 @@ pci_device_cfg_write_u8( struct pci_device * dev, const uint8_t * data,
int
-pci_device_cfg_write_u16( struct pci_device * dev, const uint16_t * data,
- pciaddr_t offset )
+pci_device_cfg_write_u16(struct pci_device *dev, uint16_t data,
+ pciaddr_t offset)
{
pciaddr_t bytes;
- const uint16_t temp = HTOLE_16( *data );
+ const uint16_t temp = HTOLE_16(data);
int err = pci_device_cfg_write( dev, & temp, offset, 2, & bytes );
if ( (err == 0) && (bytes != 2) ) {
@@ -458,11 +458,11 @@ pci_device_cfg_write_u16( struct pci_device * dev, const uint16_t * data,
int
-pci_device_cfg_write_u32( struct pci_device * dev, const uint32_t * data,
- pciaddr_t offset )
+pci_device_cfg_write_u32(struct pci_device *dev, uint32_t data,
+ pciaddr_t offset)
{
pciaddr_t bytes;
- const uint32_t temp = HTOLE_32( *data );
+ const uint32_t temp = HTOLE_32(data);
int err = pci_device_cfg_write( dev, & temp, offset, 4, & bytes );
if ( (err == 0) && (bytes != 4) ) {
@@ -486,7 +486,7 @@ pci_device_cfg_write_bits( struct pci_device * dev, uint32_t mask,
temp &= ~mask;
temp |= data;
- err = pci_device_cfg_write_u32( dev, & temp, offset );
+ err = pci_device_cfg_write_u32(dev, temp, offset);
}
return err;