Line 27... |
Line 27... |
#define MAX_UARTS 4 /* Max. number of UARTs simulated */
|
#define MAX_UARTS 4 /* Max. number of UARTs simulated */
|
#define MAX_DMAS 4 /* Max. number of DMA controllers */
|
#define MAX_DMAS 4 /* Max. number of DMA controllers */
|
#define MAX_ETHERNETS 4 /* Max. number of Ethernet MACs */
|
#define MAX_ETHERNETS 4 /* Max. number of Ethernet MACs */
|
#define MAX_GPIOS 4 /* Max. number of GPIO modules */
|
#define MAX_GPIOS 4 /* Max. number of GPIO modules */
|
#define MAX_MEMORIES 16 /* Max. number of memory devices attached */
|
#define MAX_MEMORIES 16 /* Max. number of memory devices attached */
|
|
#define MAX_VGAS 4 /* Max. number of VGAs */
|
#define MAX_SBUF_LEN 256 /* Max. length of store buffer */
|
#define MAX_SBUF_LEN 256 /* Max. length of store buffer */
|
|
|
#define STR_SIZE (256)
|
#define STR_SIZE (256)
|
|
|
struct config {
|
struct config {
|
Line 72... |
Line 73... |
unsigned long baseaddr; /* Base address */
|
unsigned long baseaddr; /* Base address */
|
int irq; /* IRQ of this device */
|
int irq; /* IRQ of this device */
|
unsigned long base_vapi_id; /* First VAPI ID. GPIO uses 8 consecutive IDs */
|
unsigned long base_vapi_id; /* First VAPI ID. GPIO uses 8 consecutive IDs */
|
} gpios[MAX_GPIOS];
|
} gpios[MAX_GPIOS];
|
|
|
|
int nvgas;
|
|
struct {
|
|
unsigned long baseaddr; /* Base address */
|
|
int irq; /* IRQ of this device */
|
|
int refresh_rate; /* Number of clocks per refresh */
|
|
char filename[STR_SIZE]; /* Base file name; suffix of ####.bmp is added */
|
|
} vgas[MAX_VGAS];
|
|
|
|
struct {
|
|
int enabled; /* Whether frame buffer is enabled */
|
|
unsigned long bufaddr; /* Base address of frame buffer */
|
|
unsigned long paladdr; /* Base address of palette lookup */
|
|
int refresh_rate; /* Number of clocks per refresh */
|
|
char filename[STR_SIZE]; /* Base file name; suffix of ####.bmp is added */
|
|
} fb;
|
|
|
struct {
|
struct {
|
int enabled; /* is MC enabled? */
|
int enabled; /* is MC enabled? */
|
unsigned long baseaddr; /* Naturally aligned base address */
|
unsigned long baseaddr; /* Naturally aligned base address */
|
unsigned POC; /* power on reset configuration register */
|
unsigned POC; /* power on reset configuration register */
|
} mc;
|
} mc;
|