diff options
author | Michal Piotrowski <michal.k.k.piotrowski@gmail.com> | 2006-09-25 19:39:20 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-25 20:01:19 -0400 |
commit | 9098f5ba6947944d9b0d3e989535ab55ae6af3f6 (patch) | |
tree | ee77da3fee5138f6eeb4f724420e2ffa76cb4aa5 /drivers/net | |
parent | bef363a1e07a913508cf10ab2d7e2b11e6313257 (diff) |
[PATCH] drivers/net/tokenring/lanstreamer.c Removal of old code
Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/tokenring/lanstreamer.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/drivers/net/tokenring/lanstreamer.c b/drivers/net/tokenring/lanstreamer.c index 0d66700c6ced..bfc8c3eae9a1 100644 --- a/drivers/net/tokenring/lanstreamer.c +++ b/drivers/net/tokenring/lanstreamer.c | |||
@@ -1876,7 +1876,6 @@ static int sprintf_info(char *buffer, struct net_device *dev) | |||
1876 | datap[size+1]=io_word & 0xff; | 1876 | datap[size+1]=io_word & 0xff; |
1877 | } | 1877 | } |
1878 | 1878 | ||
1879 | |||
1880 | size = sprintf(buffer, "\n%6s: Adapter Address : Node Address : Functional Addr\n", dev->name); | 1879 | size = sprintf(buffer, "\n%6s: Adapter Address : Node Address : Functional Addr\n", dev->name); |
1881 | 1880 | ||
1882 | size += sprintf(buffer + size, | 1881 | size += sprintf(buffer + size, |
@@ -1932,64 +1931,6 @@ static int sprintf_info(char *buffer, struct net_device *dev) | |||
1932 | #endif | 1931 | #endif |
1933 | #endif | 1932 | #endif |
1934 | 1933 | ||
1935 | #if STREAMER_IOCTL && (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) | ||
1936 | static int streamer_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | ||
1937 | { | ||
1938 | int i; | ||
1939 | struct streamer_private *streamer_priv = (struct streamer_private *) dev->priv; | ||
1940 | u8 __iomem *streamer_mmio = streamer_priv->streamer_mmio; | ||
1941 | |||
1942 | switch(cmd) { | ||
1943 | case IOCTL_SISR_MASK: | ||
1944 | writew(SISR_MI, streamer_mmio + SISR_MASK_SUM); | ||
1945 | break; | ||
1946 | case IOCTL_SPIN_LOCK_TEST: | ||
1947 | printk(KERN_INFO "spin_lock() called.\n"); | ||
1948 | spin_lock(&streamer_priv->streamer_lock); | ||
1949 | spin_unlock(&streamer_priv->streamer_lock); | ||
1950 | printk(KERN_INFO "spin_unlock() finished.\n"); | ||
1951 | break; | ||
1952 | case IOCTL_PRINT_BDAS: | ||
1953 | printk(KERN_INFO "bdas: RXBDA: %x RXLBDA: %x TX2FDA: %x TX2LFDA: %x\n", | ||
1954 | readw(streamer_mmio + RXBDA), | ||
1955 | readw(streamer_mmio + RXLBDA), | ||
1956 | readw(streamer_mmio + TX2FDA), | ||
1957 | readw(streamer_mmio + TX2LFDA)); | ||
1958 | break; | ||
1959 | case IOCTL_PRINT_REGISTERS: | ||
1960 | printk(KERN_INFO "registers:\n"); | ||
1961 | printk(KERN_INFO "SISR: %04x MISR: %04x LISR: %04x BCTL: %04x BMCTL: %04x\nmask %04x mask %04x\n", | ||
1962 | readw(streamer_mmio + SISR), | ||
1963 | readw(streamer_mmio + MISR_RUM), | ||
1964 | readw(streamer_mmio + LISR), | ||
1965 | readw(streamer_mmio + BCTL), | ||
1966 | readw(streamer_mmio + BMCTL_SUM), | ||
1967 | readw(streamer_mmio + SISR_MASK), | ||
1968 | readw(streamer_mmio + MISR_MASK)); | ||
1969 | break; | ||
1970 | case IOCTL_PRINT_RX_BUFS: | ||
1971 | printk(KERN_INFO "Print rx bufs:\n"); | ||
1972 | for(i=0; i<STREAMER_RX_RING_SIZE; i++) | ||
1973 | printk(KERN_INFO "rx_ring %d status: 0x%x\n", i, | ||
1974 | streamer_priv->streamer_rx_ring[i].status); | ||
1975 | break; | ||
1976 | case IOCTL_PRINT_TX_BUFS: | ||
1977 | printk(KERN_INFO "Print tx bufs:\n"); | ||
1978 | for(i=0; i<STREAMER_TX_RING_SIZE; i++) | ||
1979 | printk(KERN_INFO "tx_ring %d status: 0x%x\n", i, | ||
1980 | streamer_priv->streamer_tx_ring[i].status); | ||
1981 | break; | ||
1982 | case IOCTL_RX_CMD: | ||
1983 | streamer_rx(dev); | ||
1984 | printk(KERN_INFO "Sent rx command.\n"); | ||
1985 | break; | ||
1986 | default: | ||
1987 | printk(KERN_INFO "Bad ioctl!\n"); | ||
1988 | } | ||
1989 | return 0; | ||
1990 | } | ||
1991 | #endif | ||
1992 | |||
1993 | static struct pci_driver streamer_pci_driver = { | 1934 | static struct pci_driver streamer_pci_driver = { |
1994 | .name = "lanstreamer", | 1935 | .name = "lanstreamer", |
1995 | .id_table = streamer_pci_tbl, | 1936 | .id_table = streamer_pci_tbl, |