?? smdk2510.h
字號:
/* smdk2510.h - SAMSUNG SMDK2510 header file */
/* Copyright 2002 SAMSUNG ELECTRONICS */
/*
modification history
--------------------
01b,10July02,jwchoi : This file should be changed carefully for the SMDK2510.
01a,08feb02,jmLee created.
*/
#ifndef INCsmdk2510h
#define INCsmdk2510h
/* System BUS Type */
#define BUS BUS_TYPE_NONE
/* Console definitions */
#define N_SIO_CHANNELS 3 /* No. serial I/O channels */
#undef CONSOLE_TTY
#define CONSOLE_TTY 0 /* 0:CUART, 1: HUART0, 2:HUART1 */
/* FLASH definitions */
#define INCLUDE_FLASH /* Include FLASH support */
#define FLASH_BASE_ADRS 0x81000000 /* FLASH Base Address */
#define FLASH_SIZE 0x00200000 /* 2 Mbytes */
/* LCD definitions */
#define INCLUDE_LCD /* Include LCD support */
#define LCD_BASE_ADRS 0x82000000 /* SRAM Base Address */
#define LCD_SIZE 0x00100000 /* SRAM Size, 1M Bytes */
/* SRAM definitions */
#define INCLUDE_SRAM /* Include SRAM support */
#define SRAM_BASE_ADRS 0x84000000 /* SRAM Base Address */
#define SRAM_SIZE 0x00100000 /* SRAM Size, 1M Bytes */
/* LED definitions */
#define INCLUDE_LED /* Include LED support */
#define IOPMOD_LED S3C2510_IOPMOD1 /* 0:OUT, 1:IN */
#define IOPDATA_LED S3C2510_IOPDATA1 /* 0:ON, 1:OFF */
#define LED8_MASK 0x00000080 /* LED 8 */
#define LED7_MASK 0x00000040 /* LED 7 */
#define LED6_MASK 0x00000020 /* LED 6 */
#define LED5_MASK 0x00000010 /* LED 5 */
#define LED4_MASK 0x00000008 /* LED 4 */
#define LED3_MASK 0x00000004 /* LED 3 */
#define LED2_MASK 0x00000002 /* LED 2 */
#define LED1_MASK 0x00000001 /* LED 1 */
#define LED_ALL_MASK 0x000000FF
#define LED_ON(_mask) (*IOPDATA_LED &= ~(_mask))
#define LED_OFF(_mask) (*IOPDATA_LED |= (_mask))
/* Memory Map for Buffer Descriptor and Buffer */
#define ETH_MAX_UNITS 2
#if (USER_RESERVED_MEM > 0)
#define USER_BASE_ADRS (LOCAL_MEM_LOCAL_ADRS + LOCAL_MEM_SIZE - USER_RESERVED_MEM)
#define USER_SIZE (USER_RESERVED_MEM)
#else /* (USER_RESERVED_MEM > 0) */
#ifdef INCLUDE_SRAM
#define USER_BASE_ADRS SRAM_BASE_ADRS
#define USER_SIZE SRAM_SIZE
#else /* INCLUDE_SRAM */
#error No space for the Buffer and Buffer Descriptor
#endif /* INCLUDE_SRAM */
#endif /* (USER_RESERVED_MEM > 0) */
#define SIZE_BD 8 /* Size of Buffer Descriptor */
#define SIZE_FB 2048 /* Size of Free Buffer */
#define NBD_RBD_ETH 6 /* 2 ^ 6 = 64 */
#define NBD_TBD_ETH 6 /* 2 ^ 6 = 64 */
#define NUM_RBD_ETH (1 << NBD_RBD_ETH)
#define NUM_TBD_ETH (1 << NBD_TBD_ETH)
#define NUM_BD_ETH (NUM_RBD_ETH + NUM_TBD_ETH)
#define RBD_SIZE_ETH (SIZE_BD * NUM_RBD_ETH)
#define TBD_SIZE_ETH (SIZE_BD * NUM_TBD_ETH)
#define BD_SIZE_ETH (RBD_SIZE_ETH + TBD_SIZE_ETH)
#define RFB_SIZE_ETH (SIZE_FB * NUM_RBD_ETH)
#define TFB_SIZE_ETH (SIZE_FB * NUM_TBD_ETH)
#define FB_SIZE_ETH ((RFB_SIZE_ETH * 2) + TFB_SIZE_ETH)
#define BD_BASE_ETH (USER_BASE_ADRS)
#define FB_BASE_ETH ( BD_BASE_ETH + (BD_SIZE_ETH*ETH_MAX_UNITS) )
#define FB_END (FB_BASE_ETH + (FB_SIZE_ETH* ETH_MAX_UNITS) )
#if ( (USER_BASE_ADRS + USER_SIZE) < FB_END )
#error Too big NUM_BD, decreae NUM_BD
#endif
#if ((SIZE_FB % 16) != 0)
#error Buffer size must be 16 bytes aligned
#endif
/* Loopback Modes */
#define LOOP_NONE 0 /* Normal */
#define LOOP_L2 1 /* Layer 2 Loopback */
#define LOOP_TDM 2 /* TDM Loopback (in SAR Mode) */
#define LOOP_L1 3 /* Layer 1 Loopback */
#define LOOP_ECHO_L1 4 /* Layer 1 Echo */
#define LOOP_ECHO_TDM 5 /* TDM Echo (in SAR Mode) */
#define LOOP_ECHO_L2 6 /* Layer 2 Echo */
#endif /* INCsmdk2510h */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -