summaryrefslogtreecommitdiffstats
path: root/hw/s390x/s390-pci-stub.c
blob: 48f8b4e8a3246c48a98d38ef1653fe92f86d74f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/* stubs for non-pci builds */

#include "qemu/osdep.h"
#include "qemu-common.h"
#include "cpu.h"
#include "s390-pci-inst.h"
#include "s390-pci-bus.h"

/* target/s390x/ioinst.c */
int chsc_sei_nt2_get_event(void *res)
{
    return 1;
}

int chsc_sei_nt2_have_event(void)
{
    return 0;
}

/* hw/s390x/sclp.c */
void s390_pci_sclp_configure(SCCB *sccb)
{
    sccb->h.response_code = cpu_to_be16(SCLP_RC_ADAPTER_TYPE_NOT_RECOGNIZED);
}

void s390_pci_sclp_deconfigure(SCCB *sccb)
{
    sccb->h.response_code = cpu_to_be16(SCLP_RC_ADAPTER_TYPE_NOT_RECOGNIZED);
}

/* target/s390x/kvm.c */
int clp_service_call(S390CPU *cpu, uint8_t r2)
{
    return -1;
}

int pcilg_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2)
{
    return -1;
}

int pcistg_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2)
{
    return -1;
}

int stpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba, uint8_t ar)
{
    return -1;
}

int rpcit_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2)
{
    return -1;
}

int pcistb_service_call(S390CPU *cpu, uint8_t r1, uint8_t r3, uint64_t gaddr,
                        uint8_t ar)
{
    return -1;
}

int mpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba, uint8_t ar)
{
    return -1;
}

S390pciState *s390_get_phb(void)
{
    return NULL;
}

S390PCIBusDevice *s390_pci_find_dev_by_idx(S390pciState *s, uint32_t idx)
{
    return NULL;
}