Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / ata / sata_gemini.h
blob6f6e691d60071629fdfba9179244f9f515ee65df
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Header for the Gemini SATA bridge */
3 #ifndef SATA_GEMINI_H
4 #define SATA_GEMINI_H
6 struct sata_gemini;
8 enum gemini_muxmode {
9 GEMINI_MUXMODE_0 = 0,
10 GEMINI_MUXMODE_1,
11 GEMINI_MUXMODE_2,
12 GEMINI_MUXMODE_3,
15 struct sata_gemini *gemini_sata_bridge_get(void);
16 bool gemini_sata_bridge_enabled(struct sata_gemini *sg, bool is_ata1);
17 enum gemini_muxmode gemini_sata_get_muxmode(struct sata_gemini *sg);
18 int gemini_sata_start_bridge(struct sata_gemini *sg, unsigned int bridge);
19 void gemini_sata_stop_bridge(struct sata_gemini *sg, unsigned int bridge);
20 int gemini_sata_reset_bridge(struct sata_gemini *sg, unsigned int bridge);
22 #endif