~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to include/hw/misc/bcm2835_rng.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * BCM2835 Random Number Generator emulation
 
3
 *
 
4
 * Copyright (C) 2017 Marcin Chojnacki <marcinch7@gmail.com>
 
5
 *
 
6
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
 
7
 * See the COPYING file in the top-level directory.
 
8
 */
 
9
 
 
10
#ifndef BCM2835_RNG_H
 
11
#define BCM2835_RNG_H
 
12
 
 
13
#include "hw/sysbus.h"
 
14
 
 
15
#define TYPE_BCM2835_RNG "bcm2835-rng"
 
16
#define BCM2835_RNG(obj) \
 
17
        OBJECT_CHECK(BCM2835RngState, (obj), TYPE_BCM2835_RNG)
 
18
 
 
19
typedef struct {
 
20
    SysBusDevice busdev;
 
21
    MemoryRegion iomem;
 
22
 
 
23
    uint32_t rng_ctrl;
 
24
    uint32_t rng_status;
 
25
} BCM2835RngState;
 
26
 
 
27
#endif