/[gxemul]/trunk/src/devices/dev_bt459.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_bt459.c

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

revision 4 by dpavlin, Mon Oct 8 16:18:00 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_bt459.c,v 1.59 2005/02/22 12:15:29 debug Exp $   *  $Id: dev_bt459.c,v 1.61 2005/11/13 00:14:08 debug Exp $
29   *     *  
30   *  Brooktree 459 vdac, used by TURBOchannel graphics cards.   *  Brooktree 459 vdac, used by TURBOchannel graphics cards.
31   */   */
# Line 357  int dev_bt459_irq_access(struct cpu *cpu Line 357  int dev_bt459_irq_access(struct cpu *cpu
357          struct bt459_data *d = (struct bt459_data *) extra;          struct bt459_data *d = (struct bt459_data *) extra;
358          uint64_t idata = 0, odata = 0;          uint64_t idata = 0, odata = 0;
359    
360          idata = memory_readmax64(cpu, data, len);          if (writeflag == MEM_WRITE)
361                    idata = memory_readmax64(cpu, data, len);
362    
363  #ifdef BT459_DEBUG  #ifdef BT459_DEBUG
364          fatal("[ bt459: IRQ ack ]\n");          fatal("[ bt459: IRQ ack ]\n");
# Line 648  void dev_bt459_init(struct machine *mach Line 649  void dev_bt459_init(struct machine *mach
649          d->interrupt_time_reset_value = 500;          d->interrupt_time_reset_value = 500;
650    
651          memory_device_register(mem, "bt459", baseaddr, DEV_BT459_LENGTH,          memory_device_register(mem, "bt459", baseaddr, DEV_BT459_LENGTH,
652              dev_bt459_access, (void *)d, MEM_DEFAULT, NULL);              dev_bt459_access, (void *)d, DM_DEFAULT, NULL);
653    
654          if (baseaddr_irq != 0)          if (baseaddr_irq != 0)
655                  memory_device_register(mem, "bt459_irq", baseaddr_irq, 0x10000,                  memory_device_register(mem, "bt459_irq", baseaddr_irq, 0x10000,
656                      dev_bt459_irq_access, (void *)d, MEM_DEFAULT, NULL);                      dev_bt459_irq_access, (void *)d, DM_DEFAULT, NULL);
657    
658          machine_add_tickfunction(machine, dev_bt459_tick, d, BT459_TICK_SHIFT);          machine_add_tickfunction(machine, dev_bt459_tick, d, BT459_TICK_SHIFT);
659    

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

  ViewVC Help
Powered by ViewVC 1.1.26