2 * This file is part of the LinuxBIOS project.
4 * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
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.
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 * - Name: 82371AB PCI-TO-ISA / IDE XCELERATOR (PIIX4)
23 * - URL: http://www.intel.com/design/intarch/datashts/290562.htm
24 * - PDF: http://www.intel.com/design/intarch/datashts/29056201.pdf
25 * - Order Number: 290562-001
28 #include <console/console.h>
29 #include <device/device.h>
30 #include <device/pci.h>
34 * Enable access to all BIOS regions. Do not enable write access to the ROM.
37 * - Set bit 9: 1-Meg Extended BIOS Enable (PCI master accesses to
38 * FFF00000-FFF7FFFF are forwarded to ISA).
39 * - Set bit 7: Extended BIOS Enable (PCI master accesses to
40 * FFF80000-FFFDFFFF are forwarded to ISA).
41 * - Set bit 6: Lower BIOS Enable (PCI master, or ISA master accesses to
42 * the lower 64-Kbyte BIOS block (E0000-EFFFF) at the top
43 * of 1 Mbyte, or the aliases at the top of 4 Gbyte
44 * (FFFE0000-FFFEFFFF) result in the generation of BIOSCS#.
45 * - Bit 2: BIOSCS# Write Enable (1=enable, 0=disable).
47 * Note: Accesses to FFFF0000-FFFFFFFF are always forwarded to ISA.
49 * @param dev The device to use.
51 void i82371eb_enable(device_t dev)
55 reg = pci_read_config16(dev, XBCS);
57 pci_write_config16(dev, XBCS, reg);
60 struct chip_operations southbridge_intel_i82371eb_ops = {
61 CHIP_NAME("Intel 82371EB Southbridge")
62 .enable_dev = i82371eb_enable,