diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2016-02-01 11:17:53 +0530 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-02-08 16:40:38 +1100 |
commit | 8b23f3fd8a59cd5d0119cd71473219865e3d5007 (patch) | |
tree | 32ab9381e9bc1189dd5131eb5eebbf062e13c0a7 /include/helpers.h | |
parent | 4f26878f1787c4f07f83e459142552d92d0cfe22 (diff) | |
download | SLOF-8b23f3fd8a59cd5d0119cd71473219865e3d5007.zip SLOF-8b23f3fd8a59cd5d0119cd71473219865e3d5007.tar.gz SLOF-8b23f3fd8a59cd5d0119cd71473219865e3d5007.tar.bz2 |
pci: add byte read/write helper routines
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'include/helpers.h')
-rw-r--r-- | include/helpers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/helpers.h b/include/helpers.h index fb10534..5b3d711 100644 --- a/include/helpers.h +++ b/include/helpers.h @@ -30,8 +30,10 @@ extern long SLOF_dma_map_in(void *virt, long size, int cacheable); extern void SLOF_dma_map_out(long phys, void *virt, long size); extern long SLOF_pci_config_read32(long offset); extern long SLOF_pci_config_read16(long offset); +extern long SLOF_pci_config_read8(long offset); extern void SLOF_pci_config_write32(long offset, long value); extern void SLOF_pci_config_write16(long offset, long value); +extern void SLOF_pci_config_write8(long offset, long value); extern void *SLOF_translate_my_address(void *addr); #define offset_of(type, member) ((long) &((type *)0)->member) |