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

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

revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.   *  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.
3   *   *
4   *  Redistribution and use in source and binary forms, with or without   *  Redistribution and use in source and binary forms, with or without
5   *  modification, are permitted provided that the following conditions are met:   *  modification, are permitted provided that the following conditions are met:
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_scc.c,v 1.29 2005/11/13 00:14:09 debug Exp $   *  $Id: dev_scc.c,v 1.32 2006/01/01 13:17:17 debug Exp $
29   *     *  
30   *  Serial controller on some DECsystems and SGI machines. (Z8530 ?)   *  Serial controller on some DECsystems and SGI machines. (Z8530 ?)
31   *  Most of the code in here is written for DECsystem emulation, though.   *  Most of the code in here is written for DECsystem emulation, though.
# Line 40  Line 40 
40   *              emulate the same lk201 behaviour as when using the dc device)   *              emulate the same lk201 behaviour as when using the dc device)
41   *      DMA   *      DMA
42   *      More correct interrupt support.   *      More correct interrupt support.
43     *
44     ******************************************************************************
45     *       _____ ___  ____   ___  _
46     *      |_   _/ _ \|  _ \ / _ \| |
47     *        | || | | | | | | | | | |
48     *        | || |_| | |_| | |_| |_|
49     *        |_| \___/|____/ \___/(_)
50     *
51     *      Since this is actually a Z8530, it should be merged with dev_z8530.c!
52   */   */
53    
54  #include <stdio.h>  #include <stdio.h>
# Line 292  int dev_scc_dma_func(struct cpu *cpu, vo Line 301  int dev_scc_dma_func(struct cpu *cpu, vo
301  /*  /*
302   *  dev_scc_access():   *  dev_scc_access():
303   */   */
304  int dev_scc_access(struct cpu *cpu, struct memory *mem,  DEVICE_ACCESS(scc)
         uint64_t relative_addr, unsigned char *data, size_t len,  
         int writeflag, void *extra)  
305  {  {
306          struct scc_data *d = (struct scc_data *) extra;          struct scc_data *d = (struct scc_data *) extra;
307          uint64_t idata = 0, odata = 0;          uint64_t idata = 0, odata = 0;
# Line 469  void *dev_scc_init(struct machine *machi Line 476  void *dev_scc_init(struct machine *machi
476          d->scc_nr  = scc_nr;          d->scc_nr  = scc_nr;
477          d->use_fb  = use_fb;          d->use_fb  = use_fb;
478          d->addrmul = addrmul;          d->addrmul = addrmul;
479          d->console_handle = console_start_slave(machine, "SCC");          d->console_handle = console_start_slave(machine, "SCC", 1);
480    
481          lk201_init(&d->lk201, use_fb, dev_scc_add_to_rx_queue,          lk201_init(&d->lk201, use_fb, dev_scc_add_to_rx_queue,
482              d->console_handle, d);              d->console_handle, d);

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

  ViewVC Help
Powered by ViewVC 1.1.26