Source
1
1
// SPDX-License-Identifier: GPL-2.0
2
2
/*
3
-
* pci_syscall.c
4
-
*
5
-
* For architectures where we want to allow direct access
6
-
* to the PCI config stuff - it would probably be preferable
7
-
* on PCs too, but there people just do it by hand with the
8
-
* magic northbridge registers..
3
+
* For architectures where we want to allow direct access to the PCI config
4
+
* stuff - it would probably be preferable on PCs too, but there people
5
+
* just do it by hand with the magic northbridge registers.
9
6
*/
10
7
11
8
#include <linux/errno.h>
12
9
#include <linux/pci.h>
13
10
#include <linux/syscalls.h>
14
11
#include <linux/uaccess.h>
15
12
#include "pci.h"
16
13
17
14
SYSCALL_DEFINE5(pciconfig_read, unsigned long, bus, unsigned long, dfn,
18
15
unsigned long, off, unsigned long, len, void __user *, buf)