Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/playstation2/dev Add missing includes, use new styl...
details: https://anonhg.NetBSD.org/src/rev/a6b8a6916b65
branches: trunk
changeset: 330396:a6b8a6916b65
user: martin <martin%NetBSD.org@localhost>
date: Mon Jul 07 10:12:24 2014 +0000
description:
Add missing includes, use new style function declarations.
diffstat:
sys/arch/playstation2/dev/emac3.c | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
diffs (113 lines):
diff -r f5402768fa79 -r a6b8a6916b65 sys/arch/playstation2/dev/emac3.c
--- a/sys/arch/playstation2/dev/emac3.c Mon Jul 07 09:14:43 2014 +0000
+++ b/sys/arch/playstation2/dev/emac3.c Mon Jul 07 10:12:24 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: emac3.c,v 1.9 2014/03/31 11:25:49 martin Exp $ */
+/* $NetBSD: emac3.c,v 1.10 2014/07/07 10:12:24 martin Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,14 +34,16 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emac3.c,v 1.9 2014/03/31 11:25:49 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emac3.c,v 1.10 2014/07/07 10:12:24 martin Exp $");
#include "debug_playstation2.h"
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/device.h>
#include <sys/socket.h>
+#include <sys/pmf.h>
#include <net/if.h>
#include <net/if_ether.h>
@@ -62,7 +64,7 @@
printf("%s: " fmt, __func__ , ##args)
#define DPRINTFN(n, arg) \
if (emac3_debug > (n)) \
-n printf("%s: " fmt, __func__ , ##args)
+ printf("%s: " fmt, __func__ , ##args)
#else
#define STATIC static
#define DPRINTF(arg...) ((void)0)
@@ -151,14 +153,14 @@
}
void
-emac3_enable()
+emac3_enable(void)
{
_emac3_reg_write_4(EMAC3_MR0, MR0_TXE | MR0_RXE);
}
void
-emac3_disable()
+emac3_disable(void)
{
int retry = 10000;
@@ -175,21 +177,21 @@
}
void
-emac3_intr_enable()
+emac3_intr_enable(void)
{
_emac3_reg_write_4(EMAC3_ISER, ~0);
}
void
-emac3_intr_disable()
+emac3_intr_disable(void)
{
_emac3_reg_write_4(EMAC3_ISER, 0);
}
void
-emac3_intr_clear()
+emac3_intr_clear(void)
{
_emac3_reg_write_4(EMAC3_ISR, _emac3_reg_read_4(EMAC3_ISR));
@@ -207,14 +209,14 @@
}
void
-emac3_tx_kick()
+emac3_tx_kick(void)
{
_emac3_reg_write_4(EMAC3_TMR0, TMR0_GNP0);
}
int
-emac3_tx_done()
+emac3_tx_done(void)
{
return (_emac3_reg_read_4(EMAC3_TMR0) & TMR0_GNP0);
@@ -256,7 +258,7 @@
}
int
-emac3_soft_reset()
+emac3_soft_reset(void)
{
int retry = 10000;
@@ -378,7 +380,7 @@
}
int
-emac3_phy_ready()
+emac3_phy_ready(void)
{
int retry = 10000;
Home |
Main Index |
Thread Index |
Old Index