AUTHORS, util/: Drop individual copyright notices
[coreboot.git] / util / vgabios / pci-userspace.h
blob4fe933af37ca7ee74f69de059c54eea10d84f555
1 /* This file is part of the coreboot project. */
2 /*
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; version 2 of the License.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
13 #ifndef __PCI_USERSPACE_H__
14 #define __PCI_USERSPACE_H__
16 struct device {
17 int busno;
18 int slot;
19 int func;
22 int pci_initialize(void);
23 int pci_exit(void);
25 u8 pci_read_config8(struct device *dev, unsigned int where);
26 u16 pci_read_config16(struct device *dev, unsigned int where);
27 u32 pci_read_config32(struct device *dev, unsigned int where);
28 void pci_write_config8(struct device *dev, unsigned int where, u8 val);
29 void pci_write_config16(struct device *dev, unsigned int where, u16 val);
30 void pci_write_config32(struct device *dev, unsigned int where, u32 val);
32 #endif