mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Julian Calaby <julian.calaby@gmail.com>
To: adam radford <aradford@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>,
	"Mukker, Atul" <Atul.Mukker@lsi.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Austria, Winston" <Winston.Austria@lsi.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [RFQ] New driver architecture questions
Date: Fri, 15 May 2009 11:01:33 +1000	[thread overview]
Message-ID: <646765f40905141801k5ae6249p925a4a377652c62e@mail.gmail.com> (raw)
In-Reply-To: <b1bc6a000905141758y20aa7852h8b1012e3da6f8c0f@mail.gmail.com>

On Fri, May 15, 2009 at 10:58, adam radford <aradford@gmail.com> wrote:
> On Wed, May 13, 2009 at 9:16 PM, Jeff Garzik <jeff@garzik.org> wrote:
>> Taking drivers/net/e1000e as an
>> example,
>>
>>        hw.h            hardware-specific defines, ~cross-OS
>>        82571.c         code specific to 8257x chip family, ~cross-OS
>
> 82571.c contains Linux specific code such as:  including Linux
> specific header files, calls to msleep().
>
>>        ich8lan.c       code specific to ICH8+ chip family, ~cross-OS
>
> ich8lan.c contains Linux specific code such as:  might_sleep(),
> mutex_trylock(), mutex_unlock(), udelay(), msleep(), writel(), readl().
>
> Perhaps this is a bad example?  It seems like the "common layer"
> sections that are "cross-OS" shouldn't contain any Linux specific code at all.

I think the implication is that the cross-OS parts are coded, as it
happens, in the linux coding style, using linux functions, but then a
Windows layer maps these to Windows specific functions.

E.g. msleep(), mutex_trylock(), etc are implemented in the Windows
layer by mapping them to the Windows functions to do the same.

Thanks,

-- 

Julian Calaby

Email: julian.calaby@gmail.com
.Plan: http://sites.google.com/site/juliancalaby/

  reply	other threads:[~2009-05-15  1:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14  1:57 Mukker, Atul
2009-05-14  2:44 ` Jeff Garzik
2009-05-14  3:07   ` Mukker, Atul
2009-05-14  4:16     ` Jeff Garzik
2009-05-14  8:51       ` Boaz Harrosh
2009-05-15  0:58       ` adam radford
2009-05-15  1:01         ` Julian Calaby [this message]
2009-05-15  3:01           ` Jeff Garzik
2009-05-15 14:56             ` Mukker, Atul
2009-05-15 16:04               ` James Bottomley
2009-05-15 16:36               ` Matthew Wilcox
2009-05-15 18:03                 ` Mukker, Atul
2009-05-15 18:16                   ` Matthew Wilcox
2009-05-15 18:38                     ` Mukker, Atul

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=646765f40905141801k5ae6249p925a4a377652c62e@mail.gmail.com \
    --to=julian.calaby@gmail.com \
    --cc=Atul.Mukker@lsi.com \
    --cc=Winston.Austria@lsi.com \
    --cc=aradford@gmail.com \
    --cc=jeff@garzik.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.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

all inboxes | Powered by JetHome®