1. 01 Dec, 2002 9 commits
    • Russell King's avatar
      [SERIAL] uart_get_divisor() and uart_get_baud_rate() takes termios. · 493c6685
      Russell King authored
      Currently, uart_get_divisor() and uart_get_baud_rate() take a tty
      structure.  We really want them to take a termios structure so we
      can avoid passing a tty structure all  the way down to the low level
      drivers.
      
      In order to do this, we need to be able to convert a termios
      structure to a numeric baud rate - we provide tty_termios_baud_rate() in
      tty_io.c for this purpose.  It performs a subset of the
      tty_get_baud_rate() functionality, but without any "alt_speed"
      kludge.
      
      We finally export uart_get_baud_rate() and uart_get_divisor() to for
      low level drivers to use.  We now have all the functions in place
      to support ports which want to have access to the real baud rate
      rather than a divisor value.
      493c6685
    • Russell King's avatar
    • Russell King's avatar
      [SERIAL] Move quot/divisor calculation to uart_get_divisor() · 512c5637
      Russell King authored
      uart_get_divisor() calculates the divisor for standard uarts, and
      will eventually become a helper function for low level port drivers.
      512c5637
    • Russell King's avatar
      [SERIAL] Move custom_divisor from uart_state to uart_port. · b1a5ffda
      Russell King authored
      This is another step towards moving the divisor calculations into
      the low level drivers, thereby allowing the faster baud rates
      mentioned in the previous cset.  Moving this field to uart_port
      means that the low level drivers do not have to know about the
      uart_state structure.
      b1a5ffda
    • Russell King's avatar
      [SERIAL] Replace tty->alt_speed with uart_get_baud_rate() · e75784be
      Russell King authored
      We provide a new function, uart_get_baud_rate(), to return the
      desired numeric baud rate from the uart_port and tty structures.
      This allows us to:
      
      1. localise the 38400 alternate speed kludge to one area.
      2. support faster baud rates than the usual baud_base / desired_rate
         calculations in the future (eventually allowing the use of the
         magic divisors in 8250.c.)
      e75784be
    • Russell King's avatar
      [SERIAL] Fix failure checks · 55d2c487
      Russell King authored
      We originally checked for failure by checking if the returned code
      was non-zero.  Strictly, it should be a negative value.
      55d2c487
    • Russell King's avatar
      [SERIAL] Pass "iomap" base from probe modules · 7f114818
      Russell King authored
      Patch from Randolph Chung, slightly modified by rmk.
      
      When displaying the details of memory mapped serial ports, we want to show
      some sane base value.  The cookie returned from ioremap can be meaningless
      to users (and developers), especially when the cookie could be a dynamically
      allocated virtual address.
      
      The more useful cookie is the value passed into ioremap.  We already have
      support for handling this cookie internally - we haven't allowed the PCI
      probe module to hand it to the higher levels until now.
      7f114818
    • Russell King's avatar
      [SERIAL] Export pci_siig10x_fn() and pci_siig20x_fn() · d6f75078
      Russell King authored
      Patch from Zwane Mwaikambo, fixed by rmk, comments by rmk.
      
      SIIG cards have parallel ports in addition to serial ports.  We therefore
      probe the cards in parport_serial.c and call the serial specific probe
      functions in 8250_pci.c
      
      This is the second half of a patch that was applied in 2.5.50 to
      parport_serial by others without the corresponding 8250_pci.c changes.
      d6f75078
    • Russell King's avatar
      [SERIAL] Prevent PNPBIOS re-registering already detected ports · 1d680b7a
      Russell King authored
      During initialisation of 8250 serial, we scan a list of ISA ports and
      register any ports.  We then perform PNPBIOS scanning, which re-registers
      ttyS0.  Unfortunately, if devfs is enabled, devfs reports an error because
      we try to create two tts/0 entries.
      
      Therefore, when adding a new port we check that it has not been detected
      before attempting to probe the port and register it with devfs (via the
      tty layer.)
      1d680b7a
  2. 30 Nov, 2002 1 commit
  3. 27 Nov, 2002 14 commits
  4. 26 Nov, 2002 16 commits