Ron has been doing really good work over in v3. The problem is that the work got...
[coreboot.git] / src / southbridge / amd / sb600 / sb600.h
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.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18  */
19
20 #ifndef SB600_H
21 #define SB600_H
22
23 #include "chip.h"
24
25 #define PCI_DEVICE_ID_ATI_SB600_LPC 0x438D
26 #define PCI_DEVICE_ID_ATI_SB600_SATA 0x4380
27 #define PCI_DEVICE_ID_ATI_SB600_IDE 0x438C
28 #define PCI_DEVICE_ID_ATI_SB600_HDA 0x4383
29 #define PCI_DEVICE_ID_ATI_SB600_ACI 0x4382
30 #define PCI_DEVICE_ID_ATI_SB600_MCI 0x438E
31 #define PCI_DEVICE_ID_ATI_SB600_USB2 0x4386
32 #define PCI_DEVICE_ID_ATI_SB600_PCI  0x4384
33 #define PCI_DEVICE_ID_ATI_SB600_SM 0x4385
34 #define PCI_DEVICE_ID_ATI_SB600_USB_0 0x4387
35 #define PCI_DEVICE_ID_ATI_SB600_USB_1 0x4388
36 #define PCI_DEVICE_ID_ATI_SB600_USB_2 0x4389
37 #define PCI_DEVICE_ID_ATI_SB600_USB_3 0x438A
38 #define PCI_DEVICE_ID_ATI_SB600_USB_4 0x438B
39 extern void pm_iowrite(u8 reg, u8 value);
40 extern u8 pm_ioread(u8 reg);
41 extern void pm2_iowrite(u8 reg, u8 value);
42 extern u8 pm2_ioread(u8 reg);
43 extern void set_sm_enable_bits(device_t sm_dev, u32 reg_pos, u32 mask, u32 val);
44
45 void sb600_enable(device_t dev);
46
47 #endif /* SB600_H */