[bus][pci] convert the pci driver's back end to simple C++ objects

It was already rolling a vtable so go ahead and just implement it as
actual c++ objects.
This commit is contained in:
Travis Geiselbrecht
2021-11-10 00:42:01 -08:00
parent 0aba1b73cc
commit 7285a2d1fd
13 changed files with 391 additions and 315 deletions

View File

@@ -13,6 +13,8 @@ MODULE_SRCS += $(LOCAL_DIR)/sbi.c
MODULE_SRCS += $(LOCAL_DIR)/spinlock.c
MODULE_SRCS += $(LOCAL_DIR)/time.c
MODULE_DEPS += lib/libcpp
# one file uses slightly complicated designated initializer
MODULE_CFLAGS += -Wno-override-init