Intel 82371EB: Some code simplifications (trivial).
[coreboot.git] / src / southbridge / intel / i82371eb / i82371eb.h
1 /*
2  * This file is part of the LinuxBIOS project.
3  *
4  * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
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; either version 2 of the License, or
9  * (at your option) any later version.
10  *
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.
15  *
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
19  */
20
21 #ifndef SOUTHBRIDGE_INTEL_I82371EB_H
22 #define SOUTHBRIDGE_INTEL_I82371EB_H
23
24 #ifndef __ROMCC__
25 #include "chip.h"
26 void i82371eb_enable(device_t dev);
27 #endif
28
29 #define XBCS            0x4e    /* X-Bus Chip Select register */
30
31 /* SMBus */
32 #define SMBBA           0x90    /* SMBus Base Address */
33 #define SMBHSTCFG       0xd2    /* SMBus Host Configuration */
34
35 /* IDE */
36 #define IDETIM_PRI      0x40    /* IDE timing register, primary channel */
37 #define IDETIM_SEC      0x42    /* IDE timing register, secondary channel */
38
39 /* Bit definitions */
40 #define IOSE                    (1 << 0)        /* I/O Space Enable */
41 #define SMB_HST_EN              (1 << 0)        /* Host Interface Enable */
42 #define IDE_DECODE_ENABLE       (1 << 15)       /* IDE Decode Enable */
43
44 #endif                          /* SOUTHBRIDGE_INTEL_I82371EB_H */