Revision db663d0f
b/hw/ppc405_uc.c | ||
---|---|---|
51 | 51 |
bdloc = 0x01000000UL - sizeof(struct ppc4xx_bd_info_t); |
52 | 52 |
else |
53 | 53 |
bdloc = bd->bi_memsize - sizeof(struct ppc4xx_bd_info_t); |
54 |
stl_phys(bdloc + 0x00, bd->bi_memstart); |
|
55 |
stl_phys(bdloc + 0x04, bd->bi_memsize); |
|
56 |
stl_phys(bdloc + 0x08, bd->bi_flashstart); |
|
57 |
stl_phys(bdloc + 0x0C, bd->bi_flashsize); |
|
58 |
stl_phys(bdloc + 0x10, bd->bi_flashoffset); |
|
59 |
stl_phys(bdloc + 0x14, bd->bi_sramstart); |
|
60 |
stl_phys(bdloc + 0x18, bd->bi_sramsize); |
|
61 |
stl_phys(bdloc + 0x1C, bd->bi_bootflags); |
|
62 |
stl_phys(bdloc + 0x20, bd->bi_ipaddr); |
|
63 |
for (i = 0; i < 6; i++) |
|
54 |
stl_be_phys(bdloc + 0x00, bd->bi_memstart);
|
|
55 |
stl_be_phys(bdloc + 0x04, bd->bi_memsize);
|
|
56 |
stl_be_phys(bdloc + 0x08, bd->bi_flashstart);
|
|
57 |
stl_be_phys(bdloc + 0x0C, bd->bi_flashsize);
|
|
58 |
stl_be_phys(bdloc + 0x10, bd->bi_flashoffset);
|
|
59 |
stl_be_phys(bdloc + 0x14, bd->bi_sramstart);
|
|
60 |
stl_be_phys(bdloc + 0x18, bd->bi_sramsize);
|
|
61 |
stl_be_phys(bdloc + 0x1C, bd->bi_bootflags);
|
|
62 |
stl_be_phys(bdloc + 0x20, bd->bi_ipaddr);
|
|
63 |
for (i = 0; i < 6; i++) {
|
|
64 | 64 |
stb_phys(bdloc + 0x24 + i, bd->bi_enetaddr[i]); |
65 |
stw_phys(bdloc + 0x2A, bd->bi_ethspeed); |
|
66 |
stl_phys(bdloc + 0x2C, bd->bi_intfreq); |
|
67 |
stl_phys(bdloc + 0x30, bd->bi_busfreq); |
|
68 |
stl_phys(bdloc + 0x34, bd->bi_baudrate); |
|
69 |
for (i = 0; i < 4; i++) |
|
65 |
} |
|
66 |
stw_be_phys(bdloc + 0x2A, bd->bi_ethspeed); |
|
67 |
stl_be_phys(bdloc + 0x2C, bd->bi_intfreq); |
|
68 |
stl_be_phys(bdloc + 0x30, bd->bi_busfreq); |
|
69 |
stl_be_phys(bdloc + 0x34, bd->bi_baudrate); |
|
70 |
for (i = 0; i < 4; i++) { |
|
70 | 71 |
stb_phys(bdloc + 0x38 + i, bd->bi_s_version[i]); |
72 |
} |
|
71 | 73 |
for (i = 0; i < 32; i++) { |
72 | 74 |
stb_phys(bdloc + 0x3C + i, bd->bi_r_version[i]); |
73 | 75 |
} |
74 |
stl_phys(bdloc + 0x5C, bd->bi_plb_busfreq); |
|
75 |
stl_phys(bdloc + 0x60, bd->bi_pci_busfreq); |
|
76 |
for (i = 0; i < 6; i++) |
|
76 |
stl_be_phys(bdloc + 0x5C, bd->bi_plb_busfreq);
|
|
77 |
stl_be_phys(bdloc + 0x60, bd->bi_pci_busfreq);
|
|
78 |
for (i = 0; i < 6; i++) {
|
|
77 | 79 |
stb_phys(bdloc + 0x64 + i, bd->bi_pci_enetaddr[i]); |
80 |
} |
|
78 | 81 |
n = 0x6A; |
79 | 82 |
if (flags & 0x00000001) { |
80 | 83 |
for (i = 0; i < 6; i++) |
81 | 84 |
stb_phys(bdloc + n++, bd->bi_pci_enetaddr2[i]); |
82 | 85 |
} |
83 |
stl_phys(bdloc + n, bd->bi_opbfreq); |
|
86 |
stl_be_phys(bdloc + n, bd->bi_opbfreq);
|
|
84 | 87 |
n += 4; |
85 | 88 |
for (i = 0; i < 2; i++) { |
86 |
stl_phys(bdloc + n, bd->bi_iic_fast[i]); |
|
89 |
stl_be_phys(bdloc + n, bd->bi_iic_fast[i]);
|
|
87 | 90 |
n += 4; |
88 | 91 |
} |
89 | 92 |
|
Also available in: Unified diff