Module Name: src Committed By: riastradh Date: Tue Oct 25 23:37:07 UTC 2022
Modified Files: src/sys/external/bsd/drm2/include/linux: pci.h Log Message: linux/pci.h: Stubs for pci_request/release_region(s). To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/external/bsd/drm2/include/linux/pci.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/include/linux/pci.h diff -u src/sys/external/bsd/drm2/include/linux/pci.h:1.55 src/sys/external/bsd/drm2/include/linux/pci.h:1.56 --- src/sys/external/bsd/drm2/include/linux/pci.h:1.55 Mon Oct 17 03:05:32 2022 +++ src/sys/external/bsd/drm2/include/linux/pci.h Tue Oct 25 23:37:06 2022 @@ -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 @@ enum pcie_link_width { #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 @@ void pci_unmap_rom(struct pci_dev *, vo 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);