/[gxemul]/trunk/src/devices/dev_bt431.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_bt431.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_bt431.c,v 1.8 2005/02/22 12:15:29 debug Exp $   *  $Id: dev_bt431.c,v 1.10 2005/11/13 00:14:08 debug Exp $
29   *     *  
30   *  Brooktree 431, used by TURBOchannel graphics cards.   *  Brooktree 431, used by TURBOchannel graphics cards.
31   *   *
# Line 74  int dev_bt431_access(struct cpu *cpu, st Line 74  int dev_bt431_access(struct cpu *cpu, st
74          int on, new_cursor_x, new_cursor_y;          int on, new_cursor_x, new_cursor_y;
75  #endif  #endif
76    
77            if (writeflag == MEM_WRITE)
78          idata = memory_readmax64(cpu, data, len);                  idata = memory_readmax64(cpu, data, len);
79    
80          btaddr = ((d->cur_addr_hi << 8) + d->cur_addr_lo) % DEV_BT431_NREGS;          btaddr = ((d->cur_addr_hi << 8) + d->cur_addr_lo) % DEV_BT431_NREGS;
81    
# Line 216  void dev_bt431_init(struct memory *mem, Line 216  void dev_bt431_init(struct memory *mem,
216          d->cursor_xsize = d->cursor_ysize = 8;  /*  anything  */          d->cursor_xsize = d->cursor_ysize = 8;  /*  anything  */
217    
218          memory_device_register(mem, "bt431", baseaddr, DEV_BT431_LENGTH,          memory_device_register(mem, "bt431", baseaddr, DEV_BT431_LENGTH,
219              dev_bt431_access, (void *)d, MEM_DEFAULT, NULL);              dev_bt431_access, (void *)d, DM_DEFAULT, NULL);
220  }  }
221    

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

  ViewVC Help
Powered by ViewVC 1.1.26