Revision 2b5eb371
b/Makefile.objs | ||
---|---|---|
154 | 154 |
# PPC devices |
155 | 155 |
hw-obj-$(CONFIG_OPENPIC) += openpic.o |
156 | 156 |
hw-obj-$(CONFIG_PREP_PCI) += prep_pci.o |
157 |
# Mac shared devices |
|
158 |
hw-obj-$(CONFIG_MACIO) += macio.o |
|
159 |
hw-obj-$(CONFIG_CUDA) += cuda.o |
|
160 |
hw-obj-$(CONFIG_ADB) += adb.o |
|
161 |
hw-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o |
|
162 |
hw-obj-$(CONFIG_MAC_DBDMA) += mac_dbdma.o |
|
163 |
# OldWorld PowerMac |
|
164 |
hw-obj-$(CONFIG_HEATHROW_PIC) += heathrow_pic.o |
|
165 |
hw-obj-$(CONFIG_GRACKLE_PCI) += grackle_pci.o |
|
166 |
# NewWorld PowerMac |
|
167 |
hw-obj-$(CONFIG_UNIN_PCI) += unin_pci.o |
|
168 |
hw-obj-$(CONFIG_DEC_PCI) += dec_pci.o |
|
169 |
# PowerPC E500 boards |
|
170 |
hw-obj-$(CONFIG_PPCE500_PCI) += ppce500_pci.o |
|
157 | 171 |
|
158 | 172 |
# PCI watchdog devices |
159 | 173 |
hw-obj-y += wdt_i6300esb.o |
b/Makefile.target | ||
---|---|---|
194 | 194 |
# PREP target |
195 | 195 |
obj-ppc-y += pckbd.o i8259.o mc146818rtc.o |
196 | 196 |
obj-ppc-y += ppc_prep.o |
197 |
# Mac shared devices |
|
198 |
obj-ppc-y += macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o |
|
199 | 197 |
# OldWorld PowerMac |
200 |
obj-ppc-y += heathrow_pic.o grackle_pci.o ppc_oldworld.o
|
|
198 |
obj-ppc-y += ppc_oldworld.o |
|
201 | 199 |
# NewWorld PowerMac |
202 |
obj-ppc-y += unin_pci.o ppc_newworld.o dec_pci.o
|
|
200 |
obj-ppc-y += ppc_newworld.o
|
|
203 | 201 |
# PowerPC 4xx boards |
204 | 202 |
obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o |
205 | 203 |
obj-ppc-y += ppc440.o ppc440_bamboo.o |
206 | 204 |
# PowerPC E500 boards |
207 |
obj-ppc-y += ppce500_pci.o ppce500_mpc8544ds.o
|
|
205 |
obj-ppc-y += ppce500_mpc8544ds.o |
|
208 | 206 |
obj-ppc-$(CONFIG_KVM) += kvm_ppc.o |
209 | 207 |
obj-ppc-$(CONFIG_FDT) += device_tree.o |
210 | 208 |
|
b/default-configs/ppc-softmmu.mak | ||
---|---|---|
11 | 11 |
CONFIG_FDC=y |
12 | 12 |
CONFIG_OPENPIC=y |
13 | 13 |
CONFIG_PREP_PCI=y |
14 |
CONFIG_MACIO=y |
|
15 |
CONFIG_CUDA=y |
|
16 |
CONFIG_ADB=y |
|
17 |
CONFIG_MAC_NVRAM=y |
|
18 |
CONFIG_MAC_DBDMA=y |
|
19 |
CONFIG_HEATHROW_PIC=y |
|
20 |
CONFIG_GRACKLE_PCI=y |
|
21 |
CONFIG_UNIN_PCI=y |
|
22 |
CONFIG_DEC_PCI=y |
|
23 |
CONFIG_PPCE500_PCI=y |
|
14 | 24 |
CONFIG_IDE_CORE=y |
15 | 25 |
CONFIG_IDE_QDEV=y |
16 | 26 |
CONFIG_IDE_PCI=y |
b/default-configs/ppc64-softmmu.mak | ||
---|---|---|
11 | 11 |
CONFIG_FDC=y |
12 | 12 |
CONFIG_OPENPIC=y |
13 | 13 |
CONFIG_PREP_PCI=y |
14 |
CONFIG_MACIO=y |
|
15 |
CONFIG_CUDA=y |
|
16 |
CONFIG_ADB=y |
|
17 |
CONFIG_MAC_NVRAM=y |
|
18 |
CONFIG_MAC_DBDMA=y |
|
19 |
CONFIG_HEATHROW_PIC=y |
|
20 |
CONFIG_GRACKLE_PCI=y |
|
21 |
CONFIG_UNIN_PCI=y |
|
22 |
CONFIG_DEC_PCI=y |
|
23 |
CONFIG_PPCE500_PCI=y |
|
14 | 24 |
CONFIG_IDE_CORE=y |
15 | 25 |
CONFIG_IDE_QDEV=y |
16 | 26 |
CONFIG_IDE_PCI=y |
b/default-configs/ppcemb-softmmu.mak | ||
---|---|---|
11 | 11 |
CONFIG_FDC=y |
12 | 12 |
CONFIG_OPENPIC=y |
13 | 13 |
CONFIG_PREP_PCI=y |
14 |
CONFIG_MACIO=y |
|
15 |
CONFIG_CUDA=y |
|
16 |
CONFIG_ADB=y |
|
17 |
CONFIG_MAC_NVRAM=y |
|
18 |
CONFIG_MAC_DBDMA=y |
|
19 |
CONFIG_HEATHROW_PIC=y |
|
20 |
CONFIG_GRACKLE_PCI=y |
|
21 |
CONFIG_UNIN_PCI=y |
|
22 |
CONFIG_DEC_PCI=y |
|
23 |
CONFIG_PPCE500_PCI=y |
|
14 | 24 |
CONFIG_IDE_CORE=y |
15 | 25 |
CONFIG_IDE_QDEV=y |
16 | 26 |
CONFIG_IDE_PCI=y |
b/hw/heathrow_pic.c | ||
---|---|---|
68 | 68 |
HeathrowPIC *pic; |
69 | 69 |
unsigned int n; |
70 | 70 |
|
71 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
72 | 71 |
value = bswap32(value); |
73 |
#endif |
|
74 | 72 |
n = ((addr & 0xfff) - 0x10) >> 4; |
75 | 73 |
PIC_DPRINTF("writel: " TARGET_FMT_plx " %u: %08x\n", addr, n, value); |
76 | 74 |
if (n >= 2) |
... | ... | |
120 | 118 |
} |
121 | 119 |
} |
122 | 120 |
PIC_DPRINTF("readl: " TARGET_FMT_plx " %u: %08x\n", addr, n, value); |
123 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
124 | 121 |
value = bswap32(value); |
125 |
#endif |
|
126 | 122 |
return value; |
127 | 123 |
} |
128 | 124 |
|
b/hw/mac_dbdma.c | ||
---|---|---|
707 | 707 |
DBDMA_DPRINTF("channel 0x%x reg 0x%x\n", |
708 | 708 |
(uint32_t)addr >> DBDMA_CHANNEL_SHIFT, reg); |
709 | 709 |
|
710 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
711 | 710 |
value = bswap32(value); |
712 |
#endif |
|
713 | 711 |
|
714 | 712 |
/* cmdptr cannot be modified if channel is RUN or ACTIVE */ |
715 | 713 |
|
... | ... | |
790 | 788 |
break; |
791 | 789 |
} |
792 | 790 |
|
793 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
794 | 791 |
value = bswap32(value); |
795 |
#endif |
|
796 | 792 |
return value; |
797 | 793 |
} |
798 | 794 |
|
b/hw/ppce500_pci.c | ||
---|---|---|
15 | 15 |
*/ |
16 | 16 |
|
17 | 17 |
#include "hw.h" |
18 |
#include "ppc.h" |
|
19 | 18 |
#include "ppce500.h" |
20 | 19 |
#include "pci.h" |
21 | 20 |
#include "pci_host.h" |
22 | 21 |
#include "bswap.h" |
23 |
#include "qemu-log.h" |
|
24 | 22 |
|
25 | 23 |
#ifdef DEBUG_PCI |
26 | 24 |
#define pci_debug(fmt, ...) fprintf(stderr, fmt, ## __VA_ARGS__) |
b/hw/unin_pci.c | ||
---|---|---|
121 | 121 |
pcibus_t addr, uint32_t val, int len) |
122 | 122 |
{ |
123 | 123 |
UNINState *s = container_of(handler, UNINState, data_handler); |
124 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
125 | 124 |
val = qemu_bswap_len(val, len); |
126 |
#endif |
|
127 | 125 |
UNIN_DPRINTF("write addr %" FMT_PCIBUS " len %d val %x\n", addr, len, val); |
128 | 126 |
pci_data_write(s->host_state.bus, |
129 | 127 |
unin_get_config_reg(s->host_state.config_reg, addr), |
... | ... | |
140 | 138 |
unin_get_config_reg(s->host_state.config_reg, addr), |
141 | 139 |
len); |
142 | 140 |
UNIN_DPRINTF("read addr %" FMT_PCIBUS " len %d val %x\n", addr, len, val); |
143 |
#ifdef TARGET_WORDS_BIGENDIAN |
|
144 | 141 |
val = qemu_bswap_len(val, len); |
145 |
#endif |
|
146 | 142 |
return val; |
147 | 143 |
} |
148 | 144 |
|
Also available in: Unified diff