]> Joshua Wise's Git repositories - netwatch.git/blame - pci/pci.h
cleanup
[netwatch.git] / pci / pci.h
CommitLineData
7e16b8e6
JP
1#ifndef PCI_H
2#define PCI_H
3
4/* General PCI functions. This is implemented by pci-linux.c and pci-raw.c; the
5 * former uses Linux's /proc/bus/pci interface for access from userspace, while
6 * the latter accesses the PCI hardware directly.
7 */
8
9void pci_write32(int bus, int slot, int fn, int addr, uint32_t data);
10void pci_write16(int bus, int slot, int fn, int addr, uint16_t data);
11void pci_write8(int bus, int slot, int fn, int addr, uint8_t data);
12
13uint32_t pci_read32(int bus, int slot, int fn, int addr);
14uint16_t pci_read16(int bus, int slot, int fn, int addr);
15uint8_t pci_read8(int bus, int slot, int fn, int addr);
16
17#endif
This page took 0.02334 seconds and 4 git commands to generate.