linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@cs.anu.edu.au>
To: Jes.Sorensen@cern.ch
Cc: schmitz@opal.biophys.uni-duesseldorf.de, ddkilzer@computer.org,
	linux-mac68k@mac.linux-m68k.org, linuxppc-dev@lists.linuxppc.org
Subject: Re: mac-2.3.14.diff: adb
Date: Tue, 31 Aug 1999 12:43:32 +1000	[thread overview]
Message-ID: <199908310243.MAA17110@tango.anu.edu.au> (raw)
In-Reply-To: <199908301552.RAA23128@lxp03.cern.ch> (message from Jes Sorensen on Mon, 30 Aug 1999 17:52:45 +0200)


Jes Sorensen <Jes.Sorensen@cern.ch> wrote:

> Wouldn't it be natural to move the Mac 8530 serial driver to
> drivers/char and the rest to drivers/adb? or is the via stuff not adb
> related?
> 
> Paul what do you think?

The stuff in drivers/macintosh is basically stuff that I thought would
only be useful on macs (powermacs initially but also potentially 68k
macs).

What's in there breaks down into:

ADB drivers: adb.c, macio-adb.c, via-cuda.c, via-pmu.c, mac_keyb.c

zilog serial driver: macserial.[ch]

powerbook media bay driver: mediabay.c

/dev/nvram driver: nvram.c

The CUDA and PMU drivers both have several functions, of which talking
to the ADB bus is only one.  The CUDA and PMU are both responsible for
talking to the real-time clock and NVRAM, and for reset and soft-power
control.  The PMU also has the functions of controlling and reporting
on the battery status and for putting the system to sleep.  The PMU
driver exports a /dev/pmu device.

If there was a compelling reason for getting rid of drivers/macintosh,
sure we could find other homes for the files in it.  I haven't seen
any compelling reason yet though.  If the 68k-mac folks feel that they
can't use drivers/macintosh, that is unfortunate and certainly not
what I intended.

I think the idea of having a drivers/adb directory is reasonable, and
adb.c, mac_keyb.c and maybe adbmouse.c can go in there.  I don't see
that via-cuda.c and via-pmu.c really fit well in there though.  Maybe
the thing to do is to split the adb-related functions out of those
files and put them in cuda-adb.c and pmu-adb.c in drivers/adb.

I don't really mind whether macserial.[ch] stay in drivers/macintosh
or go to drivers/char.  drivers/sbus/char/sunserial.[ch] is a
precedent for keeping it in drivers/char.  nvram.c could go into
drivers/char, I guess, but would have to have a name change.  I don't
see that these things have to go in drivers/char just because they
implement a character device.

Paul.

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

  parent reply	other threads:[~1999-08-31  2:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <v03130327b3ebecbebbd3@[192.168.1.1]>
     [not found] ` <199908270917.LAA04250@lxp03.cern.ch>
1999-08-27 13:41   ` mac-2.3.14.diff: adb David D. Kilzer
1999-08-27 14:14     ` Jes Sorensen
1999-08-30 15:44       ` Michael Schmitz
1999-08-30 15:52         ` Jes Sorensen
1999-08-30 16:27           ` Michael Schmitz
1999-08-31  2:43           ` Paul Mackerras [this message]
1999-08-31  4:25             ` David D. Kilzer
1999-08-31  7:21               ` Paul Mackerras
1999-08-31  9:04                 ` Jes Sorensen
1999-08-31  9:11                   ` Geert Uytterhoeven
1999-08-31 17:00                     ` David A. Gatwood
1999-08-27 14:32     ` Benjamin Herrenschmidt
1999-08-28  1:20       ` David D. Kilzer
1999-08-28 11:58         ` Geert Uytterhoeven
1999-09-06 13:37     ` Geert Uytterhoeven

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=199908310243.MAA17110@tango.anu.edu.au \
    --to=paulus@cs.anu.edu.au \
    --cc=Jes.Sorensen@cern.ch \
    --cc=Paul.Mackerras@cs.anu.edu.au \
    --cc=ddkilzer@computer.org \
    --cc=linux-mac68k@mac.linux-m68k.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=schmitz@opal.biophys.uni-duesseldorf.de \
    /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).