From 79a6ce8b41965081e7c9601cd0e05dd63da40118 Mon Sep 17 00:00:00 2001 From: Ruslan Bukin Date: Fri, 24 Jan 2020 16:50:51 +0000 Subject: [PATCH] Enable NEW_PCIB on riscv. Sponsored by: DARPA, AFRL --- sys/riscv/conf/DEFAULTS | 2 ++ sys/riscv/include/resource.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/sys/riscv/conf/DEFAULTS b/sys/riscv/conf/DEFAULTS index 5451decf822d..94c6bf283c45 100644 --- a/sys/riscv/conf/DEFAULTS +++ b/sys/riscv/conf/DEFAULTS @@ -11,3 +11,5 @@ device mem # Memory and kernel memory devices # Default partitioning schemes options GEOM_PART_BSD options GEOM_PART_MBR + +options NEW_PCIB diff --git a/sys/riscv/include/resource.h b/sys/riscv/include/resource.h index 723d1458e519..aef4fad4516d 100644 --- a/sys/riscv/include/resource.h +++ b/sys/riscv/include/resource.h @@ -42,5 +42,8 @@ #define SYS_RES_MEMORY 3 /* i/o memory */ #define SYS_RES_IOPORT 4 /* i/o ports */ #define SYS_RES_GPIO 5 /* general purpose i/o */ +#ifdef NEW_PCIB +#define PCI_RES_BUS 6 /* PCI bus numbers */ +#endif #endif /* !_MACHINE_RESOURCE_H_ */