linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <bh40@calva.net>
To: "David N. Welton" <davidw@linuxcare.com>,
	linuxppc-dev@lists.linuxppc.org
Subject: Re: Kernel questions
Date: Mon, 18 Oct 1999 20:53:34 +0200	[thread overview]
Message-ID: <19991018205334.031557@mailhost.mipsys.com> (raw)
In-Reply-To: <19991018105201.B17058@bassano.linuxcare.com>


On Mon, Oct 18, 1999, David N. Welton <davidw@linuxcare.com> wrote:


>1) Why does everything seem to want to access NVRAM things?  I've
>   found it scattered in several places throughout the kernel, such as
>   matroxfb.c.

Mostly to find out the video mode last set by MacOS. It doesn't always
works since new MacOS versions may no longer put the mode where it used
to be. It's also used by the PMU code on some PowerBooks to read the
current backlight setting.

>3) Why does pmac_support.c assume that you have ADB stuff compiled in?

All pmacs have an ADB controller, even if it's not visible (they have at
least the controller). Some pmac-specific calls go thru /dev/adb even
when you don't have anything on the ADB bus for historical reasons, like
userland access to the real time clock (ioctls). The new UMA machines
still have various ADB calls implemented in the PMU (and used by the iBook).

>nvram_read_byte contains: "struct adb_request req".
>
>If I have understood correctly, ADB is an Apple thing, and really
>shouldn't have anything to do with my RS6000.  Is this correct?

Yes, it's correct. However, I beleive the kernel is compiled to boot on
CHRP _and_ PowerMacs, and so the ADB support is needed. Also, the CHRP
definition states that CHRP machines can have an ADB controller too.

>I'm sorry if some of these are silly questions, and hope my ignorance
>isn't too glaring:-)


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~1999-10-18 18:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-18 17:52 Kernel questions David N. Welton
1999-10-18 18:53 ` Benjamin Herrenschmidt [this message]
1999-10-18 19:13   ` David N. Welton
1999-10-19 16:36     ` Geert Uytterhoeven
1999-10-19 18:07       ` David N. Welton
1999-10-20  8:40     ` Gabriel Paubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19991018205334.031557@mailhost.mipsys.com \
    --to=bh40@calva.net \
    --cc=davidw@linuxcare.com \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).