From: R.E.Wolff@bitwizard.nl (Rogier Wolff)
To: Mitchell Blank Jr <mitch@sfgoth.com>
Cc: Patrick van de Lageweg <patrick@bitwizard.nl>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Rogier Wolff <wolff@bitwizard.nl>
Subject: Re: [NEW DRIVER] firestream
Date: Thu, 23 Nov 2000 00:05:18 +0100 (MET) [thread overview]
Message-ID: <200011222305.AAA30264@cave.bitwizard.nl> (raw)
In-Reply-To: <20001122092356.B53983@sfgoth.com> from Mitchell Blank Jr at "Nov 22, 2000 09:23:56 am"
Mitchell Blank Jr wrote:
> First, I'd like to make a couple points about driver style that I'm trying
> to move towards with the ATM drivers. You're free to take them or leave
> them, but I want to eventually move the tree in this direction.
> * I don't like header files that define the registers of the chip - since
> the header file is only included in the driver's .c file you might as
> well just put the definitions there (unless, of course, there is good
> reason to think that the registers will be used in multiple drivers -
> unlikely in this case) Having a seperate header file just serves to
> hamper searching around the driver and cluttering the directory.
I disagree vehemently.
The header file should have 'static things' that for example a
competing driver for the same chip could also use. The "driver
defines" should theoretically be in a separate file. This rarely
happens.
For SX I have an "sxboard.h" with the defines that are in the HARDWARE
for the board. An "sxwindow.h" with the defines that belong with the
shared memory window that the firmware for the card defines, and an
sx.h which defines the parameters and datastructures of the driver.
This is how I like it.
> * Please use the new PCI interface for new drivers
> (i.e. MODULE_DEVICE_TABLE and all that)
It's on our todo list to learn how to do this. OK. We'll figure it out.
> These should be defined static.
Agreed. Sorry about this. Lots of cases.
Quick scan: I agree with you in almost all cases. Will do!
Roger.
--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* There are old pilots, and there are bold pilots.
* There are also old, bald pilots.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-11-22 23:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-22 9:32 [NEW DRIVER] firestream Patrick van de Lageweg
2000-11-22 17:23 ` Mitchell Blank Jr
2000-11-22 23:05 ` Rogier Wolff [this message]
2000-11-22 23:35 ` Jes Sorensen
2000-11-22 23:41 ` Jeff Garzik
2000-11-23 11:15 ` Rogier Wolff
2000-11-23 11:44 ` Peter Samuelson
2000-11-23 11:52 ` Rogier Wolff
2000-11-23 11:28 ` Werner Almesberger
2000-11-23 5:40 ` Peter Samuelson
2000-11-23 8:22 ` Rogier Wolff
2000-11-23 8:40 ` Peter Samuelson
2000-11-23 10:32 ` Vojtech Pavlik
2000-11-23 22:19 ` Bartlomiej Zolnierkiewicz
2000-11-23 23:43 ` Rogier Wolff
-- strict thread matches above, loose matches on Subject: below --
2000-11-29 8:45 Patrick van de Lageweg
2000-12-06 8:45 Patrick van de Lageweg
2000-12-12 15:44 Patrick van de Lageweg
2000-12-15 12:07 Patrick van de Lageweg
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=200011222305.AAA30264@cave.bitwizard.nl \
--to=r.e.wolff@bitwizard.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=mitch@sfgoth.com \
--cc=patrick@bitwizard.nl \
--cc=wolff@bitwizard.nl \
/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