blob: 6f6e691d60071629fdfba9179244f9f515ee65df [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Walleijbe4e4562017-06-04 10:50:08 +02002/* Header for the Gemini SATA bridge */
3#ifndef SATA_GEMINI_H
4#define SATA_GEMINI_H
5
6struct sata_gemini;
7
8enum gemini_muxmode {
9 GEMINI_MUXMODE_0 = 0,
10 GEMINI_MUXMODE_1,
11 GEMINI_MUXMODE_2,
12 GEMINI_MUXMODE_3,
13};
14
15struct sata_gemini *gemini_sata_bridge_get(void);
16bool gemini_sata_bridge_enabled(struct sata_gemini *sg, bool is_ata1);
17enum gemini_muxmode gemini_sata_get_muxmode(struct sata_gemini *sg);
18int gemini_sata_start_bridge(struct sata_gemini *sg, unsigned int bridge);
19void gemini_sata_stop_bridge(struct sata_gemini *sg, unsigned int bridge);
20int gemini_sata_reset_bridge(struct sata_gemini *sg, unsigned int bridge);
21
22#endif