diff options
Diffstat (limited to 'drivers/tty/rocket.c')
-rw-r--r-- | drivers/tty/rocket.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/drivers/tty/rocket.c b/drivers/tty/rocket.c index 036feeb5e3f6..13043e8d37fe 100644 --- a/drivers/tty/rocket.c +++ b/drivers/tty/rocket.c | |||
@@ -1380,7 +1380,6 @@ static void rp_send_xchar(struct tty_struct *tty, char ch) | |||
1380 | static void rp_throttle(struct tty_struct *tty) | 1380 | static void rp_throttle(struct tty_struct *tty) |
1381 | { | 1381 | { |
1382 | struct r_port *info = tty->driver_data; | 1382 | struct r_port *info = tty->driver_data; |
1383 | CHANNEL_t *cp; | ||
1384 | 1383 | ||
1385 | #ifdef ROCKET_DEBUG_THROTTLE | 1384 | #ifdef ROCKET_DEBUG_THROTTLE |
1386 | printk(KERN_INFO "throttle %s: %d....\n", tty->name, | 1385 | printk(KERN_INFO "throttle %s: %d....\n", tty->name, |
@@ -1390,7 +1389,6 @@ static void rp_throttle(struct tty_struct *tty) | |||
1390 | if (rocket_paranoia_check(info, "rp_throttle")) | 1389 | if (rocket_paranoia_check(info, "rp_throttle")) |
1391 | return; | 1390 | return; |
1392 | 1391 | ||
1393 | cp = &info->channel; | ||
1394 | if (I_IXOFF(tty)) | 1392 | if (I_IXOFF(tty)) |
1395 | rp_send_xchar(tty, STOP_CHAR(tty)); | 1393 | rp_send_xchar(tty, STOP_CHAR(tty)); |
1396 | 1394 | ||
@@ -1400,7 +1398,6 @@ static void rp_throttle(struct tty_struct *tty) | |||
1400 | static void rp_unthrottle(struct tty_struct *tty) | 1398 | static void rp_unthrottle(struct tty_struct *tty) |
1401 | { | 1399 | { |
1402 | struct r_port *info = tty->driver_data; | 1400 | struct r_port *info = tty->driver_data; |
1403 | CHANNEL_t *cp; | ||
1404 | #ifdef ROCKET_DEBUG_THROTTLE | 1401 | #ifdef ROCKET_DEBUG_THROTTLE |
1405 | printk(KERN_INFO "unthrottle %s: %d....\n", tty->name, | 1402 | printk(KERN_INFO "unthrottle %s: %d....\n", tty->name, |
1406 | tty->ldisc.chars_in_buffer(tty)); | 1403 | tty->ldisc.chars_in_buffer(tty)); |
@@ -1409,7 +1406,6 @@ static void rp_unthrottle(struct tty_struct *tty) | |||
1409 | if (rocket_paranoia_check(info, "rp_throttle")) | 1406 | if (rocket_paranoia_check(info, "rp_throttle")) |
1410 | return; | 1407 | return; |
1411 | 1408 | ||
1412 | cp = &info->channel; | ||
1413 | if (I_IXOFF(tty)) | 1409 | if (I_IXOFF(tty)) |
1414 | rp_send_xchar(tty, START_CHAR(tty)); | 1410 | rp_send_xchar(tty, START_CHAR(tty)); |
1415 | 1411 | ||
@@ -1722,13 +1718,10 @@ static int rp_write_room(struct tty_struct *tty) | |||
1722 | static int rp_chars_in_buffer(struct tty_struct *tty) | 1718 | static int rp_chars_in_buffer(struct tty_struct *tty) |
1723 | { | 1719 | { |
1724 | struct r_port *info = tty->driver_data; | 1720 | struct r_port *info = tty->driver_data; |
1725 | CHANNEL_t *cp; | ||
1726 | 1721 | ||
1727 | if (rocket_paranoia_check(info, "rp_chars_in_buffer")) | 1722 | if (rocket_paranoia_check(info, "rp_chars_in_buffer")) |
1728 | return 0; | 1723 | return 0; |
1729 | 1724 | ||
1730 | cp = &info->channel; | ||
1731 | |||
1732 | #ifdef ROCKET_DEBUG_WRITE | 1725 | #ifdef ROCKET_DEBUG_WRITE |
1733 | printk(KERN_INFO "rp_chars_in_buffer returns %d...\n", info->xmit_cnt); | 1726 | printk(KERN_INFO "rp_chars_in_buffer returns %d...\n", info->xmit_cnt); |
1734 | #endif | 1727 | #endif |
@@ -1779,7 +1772,6 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
1779 | { | 1772 | { |
1780 | int num_aiops, aiop, max_num_aiops, num_chan, chan; | 1773 | int num_aiops, aiop, max_num_aiops, num_chan, chan; |
1781 | unsigned int aiopio[MAX_AIOPS_PER_BOARD]; | 1774 | unsigned int aiopio[MAX_AIOPS_PER_BOARD]; |
1782 | char *str, *board_type; | ||
1783 | CONTROLLER_t *ctlp; | 1775 | CONTROLLER_t *ctlp; |
1784 | 1776 | ||
1785 | int fast_clock = 0; | 1777 | int fast_clock = 0; |
@@ -1800,7 +1792,6 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
1800 | /* Depending on the model, set up some config variables */ | 1792 | /* Depending on the model, set up some config variables */ |
1801 | switch (dev->device) { | 1793 | switch (dev->device) { |
1802 | case PCI_DEVICE_ID_RP4QUAD: | 1794 | case PCI_DEVICE_ID_RP4QUAD: |
1803 | str = "Quadcable"; | ||
1804 | max_num_aiops = 1; | 1795 | max_num_aiops = 1; |
1805 | ports_per_aiop = 4; | 1796 | ports_per_aiop = 4; |
1806 | rocketModel[i].model = MODEL_RP4QUAD; | 1797 | rocketModel[i].model = MODEL_RP4QUAD; |
@@ -1808,42 +1799,36 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
1808 | rocketModel[i].numPorts = 4; | 1799 | rocketModel[i].numPorts = 4; |
1809 | break; | 1800 | break; |
1810 | case PCI_DEVICE_ID_RP8OCTA: | 1801 | case PCI_DEVICE_ID_RP8OCTA: |
1811 | str = "Octacable"; | ||
1812 | max_num_aiops = 1; | 1802 | max_num_aiops = 1; |
1813 | rocketModel[i].model = MODEL_RP8OCTA; | 1803 | rocketModel[i].model = MODEL_RP8OCTA; |
1814 | strcpy(rocketModel[i].modelString, "RocketPort 8 port w/octa cable"); | 1804 | strcpy(rocketModel[i].modelString, "RocketPort 8 port w/octa cable"); |
1815 | rocketModel[i].numPorts = 8; | 1805 | rocketModel[i].numPorts = 8; |
1816 | break; | 1806 | break; |
1817 | case PCI_DEVICE_ID_URP8OCTA: | 1807 | case PCI_DEVICE_ID_URP8OCTA: |
1818 | str = "Octacable"; | ||
1819 | max_num_aiops = 1; | 1808 | max_num_aiops = 1; |
1820 | rocketModel[i].model = MODEL_UPCI_RP8OCTA; | 1809 | rocketModel[i].model = MODEL_UPCI_RP8OCTA; |
1821 | strcpy(rocketModel[i].modelString, "RocketPort UPCI 8 port w/octa cable"); | 1810 | strcpy(rocketModel[i].modelString, "RocketPort UPCI 8 port w/octa cable"); |
1822 | rocketModel[i].numPorts = 8; | 1811 | rocketModel[i].numPorts = 8; |
1823 | break; | 1812 | break; |
1824 | case PCI_DEVICE_ID_RP8INTF: | 1813 | case PCI_DEVICE_ID_RP8INTF: |
1825 | str = "8"; | ||
1826 | max_num_aiops = 1; | 1814 | max_num_aiops = 1; |
1827 | rocketModel[i].model = MODEL_RP8INTF; | 1815 | rocketModel[i].model = MODEL_RP8INTF; |
1828 | strcpy(rocketModel[i].modelString, "RocketPort 8 port w/external I/F"); | 1816 | strcpy(rocketModel[i].modelString, "RocketPort 8 port w/external I/F"); |
1829 | rocketModel[i].numPorts = 8; | 1817 | rocketModel[i].numPorts = 8; |
1830 | break; | 1818 | break; |
1831 | case PCI_DEVICE_ID_URP8INTF: | 1819 | case PCI_DEVICE_ID_URP8INTF: |
1832 | str = "8"; | ||
1833 | max_num_aiops = 1; | 1820 | max_num_aiops = 1; |
1834 | rocketModel[i].model = MODEL_UPCI_RP8INTF; | 1821 | rocketModel[i].model = MODEL_UPCI_RP8INTF; |
1835 | strcpy(rocketModel[i].modelString, "RocketPort UPCI 8 port w/external I/F"); | 1822 | strcpy(rocketModel[i].modelString, "RocketPort UPCI 8 port w/external I/F"); |
1836 | rocketModel[i].numPorts = 8; | 1823 | rocketModel[i].numPorts = 8; |
1837 | break; | 1824 | break; |
1838 | case PCI_DEVICE_ID_RP8J: | 1825 | case PCI_DEVICE_ID_RP8J: |
1839 | str = "8J"; | ||
1840 | max_num_aiops = 1; | 1826 | max_num_aiops = 1; |
1841 | rocketModel[i].model = MODEL_RP8J; | 1827 | rocketModel[i].model = MODEL_RP8J; |
1842 | strcpy(rocketModel[i].modelString, "RocketPort 8 port w/RJ11 connectors"); | 1828 | strcpy(rocketModel[i].modelString, "RocketPort 8 port w/RJ11 connectors"); |
1843 | rocketModel[i].numPorts = 8; | 1829 | rocketModel[i].numPorts = 8; |
1844 | break; | 1830 | break; |
1845 | case PCI_DEVICE_ID_RP4J: | 1831 | case PCI_DEVICE_ID_RP4J: |
1846 | str = "4J"; | ||
1847 | max_num_aiops = 1; | 1832 | max_num_aiops = 1; |
1848 | ports_per_aiop = 4; | 1833 | ports_per_aiop = 4; |
1849 | rocketModel[i].model = MODEL_RP4J; | 1834 | rocketModel[i].model = MODEL_RP4J; |
@@ -1851,56 +1836,48 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
1851 | rocketModel[i].numPorts = 4; | 1836 | rocketModel[i].numPorts = 4; |
1852 | break; | 1837 | break; |
1853 | case PCI_DEVICE_ID_RP8SNI: | 1838 | case PCI_DEVICE_ID_RP8SNI: |
1854 | str = "8 (DB78 Custom)"; | ||
1855 | max_num_aiops = 1; | 1839 | max_num_aiops = 1; |
1856 | rocketModel[i].model = MODEL_RP8SNI; | 1840 | rocketModel[i].model = MODEL_RP8SNI; |
1857 | strcpy(rocketModel[i].modelString, "RocketPort 8 port w/ custom DB78"); | 1841 | strcpy(rocketModel[i].modelString, "RocketPort 8 port w/ custom DB78"); |
1858 | rocketModel[i].numPorts = 8; | 1842 | rocketModel[i].numPorts = 8; |
1859 | break; | 1843 | break; |
1860 | case PCI_DEVICE_ID_RP16SNI: | 1844 | case PCI_DEVICE_ID_RP16SNI: |
1861 | str = "16 (DB78 Custom)"; | ||
1862 | max_num_aiops = 2; | 1845 | max_num_aiops = 2; |
1863 | rocketModel[i].model = MODEL_RP16SNI; | 1846 | rocketModel[i].model = MODEL_RP16SNI; |
1864 | strcpy(rocketModel[i].modelString, "RocketPort 16 port w/ custom DB78"); | 1847 | strcpy(rocketModel[i].modelString, "RocketPort 16 port w/ custom DB78"); |
1865 | rocketModel[i].numPorts = 16; | 1848 | rocketModel[i].numPorts = 16; |
1866 | break; | 1849 | break; |
1867 | case PCI_DEVICE_ID_RP16INTF: | 1850 | case PCI_DEVICE_ID_RP16INTF: |
1868 | str = "16"; | ||
1869 | max_num_aiops = 2; | 1851 | max_num_aiops = 2; |
1870 | rocketModel[i].model = MODEL_RP16INTF; | 1852 | rocketModel[i].model = MODEL_RP16INTF; |
1871 | strcpy(rocketModel[i].modelString, "RocketPort 16 port w/external I/F"); | 1853 | strcpy(rocketModel[i].modelString, "RocketPort 16 port w/external I/F"); |
1872 | rocketModel[i].numPorts = 16; | 1854 | rocketModel[i].numPorts = 16; |
1873 | break; | 1855 | break; |
1874 | case PCI_DEVICE_ID_URP16INTF: | 1856 | case PCI_DEVICE_ID_URP16INTF: |
1875 | str = "16"; | ||
1876 | max_num_aiops = 2; | 1857 | max_num_aiops = 2; |
1877 | rocketModel[i].model = MODEL_UPCI_RP16INTF; | 1858 | rocketModel[i].model = MODEL_UPCI_RP16INTF; |
1878 | strcpy(rocketModel[i].modelString, "RocketPort UPCI 16 port w/external I/F"); | 1859 | strcpy(rocketModel[i].modelString, "RocketPort UPCI 16 port w/external I/F"); |
1879 | rocketModel[i].numPorts = 16; | 1860 | rocketModel[i].numPorts = 16; |
1880 | break; | 1861 | break; |
1881 | case PCI_DEVICE_ID_CRP16INTF: | 1862 | case PCI_DEVICE_ID_CRP16INTF: |
1882 | str = "16"; | ||
1883 | max_num_aiops = 2; | 1863 | max_num_aiops = 2; |
1884 | rocketModel[i].model = MODEL_CPCI_RP16INTF; | 1864 | rocketModel[i].model = MODEL_CPCI_RP16INTF; |
1885 | strcpy(rocketModel[i].modelString, "RocketPort Compact PCI 16 port w/external I/F"); | 1865 | strcpy(rocketModel[i].modelString, "RocketPort Compact PCI 16 port w/external I/F"); |
1886 | rocketModel[i].numPorts = 16; | 1866 | rocketModel[i].numPorts = 16; |
1887 | break; | 1867 | break; |
1888 | case PCI_DEVICE_ID_RP32INTF: | 1868 | case PCI_DEVICE_ID_RP32INTF: |
1889 | str = "32"; | ||
1890 | max_num_aiops = 4; | 1869 | max_num_aiops = 4; |
1891 | rocketModel[i].model = MODEL_RP32INTF; | 1870 | rocketModel[i].model = MODEL_RP32INTF; |
1892 | strcpy(rocketModel[i].modelString, "RocketPort 32 port w/external I/F"); | 1871 | strcpy(rocketModel[i].modelString, "RocketPort 32 port w/external I/F"); |
1893 | rocketModel[i].numPorts = 32; | 1872 | rocketModel[i].numPorts = 32; |
1894 | break; | 1873 | break; |
1895 | case PCI_DEVICE_ID_URP32INTF: | 1874 | case PCI_DEVICE_ID_URP32INTF: |
1896 | str = "32"; | ||
1897 | max_num_aiops = 4; | 1875 | max_num_aiops = 4; |
1898 | rocketModel[i].model = MODEL_UPCI_RP32INTF; | 1876 | rocketModel[i].model = MODEL_UPCI_RP32INTF; |
1899 | strcpy(rocketModel[i].modelString, "RocketPort UPCI 32 port w/external I/F"); | 1877 | strcpy(rocketModel[i].modelString, "RocketPort UPCI 32 port w/external I/F"); |
1900 | rocketModel[i].numPorts = 32; | 1878 | rocketModel[i].numPorts = 32; |
1901 | break; | 1879 | break; |
1902 | case PCI_DEVICE_ID_RPP4: | 1880 | case PCI_DEVICE_ID_RPP4: |
1903 | str = "Plus Quadcable"; | ||
1904 | max_num_aiops = 1; | 1881 | max_num_aiops = 1; |
1905 | ports_per_aiop = 4; | 1882 | ports_per_aiop = 4; |
1906 | altChanRingIndicator++; | 1883 | altChanRingIndicator++; |
@@ -1910,7 +1887,6 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
1910 | rocketModel[i].numPorts = 4; | 1887 | rocketModel[i].numPorts = 4; |
1911 | break; | 1888 | break; |
1912 | case PCI_DEVICE_ID_RPP8: | 1889 | case PCI_DEVICE_ID_RPP8: |
1913 | str = "Plus Octacable"; | ||
1914 | max_num_aiops = 2; | 1890 | max_num_aiops = 2; |
1915 | ports_per_aiop = 4; | 1891 | ports_per_aiop = 4; |
1916 | altChanRingIndicator++; | 1892 | altChanRingIndicator++; |
@@ -1920,7 +1896,6 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
1920 | rocketModel[i].numPorts = 8; | 1896 | rocketModel[i].numPorts = 8; |
1921 | break; | 1897 | break; |
1922 | case PCI_DEVICE_ID_RP2_232: | 1898 | case PCI_DEVICE_ID_RP2_232: |
1923 | str = "Plus 2 (RS-232)"; | ||
1924 | max_num_aiops = 1; | 1899 | max_num_aiops = 1; |
1925 | ports_per_aiop = 2; | 1900 | ports_per_aiop = 2; |
1926 | altChanRingIndicator++; | 1901 | altChanRingIndicator++; |
@@ -1930,7 +1905,6 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
1930 | rocketModel[i].numPorts = 2; | 1905 | rocketModel[i].numPorts = 2; |
1931 | break; | 1906 | break; |
1932 | case PCI_DEVICE_ID_RP2_422: | 1907 | case PCI_DEVICE_ID_RP2_422: |
1933 | str = "Plus 2 (RS-422)"; | ||
1934 | max_num_aiops = 1; | 1908 | max_num_aiops = 1; |
1935 | ports_per_aiop = 2; | 1909 | ports_per_aiop = 2; |
1936 | altChanRingIndicator++; | 1910 | altChanRingIndicator++; |
@@ -1943,7 +1917,6 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
1943 | 1917 | ||
1944 | max_num_aiops = 1; | 1918 | max_num_aiops = 1; |
1945 | ports_per_aiop = 6; | 1919 | ports_per_aiop = 6; |
1946 | str = "6-port"; | ||
1947 | 1920 | ||
1948 | /* If revision is 1, the rocketmodem flash must be loaded. | 1921 | /* If revision is 1, the rocketmodem flash must be loaded. |
1949 | * If it is 2 it is a "socketed" version. */ | 1922 | * If it is 2 it is a "socketed" version. */ |
@@ -1961,7 +1934,6 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
1961 | case PCI_DEVICE_ID_RP4M: | 1934 | case PCI_DEVICE_ID_RP4M: |
1962 | max_num_aiops = 1; | 1935 | max_num_aiops = 1; |
1963 | ports_per_aiop = 4; | 1936 | ports_per_aiop = 4; |
1964 | str = "4-port"; | ||
1965 | if (dev->revision == 1) { | 1937 | if (dev->revision == 1) { |
1966 | rcktpt_type[i] = ROCKET_TYPE_MODEMII; | 1938 | rcktpt_type[i] = ROCKET_TYPE_MODEMII; |
1967 | rocketModel[i].loadrm2 = 1; | 1939 | rocketModel[i].loadrm2 = 1; |
@@ -1974,7 +1946,6 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
1974 | rocketModel[i].numPorts = 4; | 1946 | rocketModel[i].numPorts = 4; |
1975 | break; | 1947 | break; |
1976 | default: | 1948 | default: |
1977 | str = "(unknown/unsupported)"; | ||
1978 | max_num_aiops = 0; | 1949 | max_num_aiops = 0; |
1979 | break; | 1950 | break; |
1980 | } | 1951 | } |
@@ -2000,14 +1971,12 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
2000 | if (! | 1971 | if (! |
2001 | (sInW(ConfigIO + _PCI_9030_GPIO_CTRL) & | 1972 | (sInW(ConfigIO + _PCI_9030_GPIO_CTRL) & |
2002 | PCI_GPIO_CTRL_8PORT)) { | 1973 | PCI_GPIO_CTRL_8PORT)) { |
2003 | str = "Quadcable"; | ||
2004 | ports_per_aiop = 4; | 1974 | ports_per_aiop = 4; |
2005 | rocketModel[i].numPorts = 4; | 1975 | rocketModel[i].numPorts = 4; |
2006 | } | 1976 | } |
2007 | } | 1977 | } |
2008 | break; | 1978 | break; |
2009 | case PCI_DEVICE_ID_UPCI_RM3_8PORT: | 1979 | case PCI_DEVICE_ID_UPCI_RM3_8PORT: |
2010 | str = "8 ports"; | ||
2011 | max_num_aiops = 1; | 1980 | max_num_aiops = 1; |
2012 | rocketModel[i].model = MODEL_UPCI_RM3_8PORT; | 1981 | rocketModel[i].model = MODEL_UPCI_RM3_8PORT; |
2013 | strcpy(rocketModel[i].modelString, "RocketModem III 8 port"); | 1982 | strcpy(rocketModel[i].modelString, "RocketModem III 8 port"); |
@@ -2018,7 +1987,6 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
2018 | rcktpt_type[i] = ROCKET_TYPE_MODEMIII; | 1987 | rcktpt_type[i] = ROCKET_TYPE_MODEMIII; |
2019 | break; | 1988 | break; |
2020 | case PCI_DEVICE_ID_UPCI_RM3_4PORT: | 1989 | case PCI_DEVICE_ID_UPCI_RM3_4PORT: |
2021 | str = "4 ports"; | ||
2022 | max_num_aiops = 1; | 1990 | max_num_aiops = 1; |
2023 | rocketModel[i].model = MODEL_UPCI_RM3_4PORT; | 1991 | rocketModel[i].model = MODEL_UPCI_RM3_4PORT; |
2024 | strcpy(rocketModel[i].modelString, "RocketModem III 4 port"); | 1992 | strcpy(rocketModel[i].modelString, "RocketModem III 4 port"); |
@@ -2032,21 +2000,6 @@ static __init int register_PCI(int i, struct pci_dev *dev) | |||
2032 | break; | 2000 | break; |
2033 | } | 2001 | } |
2034 | 2002 | ||
2035 | switch (rcktpt_type[i]) { | ||
2036 | case ROCKET_TYPE_MODEM: | ||
2037 | board_type = "RocketModem"; | ||
2038 | break; | ||
2039 | case ROCKET_TYPE_MODEMII: | ||
2040 | board_type = "RocketModem II"; | ||
2041 | break; | ||
2042 | case ROCKET_TYPE_MODEMIII: | ||
2043 | board_type = "RocketModem III"; | ||
2044 | break; | ||
2045 | default: | ||
2046 | board_type = "RocketPort"; | ||
2047 | break; | ||
2048 | } | ||
2049 | |||
2050 | if (fast_clock) { | 2003 | if (fast_clock) { |
2051 | sClockPrescale = 0x12; /* mod 2 (divide by 3) */ | 2004 | sClockPrescale = 0x12; /* mod 2 (divide by 3) */ |
2052 | rp_baud_base[i] = 921600; | 2005 | rp_baud_base[i] = 921600; |