Commit Graph

15 Commits

Author SHA1 Message Date
riastradh 82b8caba92 Kill some more extern struct cfdriver declarations.
Down with externs in .c!
2017-10-28 04:53:54 +00:00
mbalmer 5ff9b946b6 Newline is \n, not /n. 2011-09-07 07:43:05 +00:00
mbalmer 5d1f2a00ee Add glue code to build as module. 2011-08-31 12:23:32 +00:00
dyoung 171b2851cf Simplify activation hook. 2009-11-12 19:22:08 +00:00
mbalmer fa4785b09a Register with the PMF, and when detaching, just the right order. 2009-08-08 10:38:17 +00:00
mbalmer 61e768bf92 Don't use an identifier name that probably clashes with the C standard.
Requested by many.
2009-08-07 08:15:52 +00:00
mbalmer 4b41fced4d unfold short line; debracket 2009-08-03 17:24:40 +00:00
mbalmer e1a16b3665 A better match routine that checks also the number of pins instead
of checking the pins in the attach routine; malconfigured devices will
no longer attach.  While here, replace some printf uses by aprint_....
2009-08-03 12:42:45 +00:00
mbalmer 8964d40bc5 Rework the GPIO framework. Tie it to the kauth(9) framework to control
access to the GPIO pins.  Device drivers using GPIO pins can now be
attached and detached at runtime.  GPIO pins can be named for easier
reference from userland programs.  Introduce a new gpiosim(4) driver,
which is used for development.

Reviewed by many.
2009-07-25 16:17:10 +00:00
cegger c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
xtraeme 7ecae1b00d Finish device_t/softc split. Previous commit was incomplete. 2008-05-04 14:01:14 +00:00
cegger 8127f641e3 device_t / softc split. From Hans Rosenfeld. 2008-05-01 22:00:44 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos 4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
riz 637bfc29f9 Dallas Semiconductor 1-Wire bus support, from OpenBSD. Currently includes
gpioow(4), attaching a bit-banging driver via a GPIO pin.  Also,
owtemp(4) which supports some of the 1-Wire temperature sensors, including
the DS18b20 and DS1920 - temperatures are returned via the envsys(4)
framework.

Original drivers by Alexander Yurchenko (grange@openbsd), with envsys(4)
support and a fix to the 1-wire search algorithm (for discovering
devices on the bus) by me.

As discussed on tech-kern earlier this week.
2006-04-07 18:55:21 +00:00