/[gxemul]/trunk/src/devices/dev_au1x00.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_au1x00.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 19 by dpavlin, Mon Oct 8 16:19:11 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_au1x00.c,v 1.13 2005/10/26 14:37:03 debug Exp $   *  $Id: dev_au1x00.c,v 1.14 2005/11/13 00:14:08 debug Exp $
29   *     *  
30   *  Au1x00 (eg Au1500) pseudo device. See aureg.h for bitfield details.   *  Au1x00 (eg Au1500) pseudo device. See aureg.h for bitfield details.
31   *   *
# Line 349  struct au1x00_ic_data *dev_au1x00_init(s Line 349  struct au1x00_ic_data *dev_au1x00_init(s
349          d_pc->irq_nr = 14;          d_pc->irq_nr = 14;
350    
351          memory_device_register(mem, "au1x00_ic0",          memory_device_register(mem, "au1x00_ic0",
352              IC0_BASE, 0x100, dev_au1x00_ic_access, d_ic0, MEM_DEFAULT, NULL);              IC0_BASE, 0x100, dev_au1x00_ic_access, d_ic0, DM_DEFAULT, NULL);
353          memory_device_register(mem, "au1x00_ic1",          memory_device_register(mem, "au1x00_ic1",
354              IC1_BASE, 0x100, dev_au1x00_ic_access, d_ic1, MEM_DEFAULT, NULL);              IC1_BASE, 0x100, dev_au1x00_ic_access, d_ic1, DM_DEFAULT, NULL);
355    
356          memory_device_register(mem, "au1x00_uart0", UART0_BASE, UART_SIZE,          memory_device_register(mem, "au1x00_uart0", UART0_BASE, UART_SIZE,
357              dev_au1x00_uart_access, d0, MEM_DEFAULT, NULL);              dev_au1x00_uart_access, d0, DM_DEFAULT, NULL);
358          memory_device_register(mem, "au1x00_uart1", UART1_BASE, UART_SIZE,          memory_device_register(mem, "au1x00_uart1", UART1_BASE, UART_SIZE,
359              dev_au1x00_uart_access, d1, MEM_DEFAULT, NULL);              dev_au1x00_uart_access, d1, DM_DEFAULT, NULL);
360          memory_device_register(mem, "au1x00_uart2", UART2_BASE, UART_SIZE,          memory_device_register(mem, "au1x00_uart2", UART2_BASE, UART_SIZE,
361              dev_au1x00_uart_access, d2, MEM_DEFAULT, NULL);              dev_au1x00_uart_access, d2, DM_DEFAULT, NULL);
362          memory_device_register(mem, "au1x00_uart3", UART3_BASE, UART_SIZE,          memory_device_register(mem, "au1x00_uart3", UART3_BASE, UART_SIZE,
363              dev_au1x00_uart_access, d3, MEM_DEFAULT, NULL);              dev_au1x00_uart_access, d3, DM_DEFAULT, NULL);
364    
365          memory_device_register(mem, "au1x00_pc", PC_BASE, PC_SIZE + 0x8,          memory_device_register(mem, "au1x00_pc", PC_BASE, PC_SIZE + 0x8,
366              dev_au1x00_pc_access, d_pc, MEM_DEFAULT, NULL);              dev_au1x00_pc_access, d_pc, DM_DEFAULT, NULL);
367          machine_add_tickfunction(machine, dev_au1x00_pc_tick, d_pc, 15);          machine_add_tickfunction(machine, dev_au1x00_pc_tick, d_pc, 15);
368    
369          return d_ic0;          return d_ic0;

Legend:
Removed from v.19  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26