Subject: Re: MI bus ops(Re: 16bit aligned NS16550 variant)
To: None <tech-kern@netbsd.org>
From: TAKEMURA Shin <takemura@netbsd.org>
List: tech-kern
Date: 11/04/2001 17:22:17
This is a multi-part message in MIME format.

------=_NextPart_000_0188_01C16555.40881450
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit


I'm sending other hpcmips bus files for reference.
Attached archive contains three files:
arch/hpcmips/include/bus.h
arch/hpcmips/hpcmips/bus_space.c
arch/hpcmips/hpcmips/bus_space_notimpl.c

Takemura

----- Original Message -----
From: "TAKEMURA Shin" <takemura@netbsd.org>
To: <eeh@netbsd.org>; <mouse@rodents.montreal.qc.ca>;
<simonb@wasabisystems.com>
Cc: <tech-kern@netbsd.org>
Sent: Sunday, November 04, 2001 11:24 AM
Subject: MI bus ops(Re: 16bit aligned NS16550 variant)


> In the last discussion, I found that function vector definition of
> bus_space method should be michine independent.
>
> I've rewrote hpcmips bus.h and made new MI header, bus_ops.h
> which contains function vector definitions. I recomend you to rewrite
> your port's bus.h with bus_ops.h, however, I don't force to rewrite all
> ports' bus.h with bus_ops.h.
>
> I'd like to put bus_ops.h into sys/dev. (I mean sys/dev/bus_ops.h)
>
> How do you think?
> If no one objecs, I will commit this header in a few days.
>
> Takemura


------=_NextPart_000_0188_01C16555.40881450
Content-Type: application/x-compressed;
	name="hpcmips_bus.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="hpcmips_bus.tgz"

H4sIAG365DsAA+w8/Xfaxpb9Ff6Kee5LA46MwXbi1NTdgwHbbG3wAk6a0/boCSFAayFp9QF2U+/f
vvfeGUmDEBgSv+bsOeY0ttDM3O+vuTOu5umT/YmrT03X3zdt3QqHxv4g9EuT757tUymX3x0dse8Y
O3h7cIC/4VMWv9nBUfnwmLHjw+Py8fExzGSs8vagcvgdKz8fCas/oR9oHmPfBdqdMQ09bdW8+cQw
rL+DoL/3s7+b+2fbCM56jRP2z9zufj6/v7uXZ7us7rgPnjmeB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