pcib_private.h (95ee2897e98f5d444f26ed2334cc7c439f9c16c6) pcib_private.h (1587a9db92c03c738bb3f0fc5874b43c961e7c99)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1994,1995 Stefan Esser, Wolfgang StanglMeier
5 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org>
6 * Copyright (c) 2000 BSDi
7 * All rights reserved.
8 *

--- 134 unchanged lines hidden (view full) ---

143};
144
145#define PCIB_HP_LOCK(sc) mtx_lock((sc)->pcie_hp_lock)
146#define PCIB_HP_UNLOCK(sc) mtx_unlock((sc)->pcie_hp_lock)
147#define PCIB_HP_LOCK_ASSERT(sc) mtx_assert((sc)->pcie_hp_lock, MA_OWNED)
148
149#define PCIB_SUPPORTED_ARI_VER 1
150
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1994,1995 Stefan Esser, Wolfgang StanglMeier
5 * Copyright (c) 2000 Michael Smith <msmith@freebsd.org>
6 * Copyright (c) 2000 BSDi
7 * All rights reserved.
8 *

--- 134 unchanged lines hidden (view full) ---

143};
144
145#define PCIB_HP_LOCK(sc) mtx_lock((sc)->pcie_hp_lock)
146#define PCIB_HP_UNLOCK(sc) mtx_unlock((sc)->pcie_hp_lock)
147#define PCIB_HP_LOCK_ASSERT(sc) mtx_assert((sc)->pcie_hp_lock, MA_OWNED)
148
149#define PCIB_SUPPORTED_ARI_VER 1
150
151typedef uint32_t pci_read_config_fn(int b, int s, int f, int reg, int width);
151typedef uint32_t pci_read_config_fn(int d, int b, int s, int f, int reg,
152 int width);
152
153int host_pcib_get_busno(pci_read_config_fn read_config, int bus,
154 int slot, int func, uint8_t *busnum);
155#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
156struct resource *pci_domain_alloc_bus(int domain, device_t dev, int *rid,
157 rman_res_t start, rman_res_t end, rman_res_t count, u_int flags);
158int pci_domain_adjust_bus(int domain, device_t dev,
159 struct resource *r, rman_res_t start, rman_res_t end);

--- 45 unchanged lines hidden ---
153
154int host_pcib_get_busno(pci_read_config_fn read_config, int bus,
155 int slot, int func, uint8_t *busnum);
156#if defined(NEW_PCIB) && defined(PCI_RES_BUS)
157struct resource *pci_domain_alloc_bus(int domain, device_t dev, int *rid,
158 rman_res_t start, rman_res_t end, rman_res_t count, u_int flags);
159int pci_domain_adjust_bus(int domain, device_t dev,
160 struct resource *r, rman_res_t start, rman_res_t end);

--- 45 unchanged lines hidden ---