blob: 9eec0dfd55b28cac935d5515d47712cf56ceba90 [file] [log] [blame]
Damien Zammit647e3852016-01-15 13:44:53 +11001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2016 Damien Zammit <damien@zamaudio.com>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
9 * the License, or (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
17#ifndef I82801GX_SATA_H
18#define I82801GX_SATA_H
19
20#define SATA_MAP 0x90
21#define SATA_PCS 0x92
22#define SATA_IR 0x94
23#define SIF1 0x180
24#define SIF2 (1 << 23)
25#define SIF3(ports) ((~(ports) & 0xf) << 24)
26#define SCRE (1 << 28)
27#define SCRD (1 << 30)
28
29void sata_enable(struct device *dev);
30
31#endif