qemu_pci_serial driver
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#include <stddef.h>
|
||||
#include "pci/pci.h"
|
||||
#include "pci/ata/ata.h"
|
||||
#include "pci/qemu_pci_serial/qemu_pci_serial.h"
|
||||
#include "io/io.h"
|
||||
#include "std/string.h"
|
||||
#include "util/util.h"
|
||||
@ -123,7 +124,8 @@ PciDev pci_getdev(uint16_t vendorid, uint16_t deviceid, int devtype) {
|
||||
}
|
||||
|
||||
if (pci_isend(PCI_DEV_ZERO)) {
|
||||
ERR("pci", "pci_getdev() failed\n");
|
||||
ERR("pci", "pci_getdev() failed for 0x%04x/0x%04x,%d\n", vendorid, deviceid, devtype);
|
||||
return PCI_DEV_ZERO;
|
||||
}
|
||||
|
||||
for (uint32_t fn = 1; fn < PCI_FN_PER_DEV; fn++) {
|
||||
@ -167,6 +169,7 @@ void pci_init_size_map(void) {
|
||||
|
||||
PciInitFn PCI_INIT_ARRAY[PCI_INIT_ARRAY_MAX] = {
|
||||
&pci_ata_init,
|
||||
&pci_qemu_pci_serial_init,
|
||||
};
|
||||
|
||||
void pci_init_devs(void) {
|
||||
|
||||
Reference in New Issue
Block a user