History log of /freebsd/share/examples/drivers/make_device_driver.sh (Results 26 – 50 of 58)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 45ddd9af 26-Oct-2000 Julian Elischer <julian@FreeBSD.org>

some more cleanups
still need to handle non-PNP devices properly.


# d1d3a974 25-Oct-2000 Julian Elischer <julian@FreeBSD.org>

Slowly add more functionality as I learn more about newbus etc.


# 45b4f5af 24-Oct-2000 Julian Elischer <julian@FreeBSD.org>

First effort at bringing these up-to-date.
This creates a skeleton ISA device driver.
I don't pretend that it's fully correct or even opitimal
but it at least creates (and compiles) a 'clean' ISA dri

First effort at bringing these up-to-date.
This creates a skeleton ISA device driver.
I don't pretend that it's fully correct or even opitimal
but it at least creates (and compiles) a 'clean' ISA driver.

Hopefully PCI/PCCARD/etc. support will be added when I understand it.
Unlike the old version this just creates a module. The old one tried to
create a new kernel with the driver to be tested.

show more ...


Revision tags: release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs
# 7f3dea24 28-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


Revision tags: release/3.2.0
# a528364e 19-Mar-1999 Mike Smith <msmith@FreeBSD.org>

Fix some $d -> %d mistakes.

Submitted by: crb@crbowman.erols.com


Revision tags: release/3.1.0, release/3.0.0, release/2.2.8
# 64b2faf8 22-Oct-1998 Bruce Evans <bde@FreeBSD.org>

Removed all `vector xxxintr' specifications. Interrupt handlers are now
configured in drivers.

Attempted to update the generated interrupt handler attachment to the
current "temporary" method. Not

Removed all `vector xxxintr' specifications. Interrupt handlers are now
configured in drivers.

Attempted to update the generated interrupt handler attachment to the
current "temporary" method. Not tested. To test it, someone would first
have to fix the bitrot in the ioctl command arg type.

show more ...


Revision tags: release/2.2.7, release/2.2.6
# 4308b695 12-Jan-1998 Julian Elischer <julian@FreeBSD.org>

Add code to the example 'driver-o-matic' to support being an LKM
This may not quite work yet but should head the user in the right
direction.


# f7fa6f64 30-Dec-1997 Julian Elischer <julian@FreeBSD.org>

The example drivers should use 'poll' now that it has replaced select.


Revision tags: release/2.2.5_cvs, release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs, release/2.1.6_cvs, release/2.1.6.1
# 5e176f9a 02-Feb-1997 Julian Elischer <julian@FreeBSD.org>

These two shell scripts will
create a skeleton device driver.
one for a real device and the other for a pseudo device.
they each take one argument which is the name (prefix) for the driver.

they add

These two shell scripts will
create a skeleton device driver.
one for a real device and the other for a pseudo device.
they each take one argument which is the name (prefix) for the driver.

they add the new file to the /sys tree and add appropriate config files
etc for a build.

