summaryrefslogtreecommitdiff
path: root/src/include/device/pci_ops.h
blob: 7f897370ecf5d7e3630b24a10624dd5dd1f96200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef PCI_OPS_H
#define PCI_OPS_H

#include <stdint.h>
#include <device/device.h>

uint8_t  pci_read_config8(device_t dev, unsigned where);
uint16_t pci_read_config16(device_t dev, unsigned where);
uint32_t pci_read_config32(device_t dev, unsigned where);
void pci_write_config8(device_t dev, unsigned where, uint8_t val);
void pci_write_config16(device_t dev, unsigned where, uint16_t val);
void pci_write_config32(device_t dev, unsigned where, uint32_t val);

void pci_set_method(void);

#endif /* PCI_OPS_H */