cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

sata_gemini.h (674B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/* 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