From 1c6ecedcde91f268ba302f3bbeeabfb7bda97690 Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Tue, 1 Feb 2005 14:33:15 -0500 Subject: [PATCH] remove dp83840.h dp83840.h is included once but none of the definitions it contains is actually used. Signed-off-by: Adrian Bunk Signed-off-by: Jeff Garzik --- include/linux/dp83840.h | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 include/linux/dp83840.h (limited to 'include') diff --git a/include/linux/dp83840.h b/include/linux/dp83840.h deleted file mode 100644 index 1ca8e5754608..000000000000 --- a/include/linux/dp83840.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * linux/dp83840.h: definitions for DP83840 MII-compatible transceivers - * - * Copyright (C) 1996, 1999 David S. Miller (davem@redhat.com) - */ -#ifndef __LINUX_DP83840_H -#define __LINUX_DP83840_H - -#include - -/* - * Data sheets and programming docs for the DP83840 are available at - * from http://www.national.com/ - * - * The DP83840 is capable of both 10 and 100Mbps ethernet, in both - * half and full duplex mode. It also supports auto negotiation. - * - * But.... THIS THING IS A PAIN IN THE ASS TO PROGRAM! - * Debugging eeprom burnt code is more fun than programming this chip! - */ - -/* First, the MII register numbers (actually DP83840 register numbers). */ -#define MII_CSCONFIG 0x17 /* CS configuration */ - -/* The Carrier Sense config register. */ -#define CSCONFIG_RESV1 0x0001 /* Unused... */ -#define CSCONFIG_LED4 0x0002 /* Pin for full-dplx LED4 */ -#define CSCONFIG_LED1 0x0004 /* Pin for conn-status LED1 */ -#define CSCONFIG_RESV2 0x0008 /* Unused... */ -#define CSCONFIG_TCVDISAB 0x0010 /* Turns off the transceiver */ -#define CSCONFIG_DFBYPASS 0x0020 /* Bypass disconnect function */ -#define CSCONFIG_GLFORCE 0x0040 /* Good link force for 100mbps */ -#define CSCONFIG_CLKTRISTATE 0x0080 /* Tristate 25m clock */ -#define CSCONFIG_RESV3 0x0700 /* Unused... */ -#define CSCONFIG_ENCODE 0x0800 /* 1=MLT-3, 0=binary */ -#define CSCONFIG_RENABLE 0x1000 /* Repeater mode enable */ -#define CSCONFIG_TCDISABLE 0x2000 /* Disable timeout counter */ -#define CSCONFIG_RESV4 0x4000 /* Unused... */ -#define CSCONFIG_NDISABLE 0x8000 /* Disable NRZI */ - -#endif /* __LINUX_DP83840_H */ -- cgit v1.2.3 From 18b054661502930ec294e85113bf13e619a32fe9 Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Sun, 20 Feb 2005 10:33:30 -0500 Subject: [PATCH] drivers/net/slhc.c: remove 2 functions This patch removes two unused global functions. Signed-off-by: Adrian Bunk Signed-off-by: Jeff Garzik --- drivers/net/slhc.c | 27 --------------------------- include/net/slhc_vj.h | 3 --- 2 files changed, 30 deletions(-) (limited to 'include') diff --git a/drivers/net/slhc.c b/drivers/net/slhc.c index a3521c2773a5..c6fbb1ede0ed 100644 --- a/drivers/net/slhc.c +++ b/drivers/net/slhc.c @@ -693,33 +693,6 @@ slhc_toss(struct slcompress *comp) } -void slhc_i_status(struct slcompress *comp) -{ - if (comp != NULLSLCOMPR) { - printk("\t%d Cmp, %d Uncmp, %d Bad, %d Tossed\n", - comp->sls_i_compressed, - comp->sls_i_uncompressed, - comp->sls_i_error, - comp->sls_i_tossed); - } -} - - -void slhc_o_status(struct slcompress *comp) -{ - if (comp != NULLSLCOMPR) { - printk("\t%d Cmp, %d Uncmp, %d AsIs, %d NotTCP\n", - comp->sls_o_compressed, - comp->sls_o_uncompressed, - comp->sls_o_tcp, - comp->sls_o_nontcp); - printk("\t%10d Searches, %10d Misses\n", - comp->sls_o_searches, - comp->sls_o_misses); - } -} - -/* Should this be surrounded with "#ifdef CONFIG_MODULES" ? */ /* VJ header compression */ EXPORT_SYMBOL(slhc_init); EXPORT_SYMBOL(slhc_free); diff --git a/include/net/slhc_vj.h b/include/net/slhc_vj.h index 0a85dc014336..0b2c2784f333 100644 --- a/include/net/slhc_vj.h +++ b/include/net/slhc_vj.h @@ -185,7 +185,4 @@ int slhc_remember __ARGS((struct slcompress *comp, unsigned char *icp, int isize)); int slhc_toss __ARGS((struct slcompress *comp)); -void slhc_i_status __ARGS((struct slcompress *comp)); -void slhc_o_status __ARGS((struct slcompress *comp)); - #endif /* _SLHC_H */ -- cgit v1.2.3