Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Walleij | be4e456 | 2017-06-04 10:50:08 +0200 | [diff] [blame] | 2 | /* Header for the Gemini SATA bridge */ |
| 3 | #ifndef SATA_GEMINI_H |
| 4 | #define SATA_GEMINI_H |
| 5 | |
| 6 | struct sata_gemini; |
| 7 | |
| 8 | enum gemini_muxmode { |
| 9 | GEMINI_MUXMODE_0 = 0, |
| 10 | GEMINI_MUXMODE_1, |
| 11 | GEMINI_MUXMODE_2, |
| 12 | GEMINI_MUXMODE_3, |
| 13 | }; |
| 14 | |
| 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); |
| 21 | |
| 22 | #endif |