1e9084b23SNiklaus Giger /* 2e9084b23SNiklaus Giger * (C) Copyright 2008 3e9084b23SNiklaus Giger * Niklaus Giger, niklaus.giger@member.fsf.org 4e9084b23SNiklaus Giger * 5e9084b23SNiklaus Giger * See file CREDITS for list of people who contributed to this 6e9084b23SNiklaus Giger * project. 7e9084b23SNiklaus Giger * 8e9084b23SNiklaus Giger * This program is free software; you can redistribute it and/or 9e9084b23SNiklaus Giger * modify it under the terms of the GNU General Public License as 10e9084b23SNiklaus Giger * published by the Free Software Foundation; either version 2 of 11e9084b23SNiklaus Giger * the License, or (at your option) any later version. 12e9084b23SNiklaus Giger * 13e9084b23SNiklaus Giger * This program is distributed in the hope that it will be useful, 14e9084b23SNiklaus Giger * but WITHOUT ANY WARRANTY; without even the implied warranty of 15e9084b23SNiklaus Giger * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16e9084b23SNiklaus Giger * GNU General Public License for more details. 17e9084b23SNiklaus Giger * 18e9084b23SNiklaus Giger * You should have received a copy of the GNU General Public License 19e9084b23SNiklaus Giger * along with this program; if not, write to the Free Software 20e9084b23SNiklaus Giger * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21e9084b23SNiklaus Giger * MA 02111-1307 USA 22e9084b23SNiklaus Giger */ 23e9084b23SNiklaus Giger 24e9084b23SNiklaus Giger #ifndef _VXWORKS_H_ 25e9084b23SNiklaus Giger #define _VXWORKS_H_ 26e9084b23SNiklaus Giger 27*54841ab5SWolfgang Denk int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); 28e9084b23SNiklaus Giger 29e9084b23SNiklaus Giger /* 30e9084b23SNiklaus Giger * Use bootaddr to find the location in memory that VxWorks 31e9084b23SNiklaus Giger * will look for the bootline string. The default value for 32e9084b23SNiklaus Giger * PowerPC is LOCAL_MEM_LOCAL_ADRS + BOOT_LINE_OFFSET which 33e9084b23SNiklaus Giger * defaults to 0x4200 34e9084b23SNiklaus Giger */ 35e9084b23SNiklaus Giger #ifndef CONFIG_SYS_VXWORKS_BOOT_ADDR 36e9084b23SNiklaus Giger #define CONFIG_SYS_VXWORKS_BOOT_ADDR 0x4200 37e9084b23SNiklaus Giger #endif 38e9084b23SNiklaus Giger 39e9084b23SNiklaus Giger #ifndef CONFIG_SYS_VXWORKS_BOOT_DEVICE 40e9084b23SNiklaus Giger #if defined(CONFIG_4xx) 41e9084b23SNiklaus Giger #define CONFIG_SYS_VXWORKS_BOOT_DEVICE "emac(0,0)" 42e9084b23SNiklaus Giger #elif defined(CONFIG_IOP480) 43e9084b23SNiklaus Giger #define CONFIG_SYS_VXWORKS_BOOT_DEVICE "dc(0,0)" 44e9084b23SNiklaus Giger #else 45e9084b23SNiklaus Giger #define CONFIG_SYS_VXWORKS_BOOT_DEVICE "eth(0,0)" 46e9084b23SNiklaus Giger #endif 47e9084b23SNiklaus Giger #endif 48e9084b23SNiklaus Giger 49e9084b23SNiklaus Giger #ifndef CONFIG_SYS_VXWORKS_SERVERNAME 50268405faSWolfgang Denk #define CONFIG_SYS_VXWORKS_SERVERNAME "srv" 51e9084b23SNiklaus Giger #endif 52e9084b23SNiklaus Giger 53e9084b23SNiklaus Giger #endif 54