1 .\" Copyright (c) IBM Corp. 2015
2 .\" Author: Alexey Ishchuk <aishchuk@linux.vnet.ibm.com>
4 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 .\" GNU General Public License for more details.
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, see
22 .\" <http://www.gnu.org/licenses/>.
25 .TH S390_PCI_MMIO_WRITE 2 2017-09-15 "Linux Programmer's Manual"
27 s390_pci_mmio_write, s390_pci_mmio_read \- transfer data to/from PCI
31 .B #include <asm/unistd.h>
33 .BI "int s390_pci_mmio_write(unsigned long " mmio_addr ",
34 .BI " void *" user_buffer ", size_t " length ");
35 .BI "int s390_pci_mmio_read(unsigned long " mmio_addr ",
36 .BI " void *" user_buffer ", size_t " length ");
40 .BR s390_pci_mmio_write ()
43 bytes of data from the user-space buffer
45 to the PCI MMIO memory location specified by
48 .BR s390_pci_mmio_read ()
52 data from the PCI MMIO memory location specified by
54 to the user-space buffer
57 These system calls must be used instead of the simple assignment
58 or data-transfer operations that are used to access the PCI MMIO
59 memory areas mapped to user space on the Linux System z platform.
60 The address specified by
62 must belong to a PCI MMIO memory page mapping in the caller's address space,
63 and the data being written or read must not cross a page boundary.
66 value cannot be greater than the system page size.
69 .BR s390_pci_mmio_write ()
71 .BR s390_pci_mmio_read ()
73 On error, \-1 is returned and
75 is set to one of the error codes listed below.
85 does not point to a valid location in the caller's address space.
93 PCI support is not enabled.
98 These system calls are available since Linux 3.19.
100 This Linux-specific system call is available only on the s390 architecture.
101 The required PCI support is available beginning with System z EC12.
103 Glibc does not provide a wrapper for this system call, use