config.h

来自「ADS下的bios工程」· C头文件 代码 · 共 95 行

H
95
字号
#ifndef _BIOS_CONFIG_H#define _BIOS_CONFIG_H /* * Boot device configuration * * These options control which types of devices will be compiled into the * BIOS.  The available devices are: *  - Boot from ROM image, after finish develop, we'll use this *  - Boot from serial device with xmodem protocol,  *    supported in all device *  - Boot from network using BOOTP/TFTP protocol,  *    supported in S3C45XXX series device *  - Boot from parallel device *//*  * Define this if you wish to build REAL ROM image */#define REAL_ROM_MAKE/* * Define this if you wish your machine to have the capability of booting * from an boot ROM or image ROM */#define CONFIG_BOOT_ROM/*  * Define this if you wish your machine to have the capability of booting * from an serial port, share with debug port */#define CONFIG_BOOT_SERIAL/*  * Define this if you wish your machine to have the capability of booting * using an image stored on another machine via a TCP/IP network. */#define CONFIG_BOOT_NET#define CONFIG_BOOT_NAND/* If you use NAND Flash Memory, you must have to select that type and capacity */#undef CONFIG_BOOT_NAND_SIZE_8MB#undef CONFIG_BOOT_NAND_SIZE_16MB#define CONFIG_BOOT_NAND_SIZE_32MB#undef CONFIG_BOOT_NAND_SIZE_64MB#undef CONFIG_BOOT_NAND_SIZE_128MB#undef CONFIG_BOOT_NAND_SIZE_256MB/************************************************************************* *  LCD DRIVERS CONFIGURATIONS *************************************************************************/#if defined(NANYA_320x240_MONO) || defined(NANYA_320x240_16GRAY) || defined(NANYA_320x240_COLOR)#define	DEF_X_MIN	140#define DEF_Y_MIN	120#define DEF_X_MAX	600#define	DEF_Y_MAX	450#endif/************************************************************************* *  NETWORK BOOT CONFIGURATIONS *************************************************************************/#ifdef CONFIG_BOOT_NET/*  * Device driver selection.  You must compile in at least one driver for * CONFIG_BOOT_NET to be useful.   */#define CONFIG_NET_2400/*  * Define this if you wish to use the BOOTP protocol to obtain the IP address * of this machine.  If you do not define this, then you will have to specify * the IP address of this machine. */#undef CONFIG_NET_BOOTP       #endif /* End of CONFIG_BOOT_NET */#ifndef CONFIG_NET_BOOTP/*  * If the BIOS is not going to have BOOTP support, then you will have to * specify the IP address and netmask of this machine. */#define CONFIG_NET_IP         "192.168.1.45"   		/* Target IP */#define CONFIG_NET_SERVER_IP  "192.168.1.46"   		/* Host server IP */#define CONFIG_NET_GATEWAY    "192.168.1.1"   		/* Default gate-way */#define CONFIG_NET_NETMASK    "255.255.255.0"		/* NetMask */#define CONFIG_NET_HWADDR     "56:49:54:41:4C:45" 	/* MAC Addr : All hex values */#endif  /* End of CONFIG_NET_BOOTP */#endif  /* _BIOS_CONFIG_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?