mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-05 18:43:27 +08:00
e5a3bc2401
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 <linux@bohmer.net> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
21 lines
697 B
C
21 lines
697 B
C
/*
|
|
* NOTE: DAVICOM DM9000 ethernet driver interface
|
|
*
|
|
* Authors: Remy Bohmer <linux@bohmer.net>
|
|
*
|
|
* 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__ */
|