Module Name: src Committed By: riastradh Date: Sun Feb 27 14:18:52 UTC 2022
Modified Files: src/sys/dev/pci: pcivar.h Log Message: pci(9): Provide default definition of pci_get_segment, always zero. pci_machdep.h can define __HAVE_PCI_GET_SEGMENT to provide a nonzero definition. To generate a diff of this commit: cvs rdiff -u -r1.116 -r1.117 src/sys/dev/pci/pcivar.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/dev/pci/pcivar.h diff -u src/sys/dev/pci/pcivar.h:1.116 src/sys/dev/pci/pcivar.h:1.117 --- src/sys/dev/pci/pcivar.h:1.116 Wed Sep 15 17:33:08 2021 +++ src/sys/dev/pci/pcivar.h Sun Feb 27 14:18:52 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: pcivar.h,v 1.116 2021/09/15 17:33:08 thorpej Exp $ */ +/* $NetBSD: pcivar.h,v 1.117 2022/02/27 14:18:52 riastradh Exp $ */ /* * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved. @@ -137,6 +137,14 @@ pcibus_attach_args_pc(struct pcibus_atta return pba->pba_pc; } +#ifndef __HAVE_PCI_GET_SEGMENT +static __inline u_int +pci_get_segment(pci_chipset_tag_t pc) +{ + return 0; +} +#endif + /* * PCI device attach arguments. */