1e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin/* 2e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin * This program is free software; you can redistribute it and/or modify it 3e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin * under the terms of the GNU General Public License version 2 as published 4e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin * by the Free Software Foundation. 5e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin * 6e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin * Copyright (C) 2010 John Crispin <blogic@openwrt.org> 7e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin */ 8e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin 9e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin#ifndef _LTQ_PCI_H__ 10e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin#define _LTQ_PCI_H__ 11e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin 12e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispinextern __iomem void *ltq_pci_mapped_cfg; 13e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispinextern int ltq_pci_read_config_dword(struct pci_bus *bus, 14e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin unsigned int devfn, int where, int size, u32 *val); 15e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispinextern int ltq_pci_write_config_dword(struct pci_bus *bus, 16e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin unsigned int devfn, int where, int size, u32 val); 17e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin 18e47d488935ed0b2dd3d59d3ba4e13956ff6849c0John Crispin#endif 19