Michael Xie | 7586cef | 2008-09-22 13:11:39 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2008 Advanced Micro Devices, Inc. |
| 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; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
Michael Xie | 7586cef | 2008-09-22 13:11:39 +0000 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef SB600_H |
| 17 | #define SB600_H |
| 18 | |
Martin Roth | 1e1c7ac | 2015-12-10 08:19:27 -0700 | [diff] [blame] | 19 | #ifndef __ACPI__ |
Uwe Hermann | b7d781d | 2008-10-13 21:41:24 +0000 | [diff] [blame] | 20 | #include <device/pci_ids.h> |
Marc Jones | cf762a4 | 2008-10-03 23:23:20 +0000 | [diff] [blame] | 21 | #include "chip.h" |
Martin Roth | 1e1c7ac | 2015-12-10 08:19:27 -0700 | [diff] [blame] | 22 | #endif |
Marc Jones | cf762a4 | 2008-10-03 23:23:20 +0000 | [diff] [blame] | 23 | |
Uwe Hermann | 039255c | 2008-10-21 16:27:38 +0000 | [diff] [blame] | 24 | /* Power management index/data registers */ |
| 25 | #define PM_INDEX 0xcd6 |
| 26 | #define PM_DATA 0xcd7 |
| 27 | #define PM2_INDEX 0xcd0 |
| 28 | #define PM2_DATA 0xcd1 |
| 29 | |
Martin Roth | 1e1c7ac | 2015-12-10 08:19:27 -0700 | [diff] [blame] | 30 | #define HPET_BASE_ADDRESS 0xfed00000 |
| 31 | |
| 32 | #ifndef __ACPI__ |
Michael Xie | 7586cef | 2008-09-22 13:11:39 +0000 | [diff] [blame] | 33 | extern void pm_iowrite(u8 reg, u8 value); |
| 34 | extern u8 pm_ioread(u8 reg); |
| 35 | extern void pm2_iowrite(u8 reg, u8 value); |
| 36 | extern u8 pm2_ioread(u8 reg); |
| 37 | extern void set_sm_enable_bits(device_t sm_dev, u32 reg_pos, u32 mask, u32 val); |
| 38 | |
| 39 | void sb600_enable(device_t dev); |
| 40 | |
Stefan Reinauer | c8873ce | 2010-04-30 19:21:01 +0000 | [diff] [blame] | 41 | void sb600_lpc_port80(void); |
| 42 | void sb600_pci_port80(void); |
| 43 | |
Martin Roth | 1e1c7ac | 2015-12-10 08:19:27 -0700 | [diff] [blame] | 44 | #endif /* __ACPI__ */ |
Michael Xie | 7586cef | 2008-09-22 13:11:39 +0000 | [diff] [blame] | 45 | #endif /* SB600_H */ |