1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13procedure PCIConfig {
14    uint8_t read8(in uint8_t bus, in uint8_t dev, in uint8_t fun, in unsigned int offset);
15    uint16_t read16(in uint8_t bus, in uint8_t dev, in uint8_t fun, in unsigned int offset);
16    uint32_t read32(in uint8_t bus, in uint8_t dev, in uint8_t fun, in unsigned int offset);
17    void write8(in uint8_t bus, in uint8_t dev, in uint8_t fun, in unsigned int offset, in uint8_t val);
18    void write16(in uint8_t bus, in uint8_t dev, in uint8_t fun, in unsigned int offset, in uint16_t val);
19    void write32(in uint8_t bus, in uint8_t dev, in uint8_t fun, in unsigned int offset, in uint32_t val);
20};
21