blob: e0601c4a7fc69d49c61ddf68b2e7d76ba62c5a75 [file] [log] [blame]
Rene Bolldorf4ff40d52011-11-17 14:25:09 +00001/*
2 * Atheros 724x PCI support
3 *
4 * Copyright (C) 2011 René Bolldorf <xsecute@googlemail.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation.
9 */
10
Gabor Juhosd624bd32012-03-14 10:29:26 +010011#ifndef _ATH79_PCI_H
12#define _ATH79_PCI_H
Rene Bolldorf4ff40d52011-11-17 14:25:09 +000013
Gabor Juhosd624bd32012-03-14 10:29:26 +010014struct ar724x_pci_data {
Rene Bolldorf4ff40d52011-11-17 14:25:09 +000015 int irq;
16 void *pdata;
17};
18
Gabor Juhosd624bd32012-03-14 10:29:26 +010019void ar724x_pci_add_data(struct ar724x_pci_data *data, int size);
Rene Bolldorf4ff40d52011-11-17 14:25:09 +000020
Gabor Juhos6335aef2012-03-14 10:29:24 +010021#ifdef CONFIG_PCI
22int ath79_register_pci(void);
23#else
24static inline int ath79_register_pci(void) { return 0; }
25#endif
26
Gabor Juhosd624bd32012-03-14 10:29:26 +010027#endif /* _ATH79_PCI_H */