From e5a3bc2401a23f1890611f020f57f94824a534db Mon Sep 17 00:00:00 2001 From: Remy Bohmer Date: Sun, 3 May 2009 12:11:40 +0200 Subject: Add config option for disabling DM9000-SROM support. Some boards do not have SROM support for the DM9000 network adapter. Instead of listing these board names in the driver code, make this option configurable from the board config file. It also removes a build warning for the at91sam9261ek board: 'dm9000x.c:545: warning: 'read_srom_word' defined but not used' And it repaires the trizepsiv board build which was broken around the same routines Signed-off-by: Remy Bohmer Signed-off-by: Ben Warren --- include/dm9000.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/dm9000.h (limited to 'include/dm9000.h') diff --git a/include/dm9000.h b/include/dm9000.h new file mode 100644 index 0000000000..76f9bfde70 --- /dev/null +++ b/include/dm9000.h @@ -0,0 +1,20 @@ +/* + * NOTE: DAVICOM DM9000 ethernet driver interface + * + * Authors: Remy Bohmer + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + */ +#ifndef __DM9000_H__ +#define __DM9000_H__ + +/****************** function prototypes **********************/ +#if !defined(CONFIG_DM9000_NO_SROM) +void dm9000_write_srom_word(int offset, u16 val); +void dm9000_read_srom_word(int offset, u8 *to); +#endif + +#endif /* __DM9000_H__ */ -- cgit v1.2.1