hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/io.h
....@@ -1,18 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright 2006 PathScale, Inc. All Rights Reserved.
3
- *
4
- * This file is free software; you can redistribute it and/or modify
5
- * it under the terms of version 2 of the GNU General Public License
6
- * as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
12
- *
13
- * You should have received a copy of the GNU General Public License
14
- * along with this program; if not, write to the Free Software Foundation,
15
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
164 */
175
186 #ifndef _LINUX_IO_H
....@@ -45,6 +33,7 @@
4533
4634 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
4735 void __init ioremap_huge_init(void);
36
+int arch_ioremap_p4d_supported(void);
4837 int arch_ioremap_pud_supported(void);
4938 int arch_ioremap_pmd_supported(void);
5039 #else
....@@ -77,8 +66,6 @@
7766 resource_size_t size);
7867 void __iomem *devm_ioremap_uc(struct device *dev, resource_size_t offset,
7968 resource_size_t size);
80
-void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
81
- resource_size_t size);
8269 void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset,
8370 resource_size_t size);
8471 void devm_iounmap(struct device *dev, void __iomem *addr);
....@@ -90,15 +77,13 @@
9077 size_t size, unsigned long flags);
9178 void devm_memunmap(struct device *dev, void *addr);
9279
93
-void *__devm_memremap_pages(struct device *dev, struct resource *res);
94
-
9580 #ifdef CONFIG_PCI
9681 /*
9782 * The PCI specifications (Rev 3.0, 3.2.5 "Transaction Ordering and
9883 * Posting") mandate non-posted configuration transactions. There is
9984 * no ioremap API in the kernel that can guarantee non-posted write
10085 * semantics across arches so provide a default implementation for
101
- * mapping PCI config space that defaults to ioremap_nocache(); arches
86
+ * mapping PCI config space that defaults to ioremap(); arches
10287 * should override it if they have memory mapping implementations that
10388 * guarantee non-posted writes semantics to make the memory mapping
10489 * compliant with the PCI specification.
....@@ -108,7 +93,7 @@
10893 static inline void __iomem *pci_remap_cfgspace(phys_addr_t offset,
10994 size_t size)
11095 {
111
- return ioremap_nocache(offset, size);
96
+ return ioremap(offset, size);
11297 }
11398 #endif
11499 #endif