UEFIStarter
a simple UEFI framework
|
Tests for the PCI library functions. More...
#include <Uefi.h>
#include <Library/UefiLib.h>
#include <UEFIStarter/pci.h>
#include <UEFIStarter/tests/tests.h>
Data Structures | |
struct | pci_device_name_testcase_t |
data type for test_find_pci_device_name() testcases More... | |
struct | pci_class_name_testcase_t |
data type for test_find_pci_class_name() testcases More... | |
Functions | |
void | test_find_pci_device_name () |
Makes sure determining PCI device names works. More... | |
void | test_find_pci_class_name () |
Makes sure PCI class/subclass codes are mapped to names properly. More... | |
BOOLEAN | run_pci_tests () |
Test runner for this group. More... | |
Variables | |
pci_device_name_testcase_t | pci_device_name_testcases [] |
testcases for test_find_pci_device_name() More... | |
pci_class_name_testcase_t | pci_class_name_testcases [] |
testcases for test_find_pci_class_name() More... | |
Tests for the PCI library functions.
void test_find_pci_device_name | ( | ) |
Makes sure determining PCI device names works.
find_pci_device_name() finds entries with known vendor and device IDs
find_pci_device_name() finds known vendor entries and marks unknown device IDs
find_pci_device_name() marks unknown vendor IDs
find_pci_device_name() isn't affected by old strstr() bug
void test_find_pci_class_name | ( | ) |
Makes sure PCI class/subclass codes are mapped to names properly.
find_pci_class_name() finds entries with known class and subclass codes
find_pci_class_name() finds entries with known class and marks unknown subclasses
find_pci_class_name() marks unknown entries as such
BOOLEAN run_pci_tests | ( | ) |
Test runner for this group.
Gets called via the generated test runner.
pci_device_name_testcase_t pci_device_name_testcases[] |
testcases for test_find_pci_device_name()
pci_class_name_testcase_t pci_class_name_testcases[] |
testcases for test_find_pci_class_name()