x86: replace cpu_x86_init() with cpu_generic_init()
[qemu/ar7.git] / hw / s390x / s390-pci-stub.c
blob7a642d376ce28c0d1aba1d199a5c8c394bb20c4d
1 /* stubs for non-pci builds */
3 #include "qemu/osdep.h"
4 #include "qemu-common.h"
5 #include "cpu.h"
6 #include "s390-pci-inst.h"
7 #include "s390-pci-bus.h"
9 /* target/s390x/ioinst.c */
10 int pci_chsc_sei_nt2_get_event(void *res)
12 return 1;
15 int pci_chsc_sei_nt2_have_event(void)
17 return 0;
20 /* hw/s390x/sclp.c */
21 void s390_pci_sclp_configure(SCCB *sccb)
23 sccb->h.response_code = cpu_to_be16(SCLP_RC_ADAPTER_TYPE_NOT_RECOGNIZED);
26 void s390_pci_sclp_deconfigure(SCCB *sccb)
28 sccb->h.response_code = cpu_to_be16(SCLP_RC_ADAPTER_TYPE_NOT_RECOGNIZED);
31 /* target/s390x/kvm.c */
32 int clp_service_call(S390CPU *cpu, uint8_t r2)
34 return -1;
37 int pcilg_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2)
39 return -1;
42 int pcistg_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2)
44 return -1;
47 int stpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba, uint8_t ar)
49 return -1;
52 int rpcit_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2)
54 return -1;
57 int pcistb_service_call(S390CPU *cpu, uint8_t r1, uint8_t r3, uint64_t gaddr,
58 uint8_t ar)
60 return -1;
63 int mpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba, uint8_t ar)
65 return -1;
68 S390pciState *s390_get_phb(void)
70 return NULL;
73 S390PCIBusDevice *s390_pci_find_dev_by_idx(S390pciState *s, uint32_t idx)
75 return NULL;