/* <:copyright-broadcom Copyright (c) 2007 Broadcom Corporation All Rights Reserved No portions of this material may be reproduced in any form without the written permission of: Broadcom Corporation 16215 Alton Parkway Irvine, California 92619 All information contained in this document is Broadcom Corporation company private, proprietary, and trade secret. :> */ /***********************************************************************/ /* */ /* MODULE: 6368_map.h */ /* DATE: 02/06/07 */ /* PURPOSE: Define addresses of major hardware components of */ /* BCM6368 */ /* */ /***********************************************************************/ #ifndef __BCM6368_MAP_H #define __BCM6368_MAP_H #ifdef __cplusplus extern "C" { #endif #include "bcmtypes.h" #include "6368_common.h" #include "6368_intr.h" /* macro to convert logical data addresses to physical */ /* DMA hardware must see physical address */ #define LtoP( x ) ( (uint32)x & 0x1fffffff ) #define PtoL( x ) ( LtoP(x) | 0xa0000000 ) typedef struct MemoryControl { uint32 Control; /* (00) */ #define MEMC_SELF_REFRESH (1<<6) // enable self refresh mode #define MEMC_MRS (1<<4) // generate a mode register select cycle #define MEMC_PRECHARGE (1<<3) // generate a precharge cycle #define MEMC_REFRESH (1<<2) // generate an auto refresh cycle #define MEMC_SEQUENCE_ENABLE (1<<1) // enable memory controller sequencer #define MEMC_MASTER_ENABLE (1<<0) // enable accesses to external sdram uint32 Config; /* (04) */ #define MEMC_EARLY_HDR_CNT_SHFT 25 #define MEMC_EARLY_HDR_CNT_MASK (0x7< thresh, txfifo>8)&0xf) #define UDC20_INTF(x) ((x>>4)&0xf) #define UDC20_CFG(x) ((x>>0)&0xf) uint32 usbd_status; #define USBD_LINK (0x1<<10) #define USBD_SET_CSRS 0x40 #define USBD_SUSPEND 0x20 #define USBD_EARLY_SUSPEND 0x10 #define USBD_SOF 0x08 #define USBD_ENUMON 0x04 #define USBD_SETUP 0x02 #define USBD_USBRESET 0x01 uint32 usbd_events; uint32 usbd_events_irq; #define UPPER(x) (16+x) #define ENABLE(x) (1<