pci_bus.c (685dc743dc3b5645e34836464128e1c0558b404b) | pci_bus.c (1587a9db92c03c738bb3f0fc5874b43c961e7c99) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 49 unchanged lines hidden (view full) --- 58} 59 60/* read configuration space register */ 61 62uint32_t 63legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func, 64 u_int reg, int bytes) 65{ | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 49 unchanged lines hidden (view full) --- 58} 59 60/* read configuration space register */ 61 62uint32_t 63legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func, 64 u_int reg, int bytes) 65{ |
66 return(pci_cfgregread(bus, slot, func, reg, bytes)); | 66 return(pci_cfgregread(0, bus, slot, func, reg, bytes)); |
67} 68 69/* write configuration space register */ 70 71void 72legacy_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func, 73 u_int reg, uint32_t data, int bytes) 74{ | 67} 68 69/* write configuration space register */ 70 71void 72legacy_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func, 73 u_int reg, uint32_t data, int bytes) 74{ |
75 pci_cfgregwrite(bus, slot, func, reg, data, bytes); | 75 pci_cfgregwrite(0, bus, slot, func, reg, data, bytes); |
76} 77 78/* route interrupt */ 79 80static int 81legacy_pcib_route_interrupt(device_t pcib, device_t dev, int pin) 82{ 83 --- 673 unchanged lines hidden --- | 76} 77 78/* route interrupt */ 79 80static int 81legacy_pcib_route_interrupt(device_t pcib, device_t dev, int pin) 82{ 83 --- 673 unchanged lines hidden --- |