Ishizaki Kou | 551a3d8 | 2007-01-12 10:03:28 +0900 | [diff] [blame] | 1 | /* |
| 2 | * pci prototypes for Celleb platform |
| 3 | * |
| 4 | * (C) Copyright 2006-2007 TOSHIBA CORPORATION |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along |
| 17 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 19 | */ |
| 20 | |
| 21 | #ifndef _CELLEB_PCI_H |
| 22 | #define _CELLEB_PCI_H |
| 23 | |
| 24 | #include <linux/pci.h> |
| 25 | |
| 26 | #include <asm/pci-bridge.h> |
| 27 | #include <asm/prom.h> |
Ishizaki Kou | da0bd34 | 2007-10-02 18:26:53 +1000 | [diff] [blame] | 28 | #include <asm/ppc-pci.h> |
Ishizaki Kou | 551a3d8 | 2007-01-12 10:03:28 +0900 | [diff] [blame] | 29 | |
Ishizaki Kou | 6ec859e | 2008-04-24 19:24:13 +1000 | [diff] [blame^] | 30 | #include "../cell/io-workarounds.h" |
| 31 | |
| 32 | struct celleb_phb_spec { |
| 33 | int (*setup)(struct device_node *, struct pci_controller *); |
| 34 | struct ppc_pci_io *ops; |
| 35 | int (*iowa_init)(struct iowa_bus *, void *); |
| 36 | void *iowa_data; |
| 37 | }; |
| 38 | |
Ishizaki Kou | 551a3d8 | 2007-01-12 10:03:28 +0900 | [diff] [blame] | 39 | extern int celleb_setup_phb(struct pci_controller *); |
| 40 | extern int celleb_pci_probe_mode(struct pci_bus *); |
| 41 | |
Ishizaki Kou | 6ec859e | 2008-04-24 19:24:13 +1000 | [diff] [blame^] | 42 | extern struct celleb_phb_spec celleb_epci_spec; |
Ishizaki Kou | da0bd34 | 2007-10-02 18:26:53 +1000 | [diff] [blame] | 43 | |
Ishizaki Kou | 551a3d8 | 2007-01-12 10:03:28 +0900 | [diff] [blame] | 44 | #endif /* _CELLEB_PCI_H */ |