Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Nov 2004 16:00:36 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/uart uart_cpu_sparc64.c
Message-ID:  <200411281600.iASG0aHv015678@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marius      2004-11-28 16:00:36 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/uart         uart_cpu_sparc64.c 
  Log:
  - Don't blindly use the return value of uart_cpu_channel() to calculate
    the address of a channel on a SCC, it returns 0 on failure. [1]
  - Hardcode channel 1 for the keyboard on Z8530, the information present
    in the Open Firmware device tree doesn't allow to determine this via
    uart_cpu_channel(). This makes the keyboard (if one backs out rev. 1.5
    of sys/dev/puc/puc_sbus.c and has both keyboard and mouse plugged in to
    avoid the hang that revision works around) and consequently syscons(4)
    on Ultra 2 work. There's a problem with the keyboard LEDs similar to
    the one on Ultra 60 (LEDs don't get lit under X) though, instead of
    lighting just a specific single one all get lit and can't be turned off
    again. [1]
  - Add comments about what uart_cpu_channel() and uart_cpu_getdev_keyboard()
    do and their constraints.
  - Improve the comments about what uart_cpu_getdev_[console,dbgport]() do,
    they don't return an address (as in bus) but an Open Firmware package
    handle.
  
  Reviewed by:    marcel (modulo the comments) [1]
  
  Revision  Changes    Path
  1.15      +33 -7     src/sys/dev/uart/uart_cpu_sparc64.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411281600.iASG0aHv015678>