hopefully others will build on this so that we get
1/ these drivers improved and the shell scripts
improved in how/where that hook the new code in.
2/ similar tools for providing skeletons for other
modules (I'm tempted to do a VFS filesystem skeleton :)

please take a look and fix anything that maybe should be added.
they compile and link fine,
but I think I wouldn't trust them, as faar as RUNNING yet :)
(well they really wouldn't do very much being skeletons..

we need to add PCI and EISA skeletons as well
followed by a SCSI driver skeleton.

show more ...


Revision tags: release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0
# be115021 09-Aug-2006 Roman Kurakin <rik@FreeBSD.org>

- Added 'files "files.FOO"' to config for inclusion of user specific files.
- Added KDB option to config file (for DDB).
- Added ability to compile custom kernel.

Discussed with: julian@


# 36a64d13 06-Aug-2006 Roman Kurakin <rik@FreeBSD.org>

- Added ability to provide (optional) path to the kernel sources
- Fixed path for ${s}/conf/files.FOO and a note that it should be merged into
corresponding file to be able to compile the kernel
- Ch

- Added ability to provide (optional) path to the kernel sources
- Fixed path for ${s}/conf/files.FOO and a note that it should be merged into
corresponding file to be able to compile the kernel
- Changed kernel configuration example with the driver: it is not produced by
copying Generic but by including it
- Changed from automatic module building to asking an user if it whants to

Reviewed by: julian@

show more ...


# a299217f 06-Aug-2006 Roman Kurakin <rik@FreeBSD.org>

Fix compilation.

Reviewed by: julian@


Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0
# e4dcc1fd 03-Oct-2003 Diomidis Spinellis <dds@FreeBSD.org>

Style fixes: shell script indentation, if/then style, plus a lot
of comments in C code (capitalized, end with full stop).

Submitted by: schweikh


# ff7cd805 03-Oct-2003 Diomidis Spinellis <dds@FreeBSD.org>

Create a driver that will compile without warnings on -CURRENT
More changes are probably needed to create a correct driver.

Reviewed by: markm
Approved by: schweikh (mentor)


Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2
# 418df1e4 02-Aug-2002 Mark Murray <markm@FreeBSD.org>

Modernise and tidy up.


Revision tags: release/4.6.1, release/4.6.0_cvs, release/4.5.0_cvs, release/4.4.0_cvs
# 853fbff5 13-Nov-2001 Andrew R. Reiter <arr@FreeBSD.org>

- Modify to make the generated device driver code work with current.
- Use M_ZERO instead of another call to bzero().

Inspired by: misc/31905


Revision tags: release/4.3.0_cvs, release/4.3.0
# 11027719 14-Apr-2001 Brian Somers <brian@FreeBSD.org>

Suggest that kernels are built with ``cd /usr/src; make buildkernel''
Add a comment saying that our softc is automatically allocated by the
parent bus.
Fix lots of spellings


# 6715fca9 18-Dec-2000 Warner Losh <imp@FreeBSD.org>

o Add cardbus support (use pci attachment for now)
<bde>
o Add comments in some places to clarify some points.
o Don't typedef sc_p. This isn't usually done in the drivers and may
cause problems i

o Add cardbus support (use pci attachment for now)
<bde>
o Add comments in some places to clarify some points.
o Don't typedef sc_p. This isn't usually done in the drivers and may
cause problems in teh future if C goes the C++ route of requiring
one and only one definition for each and every type. Instead use
the current convetion of expanding struct ${1}_softc * inline needed.
o change some comments to be more style(9)-like.
o Define and use DEV2SOFTC to encapsulate storing/getting softc from a
dev_t. This also takes care of the missing cast from the examples.
o Define and use DEVICE2SOFTC, similar to DEV2SOFTC for getting the
softc from a device_t.
</bde>

We still should have this generate foo_{isa,pci,pccard,cardbus,eisa}.c
and foovar.h from templates of some sort, but I was too lazy to do
that in this commit. I did document it in the comments, however.

Note: bde-like corrections made with the help of my my portable
plastic bde icon. Results with the real bde may vary with use.

show more ...


Revision tags: release/4.2.0
# 99fcf983 15-Nov-2000 Julian Elischer <julian@FreeBSD.org>

Slight cleanups after comments from John Hay (Thanks!)
Also add more comments.


# 7dd17df7 12-Nov-2000 Julian Elischer <julian@FreeBSD.org>

Share one devclass between ISA and PCI sections
This will ensure unit numbers will co-ordinate between them


# e904636a 11-Nov-2000 Julian Elischer <julian@FreeBSD.org>

Add basic PCI capability
Not sure how unit numbers are carried across between
PCI and ISA though.. maybe there should be only one devclass between the two?


# 4a3a6ee4 09-Nov-2000 Julian Elischer <julian@FreeBSD.org>

Add more sample code having read the daemnnews article (August 2000)


# 87e78fdf 08-Nov-2000 Julian Elischer <julian@FreeBSD.org>

Having figured out a bit more of the new-bus puzzle
I have added support for finding non-PNP devices to this
sample loadable ISA driver.
PCI support will come later.

If someone with a clue about new

Having figured out a bit more of the new-bus puzzle
I have added support for finding non-PNP devices to this
sample loadable ISA driver.
PCI support will come later.

If someone with a clue about newbus were to look it over it would be
really cool.

show more ...


# 96305e8f 26-Oct-2000 Julian Elischer <julian@FreeBSD.org>

Add copyright to skeleton.


# 45ddd9af 26-Oct-2000 Julian Elischer <julian@FreeBSD.org>

some more cleanups
still need to handle non-PNP devices properly.


123