/[gxemul]/trunk/src/devices/dev_sgi_mardigras.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_sgi_mardigras.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 18 by dpavlin, Mon Oct 8 16:19:11 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_sgi_mardigras.c,v 1.17 2005/02/26 11:56:42 debug Exp $   *  $Id: dev_sgi_mardigras.c,v 1.19 2005/10/26 14:37:04 debug Exp $
29   *     *  
30   *  "MardiGras" graphics controller on SGI IP30 (Octane).   *  "MardiGras" graphics controller on SGI IP30 (Octane).
31   *   *
# Line 220  int dev_sgi_mardigras_access(struct cpu Line 220  int dev_sgi_mardigras_access(struct cpu
220          struct sgi_mardigras_data *d = extra;          struct sgi_mardigras_data *d = extra;
221          int i;          int i;
222    
223          idata = memory_readmax64(cpu, data, len);          if (writeflag == MEM_WRITE)
224                    idata = memory_readmax64(cpu, data, len);
225    
226          /*  Accessing the microcode_ram works like ordinary ram:  */          /*  Accessing the microcode_ram works like ordinary ram:  */
227          if (relative_addr >= MICROCODE_START &&          if (relative_addr >= MICROCODE_START &&
# Line 311  int devinit_sgi_mardigras(struct devinit Line 312  int devinit_sgi_mardigras(struct devinit
312          d->fb = dev_fb_init(devinit->machine, devinit->machine->memory,          d->fb = dev_fb_init(devinit->machine, devinit->machine->memory,
313              MARDIGRAS_FAKE_OFFSET, VFB_GENERIC,              MARDIGRAS_FAKE_OFFSET, VFB_GENERIC,
314              mardigras_xsize, mardigras_ysize,              mardigras_xsize, mardigras_ysize,
315              mardigras_xsize, mardigras_ysize, 24, "SGI MardiGras", 1);              mardigras_xsize, mardigras_ysize, 24, "SGI MardiGras");
316          if (d->fb == NULL) {          if (d->fb == NULL) {
317                  fprintf(stderr, "dev_sgi_mardigras_init(): out of memory\n");                  fprintf(stderr, "dev_sgi_mardigras_init(): out of memory\n");
318                  exit(1);                  exit(1);

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

  ViewVC Help
Powered by ViewVC 1.1.26