]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/mips/ath79/pci.h
MIPS: ath79: register PCI controller on the PB44 board
[mirror_ubuntu-artful-kernel.git] / arch / mips / ath79 / pci.h
CommitLineData
4ff40d5a
RB
1/*
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
d624bd3c
GJ
11#ifndef _ATH79_PCI_H
12#define _ATH79_PCI_H
4ff40d5a 13
d22ce25f
GJ
14struct ath79_pci_irq {
15 u8 slot;
16 u8 pin;
17 int irq;
18};
19
6335aef5 20#ifdef CONFIG_PCI
d22ce25f 21void ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map);
a68ad4d8 22void ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *dev));
6335aef5
GJ
23int ath79_register_pci(void);
24#else
a68ad4d8 25static inline void
d22ce25f
GJ
26ath79_pci_set_irq_map(unsigned nr_irqs, const struct ath79_pci_irq *map) {}
27static inline void
a68ad4d8 28ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *)) {}
6335aef5
GJ
29static inline int ath79_register_pci(void) { return 0; }
30#endif
31
d624bd3c 32#endif /* _ATH79_PCI_H */