Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
23 lines
674 B
C
23 lines
674 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Header for the Gemini SATA bridge */
|
|
#ifndef SATA_GEMINI_H
|
|
#define SATA_GEMINI_H
|
|
|
|
struct sata_gemini;
|
|
|
|
enum gemini_muxmode {
|
|
GEMINI_MUXMODE_0 = 0,
|
|
GEMINI_MUXMODE_1,
|
|
GEMINI_MUXMODE_2,
|
|
GEMINI_MUXMODE_3,
|
|
};
|
|
|
|
struct sata_gemini *gemini_sata_bridge_get(void);
|
|
bool gemini_sata_bridge_enabled(struct sata_gemini *sg, bool is_ata1);
|
|
enum gemini_muxmode gemini_sata_get_muxmode(struct sata_gemini *sg);
|
|
int gemini_sata_start_bridge(struct sata_gemini *sg, unsigned int bridge);
|
|
void gemini_sata_stop_bridge(struct sata_gemini *sg, unsigned int bridge);
|
|
int gemini_sata_reset_bridge(struct sata_gemini *sg, unsigned int bridge);
|
|
|
|
#endif
|