/[gxemul]/trunk/src/include/devices.h
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/include/devices.h

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

revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC
# Line 2  Line 2 
2  #define DEVICES_H  #define DEVICES_H
3    
4  /*  /*
5   *  Copyright (C) 2003-2005  Anders Gavare.  All rights reserved.   *  Copyright (C) 2003-2006  Anders Gavare.  All rights reserved.
6   *   *
7   *  Redistribution and use in source and binary forms, with or without   *  Redistribution and use in source and binary forms, with or without
8   *  modification, are permitted provided that the following conditions are met:   *  modification, are permitted provided that the following conditions are met:
# Line 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: devices.h,v 1.207 2006/02/18 17:55:25 debug Exp $   *  $Id: devices.h,v 1.212 2006/06/16 18:31:26 debug Exp $
32   *   *
33   *  Memory mapped devices.   *  Memory mapped devices.
34   *   *
# Line 148  void dev_bt459_init(struct machine *mach Line 148  void dev_bt459_init(struct machine *mach
148          int color_fb_flag, int irq_nr, int type);          int color_fb_flag, int irq_nr, int type);
149    
150  /*  dev_cons.c:  */  /*  dev_cons.c:  */
 #define DEV_CONS_ADDRESS                0x0000000010000000  
 #define DEV_CONS_LENGTH                 0x0000000000000020  
 #define     DEV_CONS_PUTGETCHAR             0x0000  
 #define     DEV_CONS_HALT                   0x0010  
151  struct cons_data {  struct cons_data {
152          int     console_handle;          int     console_handle;
153          int     irq_nr;          int     irq_nr;
# Line 201  void dev_deccca_init(struct memory *mem, Line 197  void dev_deccca_init(struct memory *mem,
197  int dev_decxmi_access(struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *);  int dev_decxmi_access(struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *);
198  void dev_decxmi_init(struct memory *mem, uint64_t baseaddr);  void dev_decxmi_init(struct memory *mem, uint64_t baseaddr);
199    
 /*  dev_disk.c:  */  
 #define DEV_DISK_ADDRESS                0x13000000  
   
200  /*  dev_eagle.c:  */  /*  dev_eagle.c:  */
201  struct pci_data *dev_eagle_init(struct machine *machine, struct memory *mem,  struct pci_data *dev_eagle_init(struct machine *machine, struct memory *mem,
202          int irqbase, int pciirq);          int irqbase, int pciirq);
203    
 /*  dev_ether.c:  */  
 #define DEV_ETHER_ADDRESS               0x14000000  
 #define DEV_ETHER_LENGTH                0x8000  
   
204  /*  dev_fb.c:  */  /*  dev_fb.c:  */
 #define DEV_FB_ADDRESS          0x12000000      /*  Default for testmips  */  
205  #define DEV_FB_LENGTH           0x3c0000        /*  3c0000 to not colide with */  #define DEV_FB_LENGTH           0x3c0000        /*  3c0000 to not colide with */
206                                                  /*  turbochannel rom,         */                                                  /*  turbochannel rom,         */
207                                                  /*  otherwise size = 4MB      */                                                  /*  otherwise size = 4MB      */
# Line 235  struct vfb_data { Line 223  struct vfb_data {
223          int             ysize;          int             ysize;
224          int             bit_depth;          int             bit_depth;
225          int             color32k;       /*  hack for 16-bit HPCmips  */          int             color32k;       /*  hack for 16-bit HPCmips  */
226          int             psp_15bit;      /*  plastation portable hack  */          int             psp_15bit;      /*  playstation portable hack  */
227    
228          unsigned char   color_plane_mask;          unsigned char   color_plane_mask;
229    
# Line 382  void dev_vdac_init(struct memory *mem, u Line 370  void dev_vdac_init(struct memory *mem, u
370  /*  dev_kn02.c:  */  /*  dev_kn02.c:  */
371  struct kn02_csr {  struct kn02_csr {
372          uint8_t         csr[sizeof(uint32_t)];          uint8_t         csr[sizeof(uint32_t)];
373          uint8_t         filler[4096 - sizeof(uint32_t)];  /*  for bintrans mapping  */          uint8_t         filler[4096 - sizeof(uint32_t)];  /*  for dyntrans mapping  */
374  };  };
375  int dev_kn02_access(struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *);  int dev_kn02_access(struct cpu *cpu, struct memory *mem, uint64_t relative_addr, unsigned char *data, size_t len, int writeflag, void *);
376  struct kn02_csr *dev_kn02_init(struct cpu *cpu, struct memory *mem,  struct kn02_csr *dev_kn02_init(struct cpu *cpu, struct memory *mem,

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

  ViewVC Help
Powered by ViewVC 1.1.26