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