diff --git a/.gitignore b/.gitignore index c795b05..26c01ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -build \ No newline at end of file +build +*/CMakeLists.txt +*/cmake-build-debug \ No newline at end of file diff --git a/test/src/main.c b/test/src/main.c index eef40af..2d6790a 100644 --- a/test/src/main.c +++ b/test/src/main.c @@ -1,7 +1,20 @@ #include "libnxdrv.h" -int _start() { - nx_drv_init(); +nx_drv_config_pci_T config_pci = { + .enable_progif = true, + .class = 0x01, + .subclass = 0x06, + .progif = 0x01, + .num_device_ids = 1, + .device_ids = { + .vendor_id = 0x8086, + .device_id = 0x2922 + } +}; +int _init() { + nx_drv_pci_config(&config_pci); + + nx_drv_log("test driver initialized"); return 0; } \ No newline at end of file