Go to the source code of this file.
Classes | |
struct | pic8259_data |
struct | dec_ioasic_data |
struct | vfb_data |
struct | px_data |
struct | sgi_ip20_data |
struct | sgi_ip22_data |
struct | lk201_data |
Macros | |
#define | DEV_DEC_IOASIC_LENGTH 0xc0000 |
#define | MAX_IOASIC_DMA_FUNCTIONS 8 |
#define | DEV_ASC_DEC_LENGTH 0x40000 |
#define | DEV_ASC_PICA_LENGTH 0x1000 |
#define | DEV_ASC_DEC 1 |
#define | DEV_ASC_PICA 2 |
#define | DEV_BT431_LENGTH 0x20 |
#define | DEV_BT431_NREGS 0x800 /* ? */ |
#define | DEV_BT455_LENGTH 0x20 |
#define | DEV_BT459_LENGTH 0x20 |
#define | DEV_BT459_NREGS 0x1000 |
#define | BT459_PX 1 /* px[g] */ |
#define | BT459_BA 2 /* cfb */ |
#define | BT459_BBA 3 /* sfb */ |
#define | DEV_COLORPLANEMASK_LENGTH 0x0000000000000010 |
#define | DEV_DC7085_LENGTH 0x0000000000000080 |
#define | DEV_DECCCA_LENGTH 0x10000 /* ? */ |
#define | DEC_DECCCA_BASEADDR 0x19000000 /* ? I just made this up */ |
#define | DEV_DECXMI_LENGTH 0x800000 |
#define | DEV_FB_LENGTH 0x3c0000 /* 3c0000 to not colide with */ |
#define | VFB_GENERIC 0 |
#define | VFB_HPC 1 |
#define | VFB_DEC_VFB01 2 |
#define | VFB_DEC_VFB02 3 |
#define | VFB_DEC_MAXINE 4 |
#define | VFB_PLAYSTATION2 5 |
#define | VFB_REVERSE_START 0x10000 |
#define | VFB_MFB_BT455 0x100000 |
#define | VFB_MFB_BT431 0x180000 |
#define | VFB_MFB_VRAM 0x200000 |
#define | VFB_CFB_BT459 0x200000 |
#define | DEV_GT_LENGTH 0x1000 |
#define | DEV_KN01_LENGTH 4 |
#define | DEV_VDAC_LENGTH 0x20 |
#define | DEV_VDAC_MAPWA 0x00 |
#define | DEV_VDAC_MAP 0x04 |
#define | DEV_VDAC_MASK 0x08 |
#define | DEV_VDAC_MAPRA 0x0c |
#define | DEV_VDAC_OVERWA 0x10 |
#define | DEV_VDAC_OVER 0x14 |
#define | DEV_VDAC_OVERRA 0x1c |
#define | DEV_DEC5500_IOBOARD_LENGTH 0x100000 |
#define | DEV_SGEC_LENGTH 0x1000 |
#define | DEV_LE_LENGTH 0x1c0200 |
#define | DEV_MC146818_LENGTH 0x0000000000000100 |
#define | MC146818_DEC 0 |
#define | MC146818_PC_CMOS 1 |
#define | MC146818_ARC_NEC 2 |
#define | MC146818_ARC_JAZZ 3 |
#define | MC146818_SGI 4 |
#define | MC146818_CATS 5 |
#define | MC146818_ALGOR 6 |
#define | MC146818_PMPPC 7 |
#define | DEV_PCKBC_LENGTH 0x10 |
#define | PCKBC_8042 0 |
#define | PCKBC_8242 1 |
#define | PCKBC_JAZZ 3 |
#define | DEV_PMAGJA_LENGTH 0x3c0000 |
#define | DEV_PX_TYPE_PX 0 |
#define | DEV_PX_TYPE_PXG 1 |
#define | DEV_PX_TYPE_PXGPLUS 2 |
#define | DEV_PX_TYPE_PXGPLUSTURBO 3 |
#define | DEV_PX_LENGTH 0x3c0000 |
#define | DEV_RAM_RAM 0 |
#define | DEV_RAM_MIRROR 1 |
#define | DEV_RAM_MIGHT_POINT_TO_DEVICES 0x10 |
#define | DEV_RAM_TRACE_ALL_ACCESSES 0x20 |
#define | DEV_SCC_LENGTH 0x1000 |
#define | DEV_SFB_LENGTH 0x400000 |
#define | DEV_SGI_GBE_LENGTH 0x1000000 |
#define | DEV_SGI_RE_LENGTH 0x1000 |
#define | DEV_SGI_DE_LENGTH 0x1000 |
#define | DEV_SGI_MTE_LENGTH 0x1000 |
#define | DEV_SGI_DE_STATUS_LENGTH 0x1000 |
#define | DEV_SGI_IP20_LENGTH 0x40 |
#define | DEV_SGI_IP20_BASE 0x1fb801c0 |
#define | DEV_SGI_IP22_LENGTH 0x100 |
#define | DEV_SGI_IP22_IMC_LENGTH 0x100 |
#define | DEV_SGI_IP22_UNKNOWN2_LENGTH 0x100 |
#define | IP22_IMC_BASE 0x1fa00000 |
#define | IP22_UNKNOWN2_BASE 0x1fb94000 |
#define | DEV_MACEPCI_LENGTH 0x1000 |
#define | DEV_SGI_MEC_LENGTH 0x1000 |
#define | DEV_SGI_UST_LENGTH 0x10000 |
#define | DEV_SII_LENGTH 0x100 |
#define | DEV_SSC_LENGTH 0x1000 |
#define | DEV_TURBOCHANNEL_LEN 0x0470 |
Functions | |
void | dec_ioasic_reassert (struct dec_ioasic_data *) |
int | dev_dec_ioasic_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
struct dec_ioasic_data * | dev_dec_ioasic_init (struct cpu *cpu, struct memory *mem, uint64_t baseaddr, int rackmount_flag, struct interrupt *irq) |
int | dev_asc_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_asc_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, const char *irq_path, void *turbochannel, int mode, size_t(*dma_controller)(void *dma_controller_data, unsigned char *data, size_t len, int writeflag), void *dma_controller_data) |
int | dev_bt431_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_bt431_init (struct memory *mem, uint64_t baseaddr, struct vfb_data *vfb_data, int color_fb_flag) |
int | dev_bt455_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_bt455_init (struct memory *mem, uint64_t baseaddr, struct vfb_data *vfb_data) |
int | dev_bt459_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_bt459_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, uint64_t baseaddr_irq, struct vfb_data *vfb_data, int color_fb_flag, const char *irq_path, int type) |
int | dev_colorplanemask_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_colorplanemask_init (struct memory *mem, uint64_t baseaddr, unsigned char *color_plane_mask) |
void | dev_dc7085_tick (struct cpu *cpu, void *) |
int | dev_dc7085_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
int | dev_dc7085_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, char *irq_path, int use_fb) |
int | dev_deccca_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_deccca_init (struct memory *mem, uint64_t baseaddr) |
int | dev_decxmi_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_decxmi_init (struct memory *mem, uint64_t baseaddr) |
void | set_grayscale_palette (struct vfb_data *d, int ncolors) |
void | dev_fb_resize (struct vfb_data *d, int new_xsize, int new_ysize) |
void | dev_fb_setcursor (struct vfb_data *d, int cursor_x, int cursor_y, int on, int cursor_xsize, int cursor_ysize) |
void | framebuffer_blockcopyfill (struct vfb_data *d, int fillflag, int fill_r, int fill_g, int fill_b, int x1, int y1, int x2, int y2, int from_x, int from_y) |
void | dev_fb_tick (struct cpu *, void *) |
int | dev_fb_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
struct vfb_data * | dev_fb_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, int vfb_type, int visible_xsize, int visible_ysize, int xsize, int ysize, int bit_depth, const char *name) |
int | dev_gt_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
struct pci_data * | dev_gt_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, const char *timer_irq_path, const char *isa_irq_path, int type) |
size_t | dev_jazz_dma_controller (void *dma_controller_data, unsigned char *data, size_t len, int writeflag) |
int | dev_kn01_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_kn01_init (struct memory *mem, uint64_t baseaddr, int color_fb) |
int | dev_vdac_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_vdac_init (struct memory *mem, uint64_t baseaddr, unsigned char *rgb_palette, int color_fb_flag) |
int | dev_dec5500_ioboard_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
struct dec5500_ioboard_data * | dev_dec5500_ioboard_init (struct cpu *cpu, struct memory *mem, uint64_t baseaddr) |
int | dev_sgec_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_sgec_init (struct memory *mem, uint64_t baseaddr, int irq_nr) |
int | dev_le_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_le_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, uint64_t buf_start, uint64_t buf_end, const char *irq_path, int len) |
void | dev_mc146818_tick (struct cpu *cpu, void *) |
int | dev_mc146818_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_mc146818_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, char *irq_path, int access_style, int addrdiv) |
int | dev_pckbc_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
int | dev_pckbc_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, int type, char *keyboard_irqpath, char *mouse_irqpath, int in_use, int pc_style_flag) |
int | dev_pmagja_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_pmagja_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, const char *irq_path) |
int | dev_px_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_px_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, int px_type, const char *irq_path) |
int | dev_ram_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_ram_init (struct machine *machine, uint64_t baseaddr, uint64_t length, int mode, uint64_t otheraddr, const char *name=NULL) |
int | dev_scc_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
int | dev_scc_dma_func (struct cpu *cpu, void *extra, uint64_t addr, size_t dma_len, int tx) |
void * | dev_scc_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, char *irq_path, int use_fb, int scc_nr, int addrmul) |
int | dev_sfb_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_sfb_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, struct vfb_data *vfb_data) |
int | dev_sgi_gbe_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_sgi_gbe_init (struct machine *machine, struct memory *mem, uint64_t baseaddr) |
int | dev_sgi_re_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_sgi_re_init (struct machine *machine, struct memory *mem, uint64_t baseaddr) |
int | dev_sgi_de_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_sgi_de_init (struct memory *mem, uint64_t baseaddr, struct sgi_re_data *) |
void | dev_sgi_mte_init (struct memory *mem, uint64_t baseaddr, struct sgi_re_data *) |
void | dev_sgi_de_status_init (struct memory *mem, uint64_t baseaddr, struct sgi_re_data *) |
int | dev_sgi_ip20_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
struct sgi_ip20_data * | dev_sgi_ip20_init (struct cpu *cpu, struct memory *mem, uint64_t baseaddr) |
int | dev_sgi_ip22_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
struct sgi_ip22_data * | dev_sgi_ip22_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, int guiness_flag) |
void | dev_crime_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, char *irq_path, int use_fb) |
int | dev_macepci_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
struct pci_data * | dev_macepci_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, char *irq_path) |
int | dev_sgi_mec_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_sgi_mec_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, char *irq_path, unsigned char *macaddr) |
int | dev_sgi_ust_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_sgi_ust_init (struct memory *mem, uint64_t baseaddr) |
void | dev_sii_tick (struct cpu *cpu, void *) |
int | dev_sii_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_sii_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, uint64_t buf_start, uint64_t buf_end, char *irq_path) |
int | dev_ssc_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_ssc_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, const char *irq_path, int use_fb) |
int | dev_turbochannel_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_turbochannel_init (struct machine *machine, struct memory *mem, int slot_nr, uint64_t baseaddr, uint64_t endaddr, const char *device_name, const char *irq_path) |
struct pci_data * | dev_uninorth_init (struct machine *machine, struct memory *mem, uint64_t addr, int irqbase, int pciirq) |
int | dev_vga_access (struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *) |
void | dev_vga_init (struct machine *machine, struct memory *mem, uint64_t videomem_base, uint64_t control_base, const char *name) |
struct vr41xx_data * | dev_vr41xx_init (struct machine *machine, struct memory *mem, int cpumodel) |
void | lk201_tick (struct machine *, struct lk201_data *) |
void | lk201_tx_data (struct lk201_data *, int port, int idata) |
void | lk201_init (struct lk201_data *d, int use_fb, void(*add_to_rx_queue)(void *, int, int), int console_handle, void *) |
#define DEC_DECCCA_BASEADDR 0x19000000 /* ? I just made this up */ |
#define DEV_FB_LENGTH 0x3c0000 /* 3c0000 to not colide with */ |
void dec_ioasic_reassert | ( | struct dec_ioasic_data * | ) |
Definition at line 51 of file dev_dec_ioasic.cc.
References dec_ioasic_data::imsk, dec_ioasic_data::int_asserted, interrupt::interrupt_assert, interrupt::interrupt_deassert, dec_ioasic_data::intr, and dec_ioasic_data::irq.
Referenced by DEVICE_ACCESS(), kn02ba_interrupt_assert(), and kn02ba_interrupt_deassert().
int dev_asc_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_asc_init().
void dev_asc_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
const char * | irq_path, | ||
void * | turbochannel, | ||
int | mode, | ||
size_t(*)(void *dma_controller_data, unsigned char *data, size_t len, int writeflag) | dma_controller, | ||
void * | dma_controller_data | ||
) |
Definition at line 1226 of file dev_asc.cc.
References machine::arch_pagesize, ASC_DMA_SIZE, ASC_TICK_SHIFT, CHECK_ALLOCATION, dev_asc_access(), DEV_ASC_DEC, DEV_ASC_DEC_LENGTH, DEV_ASC_PICA, DEV_ASC_PICA_LENGTH, DM_DEFAULT, DM_DYNTRANS_OK, DM_DYNTRANS_WRITE_OK, asc_data::dma, asc_data::dma_address_reg_memory, asc_data::dma_controller, asc_data::dma_controller_data, INTERRUPT_CONNECT, asc_data::irq, machine_add_tickfunction(), memory_device_register(), asc_data::mode, NCR_CFG3, NCRF9XCFG3_CDB, asc_data::reg_ro, and asc_data::turbochannel.
Referenced by dev_turbochannel_init(), and MACHINE_SETUP().
int dev_bt431_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_bt431_init().
void dev_bt431_init | ( | struct memory * | mem, |
uint64_t | baseaddr, | ||
struct vfb_data * | vfb_data, | ||
int | color_fb_flag | ||
) |
Definition at line 196 of file dev_bt431.cc.
References CHECK_ALLOCATION, bt431_data::cursor_x, bt431_data::cursor_xsize, bt431_data::cursor_y, bt431_data::cursor_ysize, dev_bt431_access(), DEV_BT431_LENGTH, DM_DEFAULT, memory_device_register(), bt431_data::planes, and bt431_data::vfb_data.
Referenced by dev_pmagja_init(), and dev_turbochannel_init().
int dev_bt455_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_bt455_init().
Definition at line 167 of file dev_bt455.cc.
References CHECK_ALLOCATION, dev_bt455_access(), DEV_BT455_LENGTH, DM_DEFAULT, memory_device_register(), bt455_data::rgb_palette, vfb_data::rgb_palette, and bt455_data::vfb_data.
Referenced by dev_turbochannel_init().
int dev_bt459_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_bt459_init().
void dev_bt459_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
uint64_t | baseaddr_irq, | ||
struct vfb_data * | vfb_data, | ||
int | color_fb_flag, | ||
const char * | irq_path, | ||
int | type | ||
) |
Definition at line 522 of file dev_bt459.cc.
References BT459_BA, BT459_BBA, BT459_PX, BT459_TICK_SHIFT, CHECK_ALLOCATION, bt459_data::cursor_x, bt459_data::cursor_x_add, bt459_data::cursor_xsize, bt459_data::cursor_y, bt459_data::cursor_y_add, bt459_data::cursor_ysize, dev_bt459_access(), DEV_BT459_LENGTH, DM_DEFAULT, INTERRUPT_CONNECT, bt459_data::interrupt_time_reset_value, bt459_data::irq, machine_add_tickfunction(), memory_device_register(), bt459_data::planes, bt459_data::rgb_palette, vfb_data::rgb_palette, bt459_data::type, bt459_data::vfb_data, bt459_data::video_on, and vfb_data::xsize.
Referenced by dev_pmagja_init(), dev_px_init(), and dev_turbochannel_init().
int dev_colorplanemask_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_colorplanemask_init().
void dev_colorplanemask_init | ( | struct memory * | mem, |
uint64_t | baseaddr, | ||
unsigned char * | color_plane_mask | ||
) |
Definition at line 83 of file dev_colorplanemask.cc.
References CHECK_ALLOCATION, colorplanemask_data::color_plane_mask, dev_colorplanemask_access(), DEV_COLORPLANEMASK_LENGTH, DM_DEFAULT, and memory_device_register().
Referenced by MACHINE_SETUP().
void dev_crime_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
char * | irq_path, | ||
int | use_fb | ||
) |
Definition at line 404 of file dev_sgi_ip32.cc.
References CHECK_ALLOCATION, crime_interrupt_assert(), crime_interrupt_deassert(), CRIME_TICKSHIFT, DEV_CRIME_LENGTH, device_add(), DM_DEFAULT, interrupt::extra, interrupt::interrupt_assert, INTERRUPT_CONNECT, interrupt::interrupt_deassert, interrupt_handler_register(), crime_data::irq, interrupt::line, machine_add_tickfunction(), memory_device_register(), interrupt::name, and crime_data::use_fb.
Referenced by MACHINE_SETUP().
int dev_dc7085_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_dc7085_init().
int dev_dc7085_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
char * | irq_path, | ||
int | use_fb | ||
) |
Definition at line 298 of file dev_dc7085.cc.
References add_to_rx_queue(), CHECK_ALLOCATION, dc_data::console_handle, console_start_slave(), CSR_MSE, CSR_TRDY, dc7085regs::dc_csr, dc7085regs::dc_tcr, DC_TICK_SHIFT, dev_dc7085_access(), DEV_DC7085_LENGTH, dev_dc7085_tick(), DM_DEFAULT, INTERRUPT_CONNECT, dc_data::irq, dc_data::lk201, lk201_init(), machine_add_tickfunction(), memory_device_register(), dc_data::regs, and dc_data::use_fb.
Referenced by MACHINE_SETUP().
void dev_dc7085_tick | ( | struct cpu * | cpu, |
void * | |||
) |
Referenced by dev_dc7085_init(), and DEVICE_ACCESS().
int dev_dec5500_ioboard_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_dec5500_ioboard_init().
struct dec5500_ioboard_data* dev_dec5500_ioboard_init | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | baseaddr | ||
) |
Definition at line 168 of file dev_kn220.cc.
References CHECK_ALLOCATION, dev_dec5500_ioboard_access(), DEV_DEC5500_IOBOARD_LENGTH, DM_DEFAULT, and memory_device_register().
Referenced by MACHINE_SETUP().
int dev_dec_ioasic_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_dec_ioasic_init().
struct dec_ioasic_data* dev_dec_ioasic_init | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
int | rackmount_flag, | ||
struct interrupt * | irq | ||
) |
Definition at line 460 of file dev_dec_ioasic.cc.
References CHECK_ALLOCATION, dev_dec_ioasic_access(), DEV_DEC_IOASIC_LENGTH, DM_DEFAULT, dec_ioasic_data::irq, memory_device_register(), and dec_ioasic_data::rackmount_flag.
Referenced by DEVINIT().
int dev_deccca_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_deccca_init().
void dev_deccca_init | ( | struct memory * | mem, |
uint64_t | baseaddr | ||
) |
Definition at line 389 of file dev_dec5800.cc.
References CHECK_ALLOCATION, dev_deccca_access(), DEV_DECCCA_LENGTH, DM_DEFAULT, and memory_device_register().
Referenced by MACHINE_SETUP().
int dev_decxmi_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_decxmi_init().
void dev_decxmi_init | ( | struct memory * | mem, |
uint64_t | baseaddr | ||
) |
Definition at line 501 of file dev_dec5800.cc.
References CHECK_ALLOCATION, dev_decxmi_access(), DEV_DECXMI_LENGTH, DM_DEFAULT, and memory_device_register().
Referenced by MACHINE_SETUP().
int dev_fb_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by DEVICE_ACCESS(), DEVICE_TICK(), and test_triangle().
struct vfb_data* dev_fb_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
int | vfb_type, | ||
int | visible_xsize, | ||
int | visible_ysize, | ||
int | xsize, | ||
int | ysize, | ||
int | bit_depth, | ||
const char * | name | ||
) |
Definition at line 834 of file dev_fb.cc.
References vfb_data::bit_depth, vfb_data::bytes_per_line, CHECK_ALLOCATION, vfb_data::color32k, vfb_data::framebuffer, vfb_data::framebuffer_size, vfb_data::memory, vfb_data::name, vfb_data::psp_15bit, x11_md::scaledown, set_blackwhite_palette(), set_grayscale_palette(), vfb_data::update_x1, vfb_data::update_x2, vfb_data::update_y1, vfb_data::update_y2, VFB_DEC_MAXINE, VFB_DEC_VFB01, VFB_DEC_VFB02, VFB_PLAYSTATION2, VFB_REVERSE_START, vfb_data::vfb_scaledown, vfb_data::vfb_type, vfb_data::visible_xsize, vfb_data::visible_ysize, machine::x11_md, vfb_data::x11_xsize, vfb_data::x11_ysize, vfb_data::xsize, and vfb_data::ysize.
Referenced by dev_pmagja_init(), dev_px_init(), dev_sgi_gbe_init(), dev_turbochannel_init(), dev_vga_init(), DEVINIT(), and MACHINE_SETUP().
void dev_fb_resize | ( | struct vfb_data * | d, |
int | new_xsize, | ||
int | new_ysize | ||
) |
Definition at line 123 of file dev_fb.cc.
References vfb_data::bit_depth, vfb_data::bytes_per_line, CHECK_ALLOCATION, fatal(), vfb_data::framebuffer, vfb_data::framebuffer_size, vfb_data::memory, memory_device_update_data(), vfb_data::update_x1, vfb_data::update_x2, vfb_data::update_y1, vfb_data::update_y2, vfb_data::vfb_scaledown, vfb_data::visible_xsize, vfb_data::visible_ysize, vfb_data::x11_xsize, vfb_data::x11_ysize, vfb_data::xsize, and vfb_data::ysize.
Referenced by DEVICE_ACCESS().
void dev_fb_setcursor | ( | struct vfb_data * | d, |
int | cursor_x, | ||
int | cursor_y, | ||
int | on, | ||
int | cursor_xsize, | ||
int | cursor_ysize | ||
) |
Definition at line 193 of file dev_fb.cc.
References fb_window::cursor_on, fb_window::cursor_x, fb_window::cursor_xsize, fb_window::cursor_y, fb_window::cursor_ysize, vfb_data::fb_window, vfb_data::xsize, and vfb_data::ysize.
Referenced by DEVICE_ACCESS().
void dev_fb_tick | ( | struct cpu * | , |
void * | |||
) |
int dev_gt_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_gt_init().
struct pci_data* dev_gt_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
const char * | timer_irq_path, | ||
const char * | isa_irq_path, | ||
int | type | ||
) |
Definition at line 225 of file dev_gt.cc.
References bus_pci_add(), bus_pci_init(), CHECK_ALLOCATION, gt_data::decode, dev_gt_access(), DEV_GT_LENGTH, DM_DEFAULT, fatal(), GT_PCI0IOHD_OFS, GT_PCI0IOLD_OFS, GT_PCI0IOREMAP_OFS, GT_PCI0M0HD_OFS, GT_PCI0M0LD_OFS, GT_PCI0M0REMAP_OFS, GT_PCI0M1HD_OFS, GT_PCI0M1LD_OFS, GT_PCI0M1REMAP_OFS, INTERRUPT_CONNECT, machine_add_tickfunction(), memory_device_register(), gt_data::pci_data, PCI_PRODUCT_GALILEO_GT64011, PCI_PRODUCT_GALILEO_GT64120, PCI_PRODUCT_GALILEO_GT64260, TICK_SHIFT, gt_data::timer0_irq, and gt_data::type.
Referenced by MACHINE_SETUP().
size_t dev_jazz_dma_controller | ( | void * | dma_controller_data, |
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag | ||
) |
Definition at line 150 of file dev_jazz.cc.
References cpu::byte_order, jazz_data::cpu, data, jazz_data::dma0_addr, jazz_data::dma0_count, jazz_data::dma0_enable, jazz_data::dma0_mode, jazz_data::dma_translation_table_base, EMUL_BIG_ENDIAN, fatal(), cpu::mem, cpu::memory_rw, NO_EXCEPTIONS, PHYSICAL, R4030_DMA_ENAB_RUN, and R4030_DMA_ENAB_WRITE.
Referenced by MACHINE_SETUP().
int dev_kn01_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_kn01_init().
void dev_kn01_init | ( | struct memory * | mem, |
uint64_t | baseaddr, | ||
int | color_fb | ||
) |
Definition at line 252 of file dev_kn01.cc.
References CHECK_ALLOCATION, kn01_data::color_fb, kn01_data::csr, dev_kn01_access(), DEV_KN01_LENGTH, DM_DEFAULT, KN01_CSR_MONO, and memory_device_register().
Referenced by MACHINE_SETUP().
int dev_le_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_le_init().
void dev_le_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
uint64_t | buf_start, | ||
uint64_t | buf_end, | ||
const char * | irq_path, | ||
int | len | ||
) |
Definition at line 759 of file dev_le.cc.
References le_data::buf_end, le_data::buf_start, CHECK_ALLOCATION, dev_le_access(), DM_DEFAULT, DM_DYNTRANS_OK, DM_DYNTRANS_WRITE_OK, DM_READS_HAVE_NO_SIDE_EFFECTS, machine::emul, INTERRUPT_CONNECT, le_data::irq, LE_STOP, LE_TICK_SHIFT, le_data::len, machine_add_tickfunction(), memory_device_register(), emul::net, net_add_nic(), net_generate_unique_mac(), le_data::reg, le_data::rom, le_data::rx_packet, le_data::sram, SRAM_SIZE, and le_data::tx_packet.
Referenced by dev_turbochannel_init(), and MACHINE_SETUP().
int dev_macepci_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_macepci_init().
struct pci_data* dev_macepci_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
char * | irq_path | ||
) |
Definition at line 789 of file dev_sgi_ip32.cc.
References bus_pci_init(), CHECK_ALLOCATION, dev_macepci_access(), DEV_MACEPCI_LENGTH, DM_DEFAULT, memory_device_register(), and macepci_data::pci_data.
Referenced by MACHINE_SETUP().
int dev_mc146818_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_mc146818_init().
void dev_mc146818_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
char * | irq_path, | ||
int | access_style, | ||
int | addrdiv | ||
) |
Definition at line 587 of file dev_mc146818.cc.
References mc_data::access_style, mc_data::addrdiv, CHECK_ALLOCATION, dev_mc146818_access(), DEV_MC146818_LENGTH, DM_DEFAULT, INTERRUPT_CONNECT, mc_data::irq, MACHINE_PREP, machine::machine_type, MC146818_ARC_JAZZ, MC146818_CATS, MC146818_DEC, MC146818_PC_CMOS, MC146818_PMPPC, MC146818_SGI, memory_device_register(), NETBSD_HACK_DONE, mc_data::reg, mc_data::ugly_netbsd_prep_hack_done, mc_data::uip_threshold, and mc_data::use_bcd.
Referenced by DEVINIT(), and MACHINE_SETUP().
void dev_mc146818_tick | ( | struct cpu * | cpu, |
void * | |||
) |
int dev_pckbc_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_pckbc_init().
int dev_pckbc_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
int | type, | ||
char * | keyboard_irqpath, | ||
char * | mouse_irqpath, | ||
int | in_use, | ||
int | pc_style_flag | ||
) |
Definition at line 1157 of file dev_pckbc.cc.
References CHECK_ALLOCATION, pckbc_data::console_handle, console_start_slave_inputonly(), dev_pckbc_access(), DEV_PCKBC_LENGTH, DM_DEFAULT, pckbc_data::in_use, INTERRUPT_CONNECT, pckbc_data::irq_keyboard, pckbc_data::irq_mouse, machine_add_tickfunction(), memory_device_register(), pckbc_data::output_byte, pckbc_data::pc_style_flag, PCKBC_8042, PCKBC_8242, PCKBC_JAZZ, PCKBC_TICKSHIFT, pckbc_data::rx_int_enable, pckbc_data::scanning_enabled, pckbc_data::translation_table, and pckbc_data::type.
Referenced by bus_isa_init(), and MACHINE_SETUP().
int dev_pmagja_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_pmagja_init().
void dev_pmagja_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
const char * | irq_path | ||
) |
Definition at line 196 of file dev_pmagja.cc.
References machine::arch, CHECK_ALLOCATION, dev_bt431_init(), dev_bt459_init(), dev_fb_init(), dev_pmagja_access(), DEV_PMAGJA_LENGTH, DM_DEFAULT, pmagja_data::fb_mem, INTERRUPT_CONNECT, pmagja_data::irq, memory_device_register(), memory_new(), PMAGJA_FIRSTOFFSET, pmagja_data::vfb_data, VFB_GENERIC, XSIZE, and YSIZE.
Referenced by dev_turbochannel_init().
int dev_px_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_px_init().
void dev_px_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
int | px_type, | ||
const char * | irq_path | ||
) |
Definition at line 752 of file dev_px.cc.
References machine::arch, px_data::bitdepth, BT459_PX, CHECK_ALLOCATION, dev_bt459_init(), dev_fb_init(), dev_px_access(), DEV_PX_LENGTH, DEV_PX_TYPE_PX, DEV_PX_TYPE_PXG, DEV_PX_TYPE_PXGPLUS, DEV_PX_TYPE_PXGPLUSTURBO, DM_DEFAULT, fatal(), px_data::fb_mem, INTERRUPT_CONNECT, px_data::irq, machine_add_tickfunction(), memory_device_register(), memory_new(), px_data::px_name, PX_XSIZE, PX_YSIZE, px_data::type, px_data::vfb_data, VFB_GENERIC, px_data::xconfig, and px_data::yconfig.
Referenced by dev_turbochannel_init().
int dev_ram_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_ram_init().
void dev_ram_init | ( | struct machine * | machine, |
uint64_t | baseaddr, | ||
uint64_t | length, | ||
int | mode, | ||
uint64_t | otheraddr, | ||
const char * | name = NULL |
||
) |
Definition at line 134 of file dev_ram.cc.
References machine::arch_pagesize, ram_data::baseaddress, CHECK_ALLOCATION, ram_data::data, dev_ram_access(), DEV_RAM_MIGHT_POINT_TO_DEVICES, DEV_RAM_MIRROR, DEV_RAM_RAM, DEV_RAM_TRACE_ALL_ACCESSES, DM_DEFAULT, DM_DYNTRANS_OK, DM_DYNTRANS_WRITE_OK, DM_EMULATED_RAM, DM_READS_HAVE_NO_SIDE_EFFECTS, fatal(), ram_data::length, machine::memory, memory_device_register(), ram_data::mode, ram_data::name, ram_data::offset, ram_data::otheraddress, and ram_data::trace.
Referenced by dev_vr41xx_init(), DEVINIT(), and MACHINE_SETUP().
int dev_scc_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_scc_init().
int dev_scc_dma_func | ( | struct cpu * | cpu, |
void * | extra, | ||
uint64_t | addr, | ||
size_t | dma_len, | ||
int | tx | ||
) |
Definition at line 244 of file dev_scc.cc.
References addr, dev_scc_add_to_rx_queue(), scc_data::lk201, lk201_tx_data(), cpu::mem, MEM_READ, cpu::memory_rw, N_SCC_REGS, NO_EXCEPTIONS, PHYSICAL, SCC_CHANNEL_A, scc_data::scc_nr, scc_data::scc_register_w, SCC_WR14, and SCC_WR14_LOCAL_LOOPB.
void* dev_scc_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
char * | irq_path, | ||
int | use_fb, | ||
int | scc_nr, | ||
int | addrmul | ||
) |
Definition at line 461 of file dev_scc.cc.
References scc_data::addrmul, CHECK_ALLOCATION, scc_data::console_handle, console_start_slave(), dev_scc_access(), dev_scc_add_to_rx_queue(), DEV_SCC_LENGTH, DM_DEFAULT, INTERRUPT_CONNECT, scc_data::irq, scc_data::lk201, lk201_init(), machine_add_tickfunction(), memory_device_register(), scc_data::scc_nr, scc_data::scc_register_r, SCC_RR0, SCC_RR0_TX_UNDERRUN, SCC_TICK_SHIFT, and scc_data::use_fb.
Referenced by MACHINE_SETUP().
int dev_sfb_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_sfb_init().
void dev_sfb_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
struct vfb_data * | vfb_data | ||
) |
Definition at line 94 of file dev_sfb.cc.
References CHECK_ALLOCATION, dev_sfb_access(), DM_DEFAULT, memory_device_register(), sfb_data::reg, SFB_ASIC_OFFSET, SFB_REG_SIZE, SFB_VHORIZONTAL, SFB_VVERTICAL, SFB_XSIZE, SFB_YSIZE, and sfb_data::vfb_data.
Referenced by dev_turbochannel_init().
int dev_sgec_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_sgec_init().
void dev_sgec_init | ( | struct memory * | mem, |
uint64_t | baseaddr, | ||
int | irq_nr | ||
) |
Definition at line 151 of file dev_kn220.cc.
References CHECK_ALLOCATION, dev_sgec_access(), DEV_SGEC_LENGTH, DM_DEFAULT, sgec_data::irq_nr, and memory_device_register().
Referenced by MACHINE_SETUP().
int dev_sgi_de_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_sgi_de_init().
void dev_sgi_de_init | ( | struct memory * | mem, |
uint64_t | baseaddr, | ||
struct sgi_re_data * | |||
) |
Definition at line 921 of file dev_sgi_re.cc.
References dev_sgi_de_access(), DEV_SGI_DE_LENGTH, DM_DEFAULT, and memory_device_register().
Referenced by dev_sgi_re_init().
void dev_sgi_de_status_init | ( | struct memory * | mem, |
uint64_t | baseaddr, | ||
struct sgi_re_data * | |||
) |
Definition at line 1334 of file dev_sgi_re.cc.
References DEV_SGI_DE_STATUS_LENGTH, DM_DEFAULT, and memory_device_register().
Referenced by dev_sgi_re_init().
int dev_sgi_gbe_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_sgi_gbe_init().
Definition at line 736 of file dev_sgi_gbe.cc.
References sgi_gbe_data::bitdepth, CHECK_ALLOCATION, CRMFB_CTRLSTAT_CHIPID_MASK, CRMFB_CTRLSTAT_GPIO3_INPUT, CRMFB_CTRLSTAT_GPIO4_INPUT, CRMFB_CTRLSTAT_GPIO4_SENSE, CRMFB_CTRLSTAT_GPIO5_INPUT, CRMFB_CTRLSTAT_GPIO6_INPUT, CRMFB_CTRLSTAT_INTERNAL_PCLK, sgi_gbe_data::ctrlstat, dev_fb_init(), dev_sgi_gbe_access(), DEV_SGI_GBE_LENGTH, DM_DEFAULT, FAKE_GBE_FB_ADDRESS, sgi_gbe_data::fb_data, GBE_DEFAULT_BITDEPTH, GBE_DEFAULT_XRES, GBE_DEFAULT_YRES, machine_add_tickfunction(), memory_device_register(), sgi_gbe_data::palette, VFB_GENERIC, sgi_gbe_data::xres, sgi_gbe_data::y_intr01, sgi_gbe_data::y_intr23, and sgi_gbe_data::yres.
Referenced by MACHINE_SETUP().
int dev_sgi_ip20_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_sgi_ip20_init().
struct sgi_ip20_data* dev_sgi_ip20_init | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | baseaddr | ||
) |
Definition at line 95 of file dev_sgi_ip20.cc.
References CHECK_ALLOCATION, dev_sgi_ip20_access(), DEV_SGI_IP20_LENGTH, DM_DEFAULT, and memory_device_register().
int dev_sgi_ip22_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_sgi_ip22_init().
struct sgi_ip22_data* dev_sgi_ip22_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
int | guiness_flag | ||
) |
Definition at line 409 of file dev_sgi_ip22.cc.
References CHECK_ALLOCATION, dev_sgi_ip22_access(), DEV_SGI_IP22_IMC_LENGTH, DEV_SGI_IP22_LENGTH, DEV_SGI_IP22_UNKNOWN2_LENGTH, DM_DEFAULT, sgi_ip22_data::guiness_flag, IP22_IMC_BASE, IP22_UNKNOWN2_BASE, machine_add_tickfunction(), memory_device_register(), and SGI_IP22_TICK_SHIFT.
int dev_sgi_mec_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
void dev_sgi_mec_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
char * | irq_path, | ||
unsigned char * | macaddr | ||
) |
Definition at line 667 of file dev_sgi_mec.cc.
References CHECK_ALLOCATION, INTERRUPT_CONNECT, sgi_mec_data::irq, and sgi_mec_data::macaddr.
Referenced by MACHINE_SETUP().
void dev_sgi_mte_init | ( | struct memory * | mem, |
uint64_t | baseaddr, | ||
struct sgi_re_data * | |||
) |
Definition at line 1275 of file dev_sgi_re.cc.
References DEV_SGI_MTE_LENGTH, DM_DEFAULT, and memory_device_register().
Referenced by dev_sgi_re_init().
int dev_sgi_re_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_sgi_re_init().
Definition at line 380 of file dev_sgi_re.cc.
References CHECK_ALLOCATION, dev_sgi_de_init(), dev_sgi_de_status_init(), dev_sgi_mte_init(), dev_sgi_re_access(), DEV_SGI_RE_LENGTH, DM_DEFAULT, and memory_device_register().
Referenced by MACHINE_SETUP().
int dev_sgi_ust_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_sgi_ust_init().
void dev_sgi_ust_init | ( | struct memory * | mem, |
uint64_t | baseaddr | ||
) |
Definition at line 864 of file dev_sgi_ip32.cc.
References CHECK_ALLOCATION, dev_sgi_ust_access(), DEV_SGI_UST_LENGTH, DM_DEFAULT, and memory_device_register().
Referenced by MACHINE_SETUP().
int dev_sii_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_sii_init().
void dev_sii_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
uint64_t | buf_start, | ||
uint64_t | buf_end, | ||
char * | irq_path | ||
) |
Definition at line 440 of file dev_sii.cc.
References sii_data::buf_end, sii_data::buf_start, CHECK_ALLOCATION, dev_sii_access(), DEV_SII_LENGTH, dev_sii_tick(), DM_DEFAULT, INTERRUPT_CONNECT, sii_data::irq, machine_add_tickfunction(), memory_device_register(), sii_data::regs, SII_TICK_SHIFT, and sii_data::siiregs.
Referenced by MACHINE_SETUP().
void dev_sii_tick | ( | struct cpu * | cpu, |
void * | |||
) |
Referenced by dev_sii_init(), and DEVICE_ACCESS().
int dev_ssc_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_ssc_init().
void dev_ssc_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | baseaddr, | ||
const char * | irq_path, | ||
int | use_fb | ||
) |
Definition at line 225 of file dev_ssc.cc.
References CHECK_ALLOCATION, ssc_data::console_handle, console_start_slave(), dev_ssc_access(), DEV_SSC_LENGTH, DM_DEFAULT, INTERRUPT_CONNECT, ssc_data::irq, machine_add_tickfunction(), memory_device_register(), SSC_TICK_SHIFT, and ssc_data::use_fb.
Referenced by MACHINE_SETUP().
int dev_turbochannel_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_turbochannel_init().
void dev_turbochannel_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
int | slot_nr, | ||
uint64_t | baseaddr, | ||
uint64_t | endaddr, | ||
const char * | device_name, | ||
const char * | irq_path | ||
) |
Definition at line 174 of file dev_turbochannel.cc.
References turbochannel_data::baseaddr, BT459_BA, BT459_BBA, CARD_FIRMWARE_BUFLEN, turbochannel_data::card_firmware_type, turbochannel_data::card_firmware_version, turbochannel_data::card_module_name, CARD_NAME_BUFLEN, turbochannel_data::card_vendor_name, CHECK_ALLOCATION, DEV_ASC_DEC, dev_asc_init(), dev_bt431_init(), dev_bt455_init(), dev_bt459_init(), dev_fb_init(), dev_le_init(), DEV_LE_LENGTH, dev_pmagja_init(), dev_px_init(), DEV_PX_TYPE_PX, DEV_PX_TYPE_PXG, DEV_PX_TYPE_PXGPLUSTURBO, dev_sfb_init(), dev_turbochannel_access(), DEV_TURBOCHANNEL_LEN, DEVICE_MAX_NAMELEN, turbochannel_data::device_name, DM_DEFAULT, turbochannel_data::endaddr, fatal(), memory_device_register(), turbochannel_data::rom_skip, SFB_ASIC_OFFSET, SFB_CLEAR, SFB_OFFSET_BT459, SFB_OFFSET_VRAM, turbochannel_data::slot_nr, strlen(), VFB_CFB_BT459, VFB_DEC_MAXINE, VFB_GENERIC, VFB_MFB_BT431, VFB_MFB_BT455, and VFB_MFB_VRAM.
Referenced by MACHINE_SETUP().
struct pci_data* dev_uninorth_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | addr, | ||
int | irqbase, | ||
int | pciirq | ||
) |
Definition at line 111 of file dev_uninorth.cc.
References addr, bus_pci_add(), bus_pci_init(), CHECK_ALLOCATION, DM_DEFAULT, memory_device_register(), uninorth_data::pci_data, and uninorth_data::pciirq.
Referenced by MACHINE_SETUP().
int dev_vdac_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_vdac_init().
void dev_vdac_init | ( | struct memory * | mem, |
uint64_t | baseaddr, | ||
unsigned char * | rgb_palette, | ||
int | color_fb_flag | ||
) |
Definition at line 233 of file dev_kn01.cc.
References CHECK_ALLOCATION, vdac_data::color_fb_flag, dev_vdac_access(), DEV_VDAC_LENGTH, DM_DEFAULT, memory_device_register(), and vdac_data::rgb_palette.
Referenced by MACHINE_SETUP().
int dev_vga_access | ( | struct cpu * | cpu, |
struct memory * | mem, | ||
uint64_t | relative_addr, | ||
unsigned char * | data, | ||
size_t | len, | ||
int | writeflag, | ||
void * | |||
) |
Referenced by dev_vga_init().
void dev_vga_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
uint64_t | videomem_base, | ||
uint64_t | control_base, | ||
const char * | name | ||
) |
Definition at line 1187 of file dev_vga.cc.
References machine::arch_pagesize, vga_data::charcells, vga_data::charcells_drawn, vga_data::charcells_outputed, vga_data::charcells_size, CHECK_ALLOCATION, vga_data::console_handle, CONSOLE_OUTPUT_ONLY, console_start_slave(), vga_data::control_base, vga_data::crtc_reg, vga_data::cur_mode, dev_fb_init(), dev_vga_access(), DM_DEFAULT, DM_DYNTRANS_OK, DM_DYNTRANS_WRITE_OK, DM_READS_HAVE_NO_SIDE_EFFECTS, vga_data::fb, vga_data::fb_max_x, vga_data::fb_max_y, vga_data::fb_size, vga_data::font, font8x16, vga_data::font_height, vga_data::font_width, GFX_ADDR_WINDOW, vga_data::gfx_mem, vga_data::gfx_mem_size, vga_data::max_x, vga_data::max_y, memory_device_register(), MODE_CHARCELL, vga_data::pixel_repx, vga_data::pixel_repy, x11_md::scaleup, VFB_GENERIC, VGA_FB_ADDR, vga_data::videomem_base, and machine::x11_md.
Referenced by bus_isa_init(), MACHINE_SETUP(), and PCIINIT().
struct vr41xx_data* dev_vr41xx_init | ( | struct machine * | machine, |
struct memory * | mem, | ||
int | cpumodel | ||
) |
Definition at line 673 of file dev_vr41xx.cc.
References machine::bootstrap_cpu, CHECK_ALLOCATION, console_start_slave_inputonly(), vr41xx_data::cpu_irq, vr41xx_data::cpumodel, dev_ram_init(), DEV_RAM_MIRROR, DEV_VR41XX_LENGTH, DEV_VR41XX_TICKSHIFT, device_add(), DM_DEFAULT, interrupt::extra, vr41xx_data::giu_irq, x11_md::in_use, interrupt::interrupt_assert, INTERRUPT_CONNECT, interrupt::interrupt_deassert, interrupt_handler_register(), vr41xx_data::kiu_console_handle, vr41xx_data::kiu_irq, vr41xx_data::kiu_offset, interrupt::line, machine_add_tickfunction(), machine::main_console_handle, memory_device_register(), interrupt::name, machine::path, vr41xx_data::timer_irq, vr41xx_giu_interrupt_assert(), vr41xx_giu_interrupt_deassert(), vr41xx_vrip_interrupt_assert(), vr41xx_vrip_interrupt_deassert(), VRIP_INTR_ETIMER, VRIP_INTR_GIU, VRIP_INTR_KIU, VRIP_INTR_SIU, and machine::x11_md.
Referenced by MACHINE_SETUP().
void framebuffer_blockcopyfill | ( | struct vfb_data * | d, |
int | fillflag, | ||
int | fill_r, | ||
int | fill_g, | ||
int | fill_b, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | from_x, | ||
int | from_y | ||
) |
Definition at line 234 of file dev_fb.cc.
References vfb_data::bit_depth, ether_data::buf, vfb_data::bytes_per_line, debug, fatal(), vfb_data::framebuffer, vfb_data::update_x1, vfb_data::update_x2, vfb_data::update_y1, vfb_data::update_y2, and vfb_data::xsize.
Referenced by DEVICE_ACCESS().
void lk201_init | ( | struct lk201_data * | d, |
int | use_fb, | ||
void(*)(void *, int, int) | add_to_rx_queue, | ||
int | console_handle, | ||
void * | |||
) |
Definition at line 398 of file lk201.cc.
References lk201_data::add_data, add_to_rx_queue(), lk201_data::add_to_rx_queue, lk201_data::console_handle, DCKBD_PORT, lk201_data::mouse_mode, lk201_data::mouse_revision, and lk201_data::use_fb.
Referenced by dev_dc7085_init(), and dev_scc_init().
void lk201_tick | ( | struct machine * | , |
struct lk201_data * | |||
) |
Definition at line 235 of file lk201.cc.
References lk201_data::add_data, lk201_data::add_to_rx_queue, console_charavail(), console_getmouse(), lk201_data::console_handle, console_readchar(), DCCOMM_PORT, DCKBD_PORT, DCPRINTER_PORT, lk201_convert_ascii_to_keybcode(), MACHINE_DEC_3MAX_5000, MACHINE_DEC_MIPSMATE_5100, MACHINE_DEC_PMAX_3100, MACHINE_PMAX, machine::machine_subtype, machine::machine_type, and lk201_data::use_fb.
Referenced by DEVICE_TICK().
void lk201_tx_data | ( | struct lk201_data * | , |
int | port, | ||
int | idata | ||
) |
Definition at line 288 of file lk201.cc.
References lk201_data::add_data, lk201_data::add_to_rx_queue, lk201_data::console_handle, console_putchar(), DCCOMM_PORT, DCKBD_PORT, DCMOUSE_PORT, DCPRINTER_PORT, debug, LED_1, LED_2, LED_3, LED_4, LED_ALL, LK_BELL_ENABLE, LK_DEFAULTS, LK_KBD_ENABLE, LK_LED_DISABLE, LK_LED_ENABLE, LK_RING_BELL, MOUSE_INCREMENTAL, lk201_data::mouse_mode, lk201_data::mouse_revision, MOUSE_SELF_TEST, and lk201_data::use_fb.
Referenced by dev_scc_dma_func(), and DEVICE_ACCESS().
void set_grayscale_palette | ( | struct vfb_data * | d, |
int | ncolors | ||
) |
Definition at line 74 of file dev_fb.cc.
References vfb_data::rgb_palette.
Referenced by dev_fb_init().