2 * This file is part of the coreboot project.
4 * Copyright (C) 2007 AMD
5 * Written by Yinghai Lu <yinghai.lu@amd.com> for AMD.
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.
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.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 static unsigned get_sbdn(unsigned bus)
26 /* Find the device. */
27 dev = pci_locate_device_on_bus(
28 PCI_ID(PCI_VENDOR_ID_SIS, PCI_DEVICE_ID_SIS_SIS761),
31 return (dev>>15) & 0x1f;
34 static void hard_reset(void)
43 static void enable_fid_change_on_sb(unsigned sbbusn, unsigned sbdn)
45 /* default value for sis966 is good */
46 /* set VFSMAF ( VID/FID System Management Action Field) to 2 */
50 static void soft_reset(void)