Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux linux/pci.h: Stubs for p...



details:   https://anonhg.NetBSD.org/src/rev/cbf113ac4efa
branches:  trunk
changeset: 372029:cbf113ac4efa
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Oct 25 23:37:06 2022 +0000

description:
linux/pci.h: Stubs for pci_request/release_region(s).

diffstat:

 sys/external/bsd/drm2/include/linux/pci.h |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r c4725cc2954f -r cbf113ac4efa sys/external/bsd/drm2/include/linux/pci.h
--- a/sys/external/bsd/drm2/include/linux/pci.h Tue Oct 25 23:36:32 2022 +0000
+++ b/sys/external/bsd/drm2/include/linux/pci.h Tue Oct 25 23:37:06 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci.h,v 1.55 2022/10/17 03:05:32 mrg Exp $     */
+/*     $NetBSD: pci.h,v 1.56 2022/10/25 23:37:06 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -266,6 +266,10 @@
 #define        pci_read_config_byte            linux_pci_read_config_byte
 #define        pci_read_config_dword           linux_pci_read_config_dword
 #define        pci_read_config_word            linux_pci_read_config_word
+#define        pci_release_region              linux_pci_release_region
+#define        pci_release_regions             linux_pci_release_regions
+#define        pci_request_region              linux_pci_request_region
+#define        pci_request_regions             linux_pci_request_regions
 #define        pci_resource_end                linux_pci_resource_end
 #define        pci_resource_flags              linux_pci_resource_flags
 #define        pci_resource_len                linux_pci_resource_len
@@ -362,6 +366,11 @@
 int            pci_enable_rom(struct pci_dev *);
 void           pci_disable_rom(struct pci_dev *);
 
+int            pci_request_regions(struct pci_dev *, const char *);
+void           pci_release_regions(struct pci_dev *);
+int            pci_request_region(struct pci_dev *, int, const char *);
+void           pci_release_region(struct pci_dev *, int);
+
 bus_addr_t     pci_resource_start(struct pci_dev *, unsigned);
 bus_size_t     pci_resource_len(struct pci_dev *, unsigned);
 bus_addr_t     pci_resource_end(struct pci_dev *, unsigned);



Home | Main Index | Thread Index | Old Index