2 * inteltool - dump all registers on an Intel CPU + chipset based system.
4 * Copyright (C) 2008 by coresystems GmbH
5 * written by Stefan Reinauer <stepan@coresystems.de>
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; version 2 of the License.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #include "inteltool.h"
25 int print_rcba(struct pci_dev *sb)
28 volatile uint8_t *rcba;
31 printf("\n============= RCBA ==============\n\n");
33 switch (sb->device_id) {
34 case PCI_DEVICE_ID_INTEL_ICH6:
35 case PCI_DEVICE_ID_INTEL_ICH7:
36 case PCI_DEVICE_ID_INTEL_ICH7M:
37 case PCI_DEVICE_ID_INTEL_ICH7DH:
38 case PCI_DEVICE_ID_INTEL_ICH7MDH:
39 case PCI_DEVICE_ID_INTEL_ICH8:
40 case PCI_DEVICE_ID_INTEL_ICH8M:
41 case PCI_DEVICE_ID_INTEL_ICH9DH:
42 case PCI_DEVICE_ID_INTEL_ICH9DO:
43 case PCI_DEVICE_ID_INTEL_ICH9R:
44 case PCI_DEVICE_ID_INTEL_ICH9:
45 case PCI_DEVICE_ID_INTEL_ICH9M:
46 case PCI_DEVICE_ID_INTEL_ICH9ME:
47 case PCI_DEVICE_ID_INTEL_ICH10R:
48 case PCI_DEVICE_ID_INTEL_NM10:
49 case PCI_DEVICE_ID_INTEL_I63XX:
50 rcba_phys = pci_read_long(sb, 0xf0) & 0xfffffffe;
52 case PCI_DEVICE_ID_INTEL_ICH:
53 case PCI_DEVICE_ID_INTEL_ICH0:
54 case PCI_DEVICE_ID_INTEL_ICH2:
55 case PCI_DEVICE_ID_INTEL_ICH4:
56 case PCI_DEVICE_ID_INTEL_ICH4M:
57 case PCI_DEVICE_ID_INTEL_ICH5:
58 printf("This southbridge does not have RCBA.\n");
61 printf("Error: Dumping RCBA on this southbridge is not (yet) supported.\n");
65 rcba = map_physical(rcba_phys, size);
68 perror("Error mapping RCBA");
72 printf("RCBA = 0x%08x (MEM)\n\n", rcba_phys);
74 for (i = 0; i < size; i += 4) {
75 if (*(uint32_t *)(rcba + i))
76 printf("0x%04x: 0x%08x\n", i, *(uint32_t *)(rcba + i));
79 unmap_physical((void *)rcba, size);