2 * CPM2 Internal Memory Map
3 * Copyright (c) 1999 Dan Malek (dmalek@jlc.net)
5 * The Internal Memory Map for devices with CPM2 on them. This
6 * is the superset of all CPM2 devices (8260, 8266, 8280, 8272,
10 #ifndef __IMMAP_CPM2__
11 #define __IMMAP_CPM2__
13 /* System configuration registers.
15 typedef struct sys_82xx_conf
{
40 } sysconf_82xx_cpm2_t
;
42 typedef struct sys_85xx_conf
{
56 } sysconf_85xx_cpm2_t
;
58 typedef union sys_conf
{
59 sysconf_82xx_cpm2_t siu_82xx
;
60 sysconf_85xx_cpm2_t siu_85xx
;
65 /* Memory controller registers.
67 typedef struct mem_ctlr
{
122 /* System Integration Timers.
124 typedef struct sys_int_timers
{
140 #define PISCR_PIRQ_MASK ((u16)0xff00)
141 #define PISCR_PS ((u16)0x0080)
142 #define PISCR_PIE ((u16)0x0004)
143 #define PISCR_PTF ((u16)0x0002)
144 #define PISCR_PTE ((u16)0x0001)
148 typedef struct pci_ctlr
{
278 /* Interrupt Controller.
280 typedef struct interrupt_controller
{
297 typedef struct clk_and_reset
{
307 /* Input/Output Port control/status registers.
308 * Names consistent with processor manual, although they are different
309 * from the original 8xx names.......
311 typedef struct io_port
{
338 /* Communication Processor Module Timers
340 typedef struct cpm_timers
{
368 /* DMA control/status registers.
370 typedef struct sdma_csr
{
412 /* Fast controllers continued
414 typedef struct fcc_c
{
425 typedef struct tclayer
{
457 typedef struct scc
{ /* Serial communication channels */
472 typedef struct smc
{ /* Serial management channels */
482 /* Serial Peripheral Interface.
484 typedef struct spi_ctrl
{
497 typedef struct cpmux
{
512 typedef struct siram
{
535 typedef struct comm_proc
{
550 typedef struct usb_ctlr
{
567 /* ...and the whole thing wrapped up....
570 typedef struct immap
{
571 /* Some references are into the unique and known dpram spaces,
572 * others are from the generic base.
574 #define im_dprambase im_dpram1
575 u8 im_dpram1
[16*1024];
577 u8 im_dpram2
[4*1024];
579 u8 im_dpram3
[4*1024];
582 sysconf_cpm2_t im_siu_conf
; /* SIU Configuration */
583 memctl_cpm2_t im_memctl
; /* Memory Controller */
584 sit_cpm2_t im_sit
; /* System Integration Timers */
585 pci_cpm2_t im_pci
; /* PCI Controller */
586 intctl_cpm2_t im_intctl
; /* Interrupt Controller */
587 car_cpm2_t im_clkrst
; /* Clocks and reset */
588 iop_cpm2_t im_ioport
; /* IO Port control/status */
589 cpmtimer_cpm2_t im_cpmtimer
; /* CPM timers */
590 sdma_cpm2_t im_sdma
; /* SDMA control/status */
592 fcc_t im_fcc
[3]; /* Three FCCs */
594 fcc_c_t im_fcc_c
[3]; /* Continued FCCs */
598 tclayer_t im_tclayer
[8]; /* Eight TCLayers */
602 /* First set of baud rate generators.
612 i2c_cpm2_t im_i2c
; /* I2C control/status */
613 cpm_cpm2_t im_cpm
; /* Communication processor */
615 /* Second set of baud rate generators.
622 scc_t im_scc
[4]; /* Four SCCs */
623 smc_t im_smc
[2]; /* Couple of SMCs */
624 spictl_cpm2_t im_spi
; /* A SPI */
625 cpmux_t im_cpmux
; /* CPM clock route mux */
626 siramctl_t im_siramctl1
; /* First SI RAM Control */
627 mcc_t im_mcc1
; /* First MCC */
628 siramctl_t im_siramctl2
; /* Second SI RAM Control */
629 mcc_t im_mcc2
; /* Second MCC */
630 usb_cpm2_t im_usb
; /* USB Controller */
634 u16 im_si1txram
[256];
636 u16 im_si1rxram
[256];
638 u16 im_si2txram
[256];
640 u16 im_si2rxram
[256];
645 extern cpm2_map_t
*cpm2_immr
;
647 #endif /* __IMMAP_CPM2__ */
648 #endif /* __KERNEL__ */