diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-04-16 08:15:42 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-04-17 08:07:37 -0400 |
commit | b2a9e87d2ce8fb2d0ce08ee49168805975c622da (patch) | |
tree | 7f7a1dea7010829f7244911b4f79c67e463df206 /arch/s390/include | |
parent | cbcca5d070c30909fd355018ed96134ee9018425 (diff) |
s390/pci: rename instruction wrappers
Use distinct (and hopefully sane) names for the pci instruction
wrappers.
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r-- | arch/s390/include/asm/pci_insn.h | 12 | ||||
-rw-r--r-- | arch/s390/include/asm/pci_io.h | 10 |
2 files changed, 11 insertions, 11 deletions
diff --git a/arch/s390/include/asm/pci_insn.h b/arch/s390/include/asm/pci_insn.h index c6649e72cf40..e6a2bdd4d705 100644 --- a/arch/s390/include/asm/pci_insn.h +++ b/arch/s390/include/asm/pci_insn.h | |||
@@ -79,11 +79,11 @@ struct zpci_fib { | |||
79 | } __packed; | 79 | } __packed; |
80 | 80 | ||
81 | 81 | ||
82 | int mpcifc_instr(u64 req, struct zpci_fib *fib); | 82 | int s390pci_mod_fc(u64 req, struct zpci_fib *fib); |
83 | int rpcit_instr(u64 fn, u64 addr, u64 range); | 83 | int s390pci_refresh_trans(u64 fn, u64 addr, u64 range); |
84 | void sic_instr(u16 ctl, char *unused, u8 isc); | 84 | int s390pci_load(u64 *data, u64 req, u64 offset); |
85 | int pcilg_instr(u64 *data, u64 req, u64 offset); | 85 | int s390pci_store(u64 data, u64 req, u64 offset); |
86 | int pcistg_instr(u64 data, u64 req, u64 offset); | 86 | int s390pci_store_block(const u64 *data, u64 req, u64 offset); |
87 | int pcistb_instr(const u64 *data, u64 req, u64 offset); | 87 | void set_irq_ctrl(u16 ctl, char *unused, u8 isc); |
88 | 88 | ||
89 | #endif | 89 | #endif |
diff --git a/arch/s390/include/asm/pci_io.h b/arch/s390/include/asm/pci_io.h index 5fd81f31d6c7..a312c7e5a71e 100644 --- a/arch/s390/include/asm/pci_io.h +++ b/arch/s390/include/asm/pci_io.h | |||
@@ -36,7 +36,7 @@ static inline RETTYPE zpci_read_##RETTYPE(const volatile void __iomem *addr) \ | |||
36 | u64 data; \ | 36 | u64 data; \ |
37 | int rc; \ | 37 | int rc; \ |
38 | \ | 38 | \ |
39 | rc = pcilg_instr(&data, req, ZPCI_OFFSET(addr)); \ | 39 | rc = s390pci_load(&data, req, ZPCI_OFFSET(addr)); \ |
40 | if (rc) \ | 40 | if (rc) \ |
41 | data = -1ULL; \ | 41 | data = -1ULL; \ |
42 | return (RETTYPE) data; \ | 42 | return (RETTYPE) data; \ |
@@ -50,7 +50,7 @@ static inline void zpci_write_##VALTYPE(VALTYPE val, \ | |||
50 | u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, LENGTH); \ | 50 | u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, LENGTH); \ |
51 | u64 data = (VALTYPE) val; \ | 51 | u64 data = (VALTYPE) val; \ |
52 | \ | 52 | \ |
53 | pcistg_instr(data, req, ZPCI_OFFSET(addr)); \ | 53 | s390pci_store(data, req, ZPCI_OFFSET(addr)); \ |
54 | } | 54 | } |
55 | 55 | ||
56 | zpci_read(8, u64) | 56 | zpci_read(8, u64) |
@@ -83,7 +83,7 @@ static inline int zpci_write_single(u64 req, const u64 *data, u64 offset, u8 len | |||
83 | val = 0; /* let FW report error */ | 83 | val = 0; /* let FW report error */ |
84 | break; | 84 | break; |
85 | } | 85 | } |
86 | return pcistg_instr(val, req, offset); | 86 | return s390pci_store(val, req, offset); |
87 | } | 87 | } |
88 | 88 | ||
89 | static inline int zpci_read_single(u64 req, u64 *dst, u64 offset, u8 len) | 89 | static inline int zpci_read_single(u64 req, u64 *dst, u64 offset, u8 len) |
@@ -91,7 +91,7 @@ static inline int zpci_read_single(u64 req, u64 *dst, u64 offset, u8 len) | |||
91 | u64 data; | 91 | u64 data; |
92 | u8 cc; | 92 | u8 cc; |
93 | 93 | ||
94 | cc = pcilg_instr(&data, req, offset); | 94 | cc = s390pci_load(&data, req, offset); |
95 | switch (len) { | 95 | switch (len) { |
96 | case 1: | 96 | case 1: |
97 | *((u8 *) dst) = (u8) data; | 97 | *((u8 *) dst) = (u8) data; |
@@ -111,7 +111,7 @@ static inline int zpci_read_single(u64 req, u64 *dst, u64 offset, u8 len) | |||
111 | 111 | ||
112 | static inline int zpci_write_block(u64 req, const u64 *data, u64 offset) | 112 | static inline int zpci_write_block(u64 req, const u64 *data, u64 offset) |
113 | { | 113 | { |
114 | return pcistb_instr(data, req, offset); | 114 | return s390pci_store_block(data, req, offset); |
115 | } | 115 | } |
116 | 116 | ||
117 | static inline u8 zpci_get_max_write_size(u64 src, u64 dst, int len, int max) | 117 | static inline u8 zpci_get_max_write_size(u64 src, u64 dst, int len, int max) |