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

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

revision 18 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_rd94.c,v 1.25 2005/10/26 14:37:04 debug Exp $   *  $Id: dev_rd94.c,v 1.29 2005/11/21 09:17:27 debug Exp $
29   *     *  
30   *  Used by NEC-RD94, -R94, and -R96.   *  Used by NEC-RD94, -R94, and -R96.
31   */   */
# Line 177  int dev_rd94_access(struct cpu *cpu, str Line 177  int dev_rd94_access(struct cpu *cpu, str
177                  if (writeflag == MEM_WRITE) {                  if (writeflag == MEM_WRITE) {
178                          bus_pci_access(cpu, mem, relative_addr ==                          bus_pci_access(cpu, mem, relative_addr ==
179                              RD94_SYS_PCI_CONFADDR? BUS_PCI_ADDR : BUS_PCI_DATA,                              RD94_SYS_PCI_CONFADDR? BUS_PCI_ADDR : BUS_PCI_DATA,
180                              &idata, writeflag, d->pci_data);                              &idata, len, writeflag, d->pci_data);
181                  } else {                  } else {
182                          bus_pci_access(cpu, mem, relative_addr ==                          bus_pci_access(cpu, mem, relative_addr ==
183                              RD94_SYS_PCI_CONFADDR? BUS_PCI_ADDR : BUS_PCI_DATA,                              RD94_SYS_PCI_CONFADDR? BUS_PCI_ADDR : BUS_PCI_DATA,
184                              &odata, writeflag, d->pci_data);                              &odata, len, writeflag, d->pci_data);
                         /*  odata = 0;  */  
185                  }                  }
186                  break;                  break;
187          default:          default:
# Line 214  int devinit_rd94(struct devinit *devinit Line 213  int devinit_rd94(struct devinit *devinit
213          }          }
214          memset(d, 0, sizeof(struct rd94_data));          memset(d, 0, sizeof(struct rd94_data));
215          d->pciirq   = devinit->irq_nr;          d->pciirq   = devinit->irq_nr;
216          d->pci_data = bus_pci_init(d->pciirq);          d->pci_data = bus_pci_init(d->pciirq, 0,0, 0,0,0, 0,0,0);
217    
218          memory_device_register(devinit->machine->memory, devinit->name,          memory_device_register(devinit->machine->memory, devinit->name,
219              devinit->addr, DEV_RD94_LENGTH,              devinit->addr, DEV_RD94_LENGTH,
220              dev_rd94_access, (void *)d, MEM_DEFAULT, NULL);              dev_rd94_access, (void *)d, DM_DEFAULT, NULL);
221    
222          machine_add_tickfunction(devinit->machine, dev_rd94_tick,          machine_add_tickfunction(devinit->machine, dev_rd94_tick,
223              d, RD94_TICK_SHIFT);              d, RD94_TICK_SHIFT);

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

  ViewVC Help
Powered by ViewVC 1.1.26