/[gxemul]/trunk/src/devices/dev_8259.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_8259.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 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *  Copyright (C) 2005  Anders Gavare.  All rights reserved.   *  Copyright (C) 2005-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_8259.c,v 1.22 2005/11/23 18:16:42 debug Exp $   *  $Id: dev_8259.c,v 1.25 2006/07/21 16:55:41 debug Exp $
29   *     *  
30   *  8259 Programmable Interrupt Controller.   *  8259 Programmable Interrupt Controller.
31   *   *
# Line 51  Line 51 
51  /*  #define DEV_8259_DEBUG  */  /*  #define DEV_8259_DEBUG  */
52    
53    
54  /*  DEVICE_ACCESS(8259)
  *  dev_8259_access():  
  */  
 int dev_8259_access(struct cpu *cpu, struct memory *mem,  
         uint64_t relative_addr, unsigned char *data, size_t len,  
         int writeflag, void *extra)  
55  {  {
56          struct pic8259_data *d = (struct pic8259_data *) extra;          struct pic8259_data *d = (struct pic8259_data *) extra;
57          uint64_t idata = 0, odata = 0;          uint64_t idata = 0, odata = 0;
# Line 251  int dev_8259_access(struct cpu *cpu, str Line 246  int dev_8259_access(struct cpu *cpu, str
246   *          which the PIC is connected. (That is left to machine specific   *          which the PIC is connected. (That is left to machine specific
247   *          code in src/machine.c.)   *          code in src/machine.c.)
248   */   */
249  int devinit_8259(struct devinit *devinit)  DEVINIT(8259)
250  {  {
251          struct pic8259_data *d = malloc(sizeof(struct pic8259_data));          struct pic8259_data *d = malloc(sizeof(struct pic8259_data));
252          char *name2;          char *name2;

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

  ViewVC Help
Powered by ViewVC 1.1.26