Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 1 | /* |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | * This file is part of the coreboot project. |
Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2007 AMD |
| 5 | * Written by Yinghai Lu <yinghai.lu@amd.com> for AMD. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 16 | */ |
| 17 | |
Uwe Hermann | c7f0c8f | 2011-01-04 19:51:33 +0000 | [diff] [blame] | 18 | #ifndef SOUTHBRIDGE_NVIDIA_MCP55_MCP55_H |
| 19 | #define SOUTHBRIDGE_NVIDIA_MCP55_MCP55_H |
Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 20 | |
Uwe Hermann | df323fc | 2010-11-25 09:03:55 +0000 | [diff] [blame] | 21 | #if CONFIG_HT_CHAIN_END_UNITID_BASE != 0x20 |
Uwe Hermann | c7f0c8f | 2011-01-04 19:51:33 +0000 | [diff] [blame] | 22 | #define MCP55_DEVN_BASE CONFIG_HT_CHAIN_END_UNITID_BASE |
Uwe Hermann | df323fc | 2010-11-25 09:03:55 +0000 | [diff] [blame] | 23 | #else |
Uwe Hermann | c7f0c8f | 2011-01-04 19:51:33 +0000 | [diff] [blame] | 24 | #define MCP55_DEVN_BASE CONFIG_HT_CHAIN_UNITID_BASE |
Uwe Hermann | df323fc | 2010-11-25 09:03:55 +0000 | [diff] [blame] | 25 | #endif |
Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 26 | |
Stefan Reinauer | 6f57b51 | 2010-07-08 16:41:05 +0000 | [diff] [blame] | 27 | #ifndef __PRE_RAM__ |
Uwe Hermann | df323fc | 2010-11-25 09:03:55 +0000 | [diff] [blame] | 28 | #include "chip.h" |
Yinghai Lu | c65bd56 | 2007-02-01 00:10:05 +0000 | [diff] [blame] | 29 | void mcp55_enable(device_t dev); |
Jonathan Kollasch | dca8b1b | 2010-10-29 20:40:06 +0000 | [diff] [blame] | 30 | extern struct pci_operations mcp55_pci_ops; |
Stefan Reinauer | 6f57b51 | 2010-07-08 16:41:05 +0000 | [diff] [blame] | 31 | #else |
| 32 | void enable_fid_change_on_sb(unsigned sbbusn, unsigned sbdn); |
Uwe Hermann | df323fc | 2010-11-25 09:03:55 +0000 | [diff] [blame] | 33 | #endif |
Uwe Hermann | df323fc | 2010-11-25 09:03:55 +0000 | [diff] [blame] | 34 | |
Uwe Hermann | c7f0c8f | 2011-01-04 19:51:33 +0000 | [diff] [blame] | 35 | #endif |