Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/emips/stand/common Add missing prototypes/includes ...



details:   https://anonhg.NetBSD.org/src/rev/93a4a0b4f59f
branches:  trunk
changeset: 326967:93a4a0b4f59f
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Feb 24 08:00:52 2014 +0000

description:
Add missing prototypes/includes and remove unused variables

diffstat:

 sys/arch/emips/stand/common/enic.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 4415b9ac3702 -r 93a4a0b4f59f sys/arch/emips/stand/common/enic.c
--- a/sys/arch/emips/stand/common/enic.c        Mon Feb 24 07:50:22 2014 +0000
+++ b/sys/arch/emips/stand/common/enic.c        Mon Feb 24 08:00:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: enic.c,v 1.1 2011/01/26 01:18:54 pooka Exp $   */
+/*     $NetBSD: enic.c,v 1.2 2014/02/24 08:00:52 martin Exp $  */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -66,6 +66,8 @@
 #include <lib/libsa/netif.h>
 #include <lib/libkern/libkern.h>
 
+#include "start.h"
+
 #include <machine/emipsreg.h>
 #define the_enic ((struct _Enic *)ETHERNET_DEFAULT_ADDRESS)
 
@@ -76,6 +78,8 @@
 static int  enicget (struct iodesc *, void *, size_t, saseconds_t);
 static int  enicput (struct iodesc *, void *, size_t);
 static void enicend (struct netif *);
+int enic_getpkt(struct _Enic *regs, void *buf, int bytes, int timeo);
+int enic_present(int unit);
 
 #ifdef NET_DEBUG
 static void dump_packet(void *, int);
@@ -154,7 +158,7 @@
                 ;/* nothing */
             } else if (fl != ES_F_CMD)
             {
-                printf("enic: invalid saf=x%x (lo=%x)\n", saf, lo);
+                printf("enic: invalid saf=x%x (lo=%x, hi=%x)\n", saf, lo, hi);
             }
         }
 



Home | Main Index | Thread Index | Old Index