maru_pm.c, maru_vga.c and 4 more files.
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
return &dev->qdev;
}
-#ifdef CONFIG_MARU
-DeviceState *pci_maru_vga_init(PCIBus *bus);
-#endif
-
-
int isa_vga_mm_init(target_phys_addr_t vram_base,
target_phys_addr_t ctrl_base, int it_shift,
MemoryRegion *address_space);
QemuOpts *opts;
DriveInfo *dinfo;
USBDevice *dev;
+#ifndef CONFIG_MARU
const char *p1;
char fmt[32];
+#endif
/* parse -usbdevice disk: syntax into drive opts */
snprintf(id, sizeof(id), "usb%d", nr++);
/* cirrus_vga.c */
DeviceState *pci_cirrus_vga_init(PCIBus *bus);
+#ifdef CONFIG_MARU
+DeviceState *pci_maru_vga_init(PCIBus *bus);
+#endif
+
#endif
snprintf(cmd, len, "%s %s %s %s=\"%s\"",
JAVA_EXEFILE_PATH, JAVA_EXEOPTION, JAR_SKINFILE, JAVA_SIMPLEMODE_OPTION, _msg);
- int ret = system(cmd);
+ if(system(cmd) == -1) {
+ // TODO: Handle error...
+ }
#endif
abort();
#include "range.h"
#include "ioport.h"
#include "debug_ch.h"
+#include "fw_cfg.h"
//#define DEBUG
pm_update_sci(s);
}
-void maru_pm1_cnt_write(ACPIREGS *ar, uint16_t val)
+static void maru_pm1_cnt_write(ACPIREGS *ar, uint16_t val)
{
ar->pm1.cnt.cnt = val & ~(ACPI_BITMASK_SLEEP_ENABLE);
s->last_height = -1;
}
-static void vga_reset(void *opaque)
-{
- VGACommonState *s = opaque;
- vga_common_reset(s);
-}
-
#define TEXTMODE_X(x) ((x) % width)
#define TEXTMODE_Y(x) ((x) / width)
#define VMEM2CHTYPE(v) ((v & 0xff0007ff) | \
}
+#if 0
+static void vga_reset(void *opaque)
+{
+ VGACommonState *s = opaque;
+ vga_common_reset(s);
+}
+
static uint64_t vga_mem_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
s->graphic_mode = -1;
return 0;
}
+#endif
void maru_vga_common_init(VGACommonState *s)
{
/********************************************************/
/* vga screen dump */
+#if 0
static int maru_ppm_save(const char *filename, struct DisplaySurface *ds)
{
FILE *f;
fclose(f);
return 0;
}
+#endif
/* save the vga display in a PPM image even if no display is
available */
unsigned int *in = NULL;
unsigned int *out = NULL;
- unsigned int *row = NULL;
+// unsigned int *row = NULL;
switch(angle) {
case 90:
for (i = 0; i < dst_height; i++, out += dst_width) {
row_index = (i * sy) >> SHIFT;
- row = in + (row_index * rz_src->w);
+// row = in + (row_index * rz_src->w);
for (j = 0; j < dst_width; j++) {
col_index = (sx * j) >> SHIFT;
case 90: /* landscape */
for (i = 0; i < dst_height; i++) {
row_index = (i * sy) >> SHIFT;
- row = in + (row_index * rz_src->w);
+// row = in + (row_index * rz_src->w);
out = ((unsigned int *) rz_dst->pixels) + i;
for (i = 0; i < dst_height; i++, out += dst_width) {
row_index = ((dst_height - i - 1) * sy) >> SHIFT;
- row = in + (row_index * rz_src->w);
+// row = in + (row_index * rz_src->w);
for (j = 0; j < dst_width; j++) {
col_index = (sx * j) >> SHIFT;
case 270: /* reverse landscape */
for (i = 0; i < dst_height; i++) {
row_index = ((dst_height - i - 1) * sy) >> SHIFT;
- row = in + (row_index * rz_src->w);
+// row = in + (row_index * rz_src->w);
out = ((unsigned int *) rz_dst->pixels) + i;