dev_px.cc File Reference

Back to the index.

Macros | Functions
dev_px.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cpu.h"
#include "devices.h"
#include "machine.h"
#include "memory.h"
#include "misc.h"
#include "thirdparty/pxreg.h"

Go to the source code of this file.

Macros

#define PX_XSIZE   1280
 
#define PX_YSIZE   1024
 

Functions

 DEVICE_TICK (px)
 
uint32_t px_readword (struct cpu *cpu, unsigned char *dma_buf, int ofs)
 
void dev_px_dma (struct cpu *cpu, uint32_t sys_addr, struct px_data *d)
 
 DEVICE_ACCESS (px)
 
void dev_px_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, int px_type, const char *irq_path)
 

Macro Definition Documentation

◆ PX_XSIZE

#define PX_XSIZE   1280

Definition at line 93 of file dev_px.cc.

◆ PX_YSIZE

#define PX_YSIZE   1024

Definition at line 94 of file dev_px.cc.

Function Documentation

◆ dev_px_dma()

void dev_px_dma ( struct cpu cpu,
uint32_t  sys_addr,
struct px_data d 
)

◆ dev_px_init()

void dev_px_init ( struct machine machine,
struct memory mem,
uint64_t  baseaddr,
int  px_type,
const char *  irq_path 
)

◆ DEVICE_ACCESS()

DEVICE_ACCESS ( px  )

◆ DEVICE_TICK()

DEVICE_TICK ( px  )

Definition at line 99 of file dev_px.cc.

References INTERRUPT_ASSERT, px_data::intr, px_data::irq, and STIC_INT_P_EN.

◆ px_readword()

uint32_t px_readword ( struct cpu cpu,
unsigned char *  dma_buf,
int  ofs 
)

Definition at line 118 of file dev_px.cc.

References cpu::byte_order, and EMUL_LITTLE_ENDIAN.

Referenced by dev_px_dma().


Generated on Tue Mar 24 2020 14:04:48 for GXemul by doxygen 1.8.17