/[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 28 by dpavlin, Mon Oct 8 16:20:26 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.213 2006/07/08 12:30:03 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 227  struct pci_data *dev_eagle_init(struct m Line 215  struct pci_data *dev_eagle_init(struct m
215  /*  Extra flags:  */  /*  Extra flags:  */
216  #define VFB_REVERSE_START       0x10000  #define VFB_REVERSE_START       0x10000
217  struct vfb_data {  struct vfb_data {
218            struct memory   *memory;
219          int             vfb_type;          int             vfb_type;
220    
221          int             vfb_scaledown;          int             vfb_scaledown;
# Line 235  struct vfb_data { Line 224  struct vfb_data {
224          int             ysize;          int             ysize;
225          int             bit_depth;          int             bit_depth;
226          int             color32k;       /*  hack for 16-bit HPCmips  */          int             color32k;       /*  hack for 16-bit HPCmips  */
227          int             psp_15bit;      /*  plastation portable hack  */          int             psp_15bit;      /*  playstation portable hack  */
228    
229          unsigned char   color_plane_mask;          unsigned char   color_plane_mask;
230    
# Line 252  struct vfb_data { Line 241  struct vfb_data {
241          /*  RGB palette for <= 8 bit modes:  (r,g,b bytes for each)  */          /*  RGB palette for <= 8 bit modes:  (r,g,b bytes for each)  */
242          unsigned char   rgb_palette[256 * 3];          unsigned char   rgb_palette[256 * 3];
243    
244            char            *name;
245            char            title[100];
246    
247          void (*redraw_func)(struct vfb_data *, int, int);          void (*redraw_func)(struct vfb_data *, int, int);
248    
249          /*  These should always be in sync:  */          /*  These should always be in sync:  */
# Line 382  void dev_vdac_init(struct memory *mem, u Line 374  void dev_vdac_init(struct memory *mem, u
374  /*  dev_kn02.c:  */  /*  dev_kn02.c:  */
375  struct kn02_csr {  struct kn02_csr {
376          uint8_t         csr[sizeof(uint32_t)];          uint8_t         csr[sizeof(uint32_t)];
377          uint8_t         filler[4096 - sizeof(uint32_t)];  /*  for bintrans mapping  */          uint8_t         filler[4096 - sizeof(uint32_t)];  /*  for dyntrans mapping  */
378  };  };
379  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 *);
380  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.28

  ViewVC Help
Powered by ViewVC 1.1.26