vbos/include/dev/pci.h
Michael Shaw 605507a688 pci: add simple pci driver
this driver only prints devices on the pci bus.
2023-05-03 23:55:54 -04:00

13 lines
300 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _PCI_H_
#define _PCI_H_
#include <kernel/common.h>
#define PCIPM_CONFIG_ADDRESS 0xCF8
#define PCIPM_CONFIG_DATA 0xCFC
void pci_init();
uint16_t pci_config_read_word(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset);
#endif /* _PCI_H_ */