projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AX88180: switch to common mii.h header
[oweals/u-boot.git]
/
drivers
/
net
/
netconsole.c
diff --git
a/drivers/net/netconsole.c
b/drivers/net/netconsole.c
index b2ee5eaba498635c45bc272a423933c4477e95a1..e27bb3e71db9b0e593681f038bf36cb10cf675bb 100644
(file)
--- a/
drivers/net/netconsole.c
+++ b/
drivers/net/netconsole.c
@@
-23,7
+23,7
@@
#include <common.h>
#include <command.h>
#include <common.h>
#include <command.h>
-#include <
devices
.h>
+#include <
stdio_dev
.h>
#include <net.h>
DECLARE_GLOBAL_DATA_PTR;
#include <net.h>
DECLARE_GLOBAL_DATA_PTR;
@@
-139,7
+139,7
@@
static void nc_send_packet (const char *buf, int len)
eth_halt ();
}
eth_halt ();
}
-
int nc_start
(void)
+
static int nc_start
(void)
{
int netmask, our_ip;
{
int netmask, our_ip;
@@
-169,7
+169,7
@@
int nc_start (void)
return 0;
}
return 0;
}
-
void nc_putc
(char c)
+
static void nc_putc
(char c)
{
if (output_recursion)
return;
{
if (output_recursion)
return;
@@
-180,7
+180,7
@@
void nc_putc (char c)
output_recursion = 0;
}
output_recursion = 0;
}
-
void nc_puts
(const char *s)
+
static void nc_puts
(const char *s)
{
int len;
{
int len;
@@
-196,7
+196,7
@@
void nc_puts (const char *s)
output_recursion = 0;
}
output_recursion = 0;
}
-
int nc_getc
(void)
+
static int nc_getc
(void)
{
uchar c;
{
uchar c;
@@
-217,7
+217,7
@@
int nc_getc (void)
return c;
}
return c;
}
-
int nc_tstc
(void)
+
static int nc_tstc
(void)
{
struct eth_device *eth;
{
struct eth_device *eth;
@@
-243,7
+243,7
@@
int nc_tstc (void)
int drv_nc_init (void)
{
int drv_nc_init (void)
{
-
device_t
dev;
+
struct stdio_dev
dev;
int rc;
memset (&dev, 0, sizeof (dev));
int rc;
memset (&dev, 0, sizeof (dev));
@@
-256,7
+256,7
@@
int drv_nc_init (void)
dev.getc = nc_getc;
dev.tstc = nc_tstc;
dev.getc = nc_getc;
dev.tstc = nc_tstc;
- rc =
device
_register (&dev);
+ rc =
stdio
_register (&dev);
return (rc == 0) ? 1 : rc;
}
return (rc == 0) ? 1 : rc;
}