4 * PCI defines and function prototypes
5 * Copyright 1994, Drew Eckhardt
6 * Copyright 1997--1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
8 * For more information, please consult the following manuals (look at
9 * http://www.pcisig.com/ for how to get them):
11 * PCI BIOS Specification
12 * PCI Local Bus Specification
13 * PCI to PCI Bridge Specification
14 * PCI System Design Guide
20 #include <device/pci_def.h>
21 #include <device/resource.h>
22 #include <device/device.h>
23 #include <device/pci_ops.h>
27 struct device_operations *ops;
28 unsigned short vendor;
29 unsigned short device;
32 #define __pci_driver __attribute__ ((unused,__section__(".rodata.pci_driver")))
33 extern struct pci_driver pci_drivers[];
34 extern struct pci_driver epci_drivers[];
37 struct device_operations default_pci_ops_dev;
38 struct device_operations default_pci_ops_bus;
39 struct device_operations default_pci_ops_root;
42 void pci_dev_read_resources(struct device *dev);
43 void pci_bus_read_resources(struct device *dev);
44 void pci_dev_set_resources(struct device *dev);
45 unsigned int pci_scan_bridge(struct device *bus, unsigned int max);
47 #define PCI_IO_BRIDGE_ALIGN 4096
48 #define PCI_MEM_BRIDGE_ALIGN (1024*1024)