/* * IP32 basic setup * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2000 Harald Koerfgen * Copyright (C) 2002, 2003, 2005 Ilya A. Volynets * Copyright (C) 2006 Ralf Baechle <ralf@linux-mips.org>
*/ #include <linux/console.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/param.h> #include <linux/sched.h>
#ifdef CONFIG_SGI_O2MACE_ETH /* * This is taken care of in here 'cause they say using Arc later on is * problematic
*/ externchar o2meth_eaddr[8]; staticinlineunsignedchar str2hexnum(unsignedchar c)
{ if (c >= '0' && c <= '9') return c - '0'; if (c >= 'a' && c <= 'f') return c - 'a' + 10; return 0; /* foo */
}
staticinlinevoid str2eaddr(unsignedchar *ea, unsignedchar *str)
{ int i;
for (i = 0; i < 6; i++) { unsignedchar num;
if(*str == ':')
str++;
num = str2hexnum(*str++) << 4;
num |= (str2hexnum(*str++));
ea[i] = num;
}
} #endif
/* An arbitrary time; this can be decreased if reliability looks good */ #define WAIT_MS 10
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.