mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
ppc4xx_sdram: Move ppc4xx_sdram_banks() to ppc4xx_sdram.c
This function is only used by the ppc4xx memory controller models so it can be made static. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-Id: <b1504a82157a586aa284e8ee3b427b9a07b24169.1666194485.git.balaton@eik.bme.hu> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
fa446fc540
commit
080741abc2
3 changed files with 69 additions and 74 deletions
|
@ -29,18 +29,6 @@
|
|||
#include "exec/memory.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
typedef struct {
|
||||
MemoryRegion ram;
|
||||
MemoryRegion container; /* used for clipping */
|
||||
hwaddr base;
|
||||
hwaddr size;
|
||||
uint32_t bcr;
|
||||
} Ppc4xxSdramBank;
|
||||
|
||||
void ppc4xx_sdram_banks(MemoryRegion *ram, int nr_banks,
|
||||
Ppc4xxSdramBank ram_banks[],
|
||||
const ram_addr_t sdram_bank_sizes[]);
|
||||
|
||||
#define TYPE_PPC4xx_PCI_HOST_BRIDGE "ppc4xx-pcihost"
|
||||
|
||||
/*
|
||||
|
@ -111,6 +99,14 @@ struct Ppc4xxEbcState {
|
|||
};
|
||||
|
||||
/* SDRAM DDR controller */
|
||||
typedef struct {
|
||||
MemoryRegion ram;
|
||||
MemoryRegion container; /* used for clipping */
|
||||
hwaddr base;
|
||||
hwaddr size;
|
||||
uint32_t bcr;
|
||||
} Ppc4xxSdramBank;
|
||||
|
||||
#define SDR0_DDR0_DDRM_ENCODE(n) ((((unsigned long)(n)) & 0x03) << 29)
|
||||
#define SDR0_DDR0_DDRM_DDR1 0x20000000
|
||||
#define SDR0_DDR0_DDRM_DDR2 0x40000000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue