cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

cbus.h (758B)


      1/*
      2 * CBUS three-pin bus and the Retu / Betty / Tahvo / Vilma / Avilma /
      3 * Hinku / Vinku / Ahne / Pihi chips used in various Nokia platforms.
      4 * Based on reverse-engineering of a linux driver.
      5 *
      6 * Copyright (C) 2008 Nokia Corporation
      7 * Written by Andrzej Zaborowski
      8 *
      9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
     10 * See the COPYING file in the top-level directory.
     11 */
     12
     13#ifndef HW_MISC_CBUS_H
     14#define HW_MISC_CBUS_H
     15
     16
     17typedef struct {
     18    qemu_irq clk;
     19    qemu_irq dat;
     20    qemu_irq sel;
     21} CBus;
     22
     23CBus *cbus_init(qemu_irq dat_out);
     24void cbus_attach(CBus *bus, void *slave_opaque);
     25
     26void *retu_init(qemu_irq irq, int vilma);
     27void *tahvo_init(qemu_irq irq, int betty);
     28
     29void retu_key_event(void *retu, int state);
     30
     31#endif