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

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

trunk/src/include/pmppc.h revision 4 by dpavlin, Mon Oct 8 16:18:00 2007 UTC trunk/src/include/sandpoint.h revision 52 by dpavlin, Thu Oct 11 12:41:35 2007 UTC
# Line 1  Line 1 
1  /*  gxemul: $Id: pmppc.h,v 1.2 2005/03/05 12:34:03 debug Exp $  */  /*  gxemul: $Id: sandpoint.h,v 1.2 2005/03/05 12:34:03 debug Exp $  */
2  /*      $NetBSD: pmppc.h,v 1.2 2002/07/05 18:45:20 matt Exp $   */  /*      $NetBSD: sandpoint.h,v 1.2 2002/07/05 18:45:20 matt Exp $       */
3    
4  #ifndef PMPPC_H  #ifndef SANDPOINT_H
5  #define PMPPC_H  #define SANDPOINT_H
6    
7  /*  /*
8   * Copyright (c) 2002 The NetBSD Foundation, Inc.   * Copyright (c) 2002 The NetBSD Foundation, Inc.
# Line 41  Line 41 
41   */   */
42    
43  /* SDRAM */  /* SDRAM */
44  #define PMPPC_SDRAM_BASE        0x00000000  #define SANDPOINT_SDRAM_BASE    0x00000000
45    
46  /* Flash */  /* Flash */
47  #define PMPPC_FLASH_BASE        0x70000000  #define SANDPOINT_FLASH_BASE    0xffc00000
48    
49  #define PMPPC_IO_START          0x7fe00000  #if 0
50    #define SANDPOINT_IO_START      0xfc000000
51    
52  /* CS8900A ethernet */  /* CS8900A ethernet */
53  #define PMPPC_CS_IO_BASE        0x7fe00000  #define SANDPOINT_CS_IO_BASE    0x7fe00000
54  #define PMPPC_CS_IO             0x7fe00c00  #define SANDPOINT_CS_IO         0x7fe00c00
55  #define PMPPC_CS_MEM            0x7fe04000  #define SANDPOINT_CS_MEM        0x7fe04000
56    
57  /* time-of-day clock */  /* time-of-day clock */
58  #define PMPPC_RTC               0x7ff00000  #define SANDPOINT_RTC           0x7ff00000
59  #define PMPPC_RTC_SIZE          0x00002000  #define SANDPOINT_RTC_SIZE      0x00002000
60    #endif
61    
62  /* board config regs */  /* board config regs */
63  #define PMPPC_CONFIG0           0x7ff40000  #define SANDPOINT_CONFIG0       0x7ff40000
64  #define PMPPC_CONFIG1           0x7ff40001  #define SANDPOINT_CONFIG1       0x7ff40001
65  #define PMPPC_LEDS              0x7ff40002  #define SANDPOINT_LEDS          0x7ff40002
66  #define PMPPC_RESET             0x7ff40003  #define SANDPOINT_RESET         0x7ff40003
67  #define PMPPC_RESET_SEQ_STEP1           0xac  #define SANDPOINT_RESET_SEQ_STEP1               0xac
68  #define PMPPC_RESET_SEQ_STEP2           0x1d  #define SANDPOINT_RESET_SEQ_STEP2               0x1d
69  #define PMPPC_INTR              0x7ff40004  #define SANDPOINT_INTR          0x7ff40004
70    
71    #if 0
72  /* ROM */  /* ROM */
73  #define PMPPC_ROM_BASE          0x7ff80000  #define SANDPOINT_ROM_BASE              0x7ff80000
74    
75  void setleds(int leds);  void setleds(int leds);
76    
77  /* Interrupts */  /* Interrupts */
78  #define PMPPC_I_BPMC_INTA       CPC_IB_EXT0 /* PCI INTA */  #define SANDPOINT_I_BPMC_INTA   CPC_IB_EXT0 /* PCI INTA */
79  #define PMPPC_I_BPMC_INTB       CPC_IB_EXT1 /* PCI INTB */  #define SANDPOINT_I_BPMC_INTB   CPC_IB_EXT1 /* PCI INTB */
80  #define PMPPC_I_BPMC_INTC       CPC_IB_EXT2 /* PCI INTC */  #define SANDPOINT_I_BPMC_INTC   CPC_IB_EXT2 /* PCI INTC */
81  #define PMPPC_I_BPMC_INTD       CPC_IB_EXT3 /* PCI INTD */  #define SANDPOINT_I_BPMC_INTD   CPC_IB_EXT3 /* PCI INTD */
82  #define PMPPC_I_ETH_INT         CPC_IB_EXT4 /* ethernet */  #define SANDPOINT_I_ETH_INT     CPC_IB_EXT4 /* ethernet */
83  #define PMPPC_I_RTC_INT         CPC_IB_EXT5 /* rtc */  #define SANDPOINT_I_RTC_INT     CPC_IB_EXT5 /* rtc */
84    
85    #endif
86    
87  /*  /*
88   * The variables below are extracted from the config register located   * The variables below are extracted from the config register located
89   * at PMPPC_CONFIG.   * at SANDPOINT_CONFIG.
90   */   */
91  struct a_config {  struct a_config {
92          int a_boot_device;          int a_boot_device;
# Line 104  struct a_config { Line 108  struct a_config {
108    
109  extern struct a_config a_config;  extern struct a_config a_config;
110    
111  #endif  /*  PMPPC_H  */  #endif  /*  SANDPOINT_H  */

Legend:
Removed from v.4  
changed lines
  Added in v.52

  ViewVC Help
Powered by ViewVC 1.1.26