ppc405_uc.c (861cd431c99e56ddb5953ca1da164a9c32b477ca) ppc405_uc.c (9bca0edb282de0007a4f068d9d20f3e3c3aadef7)
1/*
2 * QEMU PowerPC 405 embedded processors emulation
3 *
4 * Copyright (c) 2007 Jocelyn Mayer
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 1646 unchanged lines hidden (view full) ---

1655 ppc405_ebc_init(env);
1656 /* DMA controller */
1657 dma_irqs[0] = pic[26];
1658 dma_irqs[1] = pic[25];
1659 dma_irqs[2] = pic[24];
1660 dma_irqs[3] = pic[23];
1661 ppc405_dma_init(env, dma_irqs);
1662 /* Serial ports */
1/*
2 * QEMU PowerPC 405 embedded processors emulation
3 *
4 * Copyright (c) 2007 Jocelyn Mayer
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 1646 unchanged lines hidden (view full) ---

1655 ppc405_ebc_init(env);
1656 /* DMA controller */
1657 dma_irqs[0] = pic[26];
1658 dma_irqs[1] = pic[25];
1659 dma_irqs[2] = pic[24];
1660 dma_irqs[3] = pic[23];
1661 ppc405_dma_init(env, dma_irqs);
1662 /* Serial ports */
1663 if (serial_hds[0] != NULL) {
1663 if (serial_hd(0) != NULL) {
1664 serial_mm_init(address_space_mem, 0xef600300, 0, pic[0],
1664 serial_mm_init(address_space_mem, 0xef600300, 0, pic[0],
1665 PPC_SERIAL_MM_BAUDBASE, serial_hds[0],
1665 PPC_SERIAL_MM_BAUDBASE, serial_hd(0),
1666 DEVICE_BIG_ENDIAN);
1667 }
1666 DEVICE_BIG_ENDIAN);
1667 }
1668 if (serial_hds[1] != NULL) {
1668 if (serial_hd(1) != NULL) {
1669 serial_mm_init(address_space_mem, 0xef600400, 0, pic[1],
1669 serial_mm_init(address_space_mem, 0xef600400, 0, pic[1],
1670 PPC_SERIAL_MM_BAUDBASE, serial_hds[1],
1670 PPC_SERIAL_MM_BAUDBASE, serial_hd(1),
1671 DEVICE_BIG_ENDIAN);
1672 }
1673 /* IIC controller */
1674 sysbus_create_simple(TYPE_PPC4xx_I2C, 0xef600500, pic[2]);
1675 /* GPIO */
1676 ppc405_gpio_init(0xef600700);
1677 /* CPU control */
1678 ppc405cr_cpc_init(env, clk_setup, sysclk);

--- 339 unchanged lines hidden (view full) ---

2018 dma_irqs[2] = pic[7];
2019 dma_irqs[3] = pic[8];
2020 ppc405_dma_init(env, dma_irqs);
2021 /* IIC controller */
2022 sysbus_create_simple(TYPE_PPC4xx_I2C, 0xef600500, pic[2]);
2023 /* GPIO */
2024 ppc405_gpio_init(0xef600700);
2025 /* Serial ports */
1671 DEVICE_BIG_ENDIAN);
1672 }
1673 /* IIC controller */
1674 sysbus_create_simple(TYPE_PPC4xx_I2C, 0xef600500, pic[2]);
1675 /* GPIO */
1676 ppc405_gpio_init(0xef600700);
1677 /* CPU control */
1678 ppc405cr_cpc_init(env, clk_setup, sysclk);

--- 339 unchanged lines hidden (view full) ---

2018 dma_irqs[2] = pic[7];
2019 dma_irqs[3] = pic[8];
2020 ppc405_dma_init(env, dma_irqs);
2021 /* IIC controller */
2022 sysbus_create_simple(TYPE_PPC4xx_I2C, 0xef600500, pic[2]);
2023 /* GPIO */
2024 ppc405_gpio_init(0xef600700);
2025 /* Serial ports */
2026 if (serial_hds[0] != NULL) {
2026 if (serial_hd(0) != NULL) {
2027 serial_mm_init(address_space_mem, 0xef600300, 0, pic[0],
2027 serial_mm_init(address_space_mem, 0xef600300, 0, pic[0],
2028 PPC_SERIAL_MM_BAUDBASE, serial_hds[0],
2028 PPC_SERIAL_MM_BAUDBASE, serial_hd(0),
2029 DEVICE_BIG_ENDIAN);
2030 }
2029 DEVICE_BIG_ENDIAN);
2030 }
2031 if (serial_hds[1] != NULL) {
2031 if (serial_hd(1) != NULL) {
2032 serial_mm_init(address_space_mem, 0xef600400, 0, pic[1],
2032 serial_mm_init(address_space_mem, 0xef600400, 0, pic[1],
2033 PPC_SERIAL_MM_BAUDBASE, serial_hds[1],
2033 PPC_SERIAL_MM_BAUDBASE, serial_hd(1),
2034 DEVICE_BIG_ENDIAN);
2035 }
2036 /* OCM */
2037 ppc405_ocm_init(env);
2038 /* GPT */
2039 gpt_irqs[0] = pic[19];
2040 gpt_irqs[1] = pic[20];
2041 gpt_irqs[2] = pic[21];

--- 18 unchanged lines hidden ---
2034 DEVICE_BIG_ENDIAN);
2035 }
2036 /* OCM */
2037 ppc405_ocm_init(env);
2038 /* GPT */
2039 gpt_irqs[0] = pic[19];
2040 gpt_irqs[1] = pic[20];
2041 gpt_irqs[2] = pic[21];

--- 18 unchanged lines hidden ---