The NetBSD Project

CVS log for src/sys/dev/gpio/gpio.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / gpio

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.72.2.1 / (download) - annotate - [select for diffs], Sun Nov 26 11:45:16 2023 UTC (4 months, 3 weeks ago) by bouyer
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2
Changes since 1.72: +10 -2 lines
Diff to previous 1.72 (colored) next main 1.73 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by brad in ticket #461):
	sys/dev/gpio/gpiovar.h: revision 1.19
	share/man/man4/gpioirq.4: revision 1.4 via patch
	sys/dev/gpio/gpio.c: revision 1.73
	etc/MAKEDEV.tmpl: revision 1.234
	sys/conf/majors: revision 1.103
	sys/dev/gpio/gpioirq.c: revision 1.2
gpioirq(4) version 2
This update makes this driver more than just an example and allows for:
o More than one pin to be attached to a gpioirq instance.  That is,
  the mask parameter can be greater than 0x01 now.
o A /dev/gpioirqN device that allows GPIO pin interrupts to be
  transported into userland.  This is a device that can be opened for
  reading with a simple fixed output indicating the device unit, pin
  number and current pin state.
This update was used as part of a physical intrusion detection system
where multiple switches (i.e. window magnetic reed switches and etc.)
are tied to a bunch of GPIO inputs with userland software that reacts
to the pins changing state.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Nov 6 00:35:05 2023 UTC (5 months, 1 week ago) by brad
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.72: +10 -2 lines
Diff to previous 1.72 (colored) to selected 1.61 (colored)



gpioirq(4) version 2

This update makes this driver more than just an example and allows for:

o More than one pin to be attached to a gpioirq instance.  That is,
  the mask parameter can be greater than 0x01 now.

o A /dev/gpioirqN device that allows GPIO pin interrupts to be
  transported into userland.  This is a device that can be opened for
  reading with a simple fixed output indicating the device unit, pin
  number and current pin state.


This update was used as part of a physical intrusion detection system
where multiple switches (i.e. window magnetic reed switches and etc.)
are tied to a bunch of GPIO inputs with userland software that reacts
to the pins changing state.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Dec 13 21:50:43 2022 UTC (16 months ago) by jakllsch
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC1
Branch point for: netbsd-10
Changes since 1.71: +4 -12 lines
Diff to previous 1.71 (colored) to selected 1.61 (colored)

Never fib about pin count in GPIOINFO ioctl results.  The number of pins
on a controller simply does not change depending on the privileges of
the caller.

Revision 1.71 / (download) - annotate - [select for diffs], Wed Apr 27 23:15:30 2022 UTC (23 months, 3 weeks ago) by brad
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.70: +15 -3 lines
Diff to previous 1.70 (colored) to selected 1.61 (colored)



I have been using this for a while and forgot to commit it.  This add
a number of KERNEL_LOCK() calls and at the very least prevents gpioiic
from panicing the system.  This may be a fix for kern/56438.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Mar 31 19:30:16 2022 UTC (2 years ago) by pgoyette
Branch: MAIN
Changes since 1.69: +10 -10 lines
Diff to previous 1.69 (colored) to selected 1.61 (colored)

For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence.  This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:

	devsw_attach()
	config_init_component() or config_cf*_attach()
	...
	config_fini_component() or config_cf*_detach()
	devsw_detach()

While here, add a few missing calls to some of the detach
routines.

Testing of these changes has been limited to:
	1. compile without build break
	2. no related test failures from atf
	3. modload/modunload work as well as
	   before.

No functional device testing done, since I don't have any
of these devices.  Let me know of any damage I might cause
here!

XXX Some of the modules affected by this commit are already
XXX broken;  see kern/56772.  This commit does not break
any additional modules (as far as I know).

Revision 1.69 / (download) - annotate - [select for diffs], Mon Jan 17 19:33:00 2022 UTC (2 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.68: +38 -5 lines
Diff to previous 1.68 (colored) to selected 1.61 (colored)

When initializing pins, try to get the default pin name from the
"gpio-line-names" property.  If not present, then fall back on the
default name for the pin from the parent, if there is one.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Sep 21 14:38:51 2021 UTC (2 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.67: +29 -32 lines
Diff to previous 1.67 (colored) to selected 1.61 (colored)

use l->l_cred since it is available.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Aug 9 20:49:09 2021 UTC (2 years, 8 months ago) by andvar
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.61 (colored)

fix various typos in compatibility, mainly in comments.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:10 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.65: +6 -9 lines
Diff to previous 1.65 (colored) to selected 1.61 (colored)

Merge thorpej-cfargs2.

Revision 1.65.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 18:33:11 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.65: +6 -9 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.61 (colored)

Adapt to CFARGS().

Revision 1.65 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:54 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.64: +15 -10 lines
Diff to previous 1.64 (colored) to selected 1.61 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.64.10.10 / (download) - annotate - [select for diffs], Mon Apr 5 01:01:48 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.64.10.9: +3 -3 lines
Diff to previous 1.64.10.9 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored) to selected 1.61 (colored)

Treat config_probe() as if it were a boolean function; don't compare
return value > 0... except for the odd balls, which are now really easy
to spot.

Revision 1.64.10.9 / (download) - annotate - [select for diffs], Mon Apr 5 00:48:54 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.64.10.8: +3 -3 lines
Diff to previous 1.64.10.8 (colored) to branchpoint 1.64 (colored) to selected 1.61 (colored)

config_match() -> config_probe() for the straight-forward indirect config
cases.  There are still a few odd balls using config_match() which should
be sorted out later.

Revision 1.64.10.8 / (download) - annotate - [select for diffs], Sun Apr 4 22:01:22 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.64.10.7: +3 -3 lines
Diff to previous 1.64.10.7 (colored) to branchpoint 1.64 (colored) to selected 1.61 (colored)

CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.

Revision 1.64.10.7 / (download) - annotate - [select for diffs], Sat Apr 3 06:54:29 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.64.10.6: +6 -4 lines
Diff to previous 1.64.10.6 (colored) to branchpoint 1.64 (colored) to selected 1.61 (colored)

config_attach_loc() -> config_attach() with CFARG_LOCATORS argument.

Revision 1.64.10.6 / (download) - annotate - [select for diffs], Sat Apr 3 01:57:17 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.64.10.5: +3 -3 lines
Diff to previous 1.64.10.5 (colored) to branchpoint 1.64 (colored) to selected 1.61 (colored)

Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.

Revision 1.64.10.5 / (download) - annotate - [select for diffs], Sun Mar 28 20:40:30 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.64.10.4: +2 -4 lines
Diff to previous 1.64.10.4 (colored) to branchpoint 1.64 (colored) to selected 1.61 (colored)

No need to pass interface attribute or locators to config_search().

Revision 1.64.10.4 / (download) - annotate - [select for diffs], Sun Mar 21 18:03:32 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.64.10.3: +2 -3 lines
Diff to previous 1.64.10.3 (colored) to branchpoint 1.64 (colored) to selected 1.61 (colored)

Remove a now-unused variable.

Revision 1.64.10.3 / (download) - annotate - [select for diffs], Sun Mar 21 17:35:48 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.64.10.2: +2 -3 lines
Diff to previous 1.64.10.2 (colored) to branchpoint 1.64 (colored) to selected 1.61 (colored)

CFARG_IATTR usage audit:

If a device carries only one interface attribute, there is no need
to specify it when calling config_search(); that specification is
meant only to disambiguate which interface attribute (which is a
proxy for "what kind of attach args are being used") is having
children attached.  cfparent_match() will take care of ensuring that
any potential children can attach to one of the parent's iterface
attributes, and if the parent only carries one, no disambiguation is
necessary.

Revision 1.64.10.2 / (download) - annotate - [select for diffs], Sat Mar 20 20:47:53 2021 UTC (3 years, 1 month ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.64.10.1: +4 -4 lines
Diff to previous 1.64.10.1 (colored) to branchpoint 1.64 (colored) to selected 1.61 (colored)

No need to pass the parent softc down to the indirect submatch routine;
it's available from the parent device_t there.

Revision 1.64.10.1 / (download) - annotate - [select for diffs], Sat Mar 20 19:33:40 2021 UTC (3 years, 1 month ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.64: +11 -4 lines
Diff to previous 1.64 (colored) to selected 1.61 (colored)

The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
  tag-value variadic arguments that can be passed to the various
  config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
  for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
  variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
  Noticed several incorrect usages along the way, which will be
  audited in a future commit.

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:20 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.61.2.1: +10 -8 lines
Diff to previous 1.61.2.1 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.61 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.64 / (download) - annotate - [select for diffs], Sun Oct 20 09:35:18 2019 UTC (4 years, 6 months ago) by tnn
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-cfargs
Changes since 1.63: +9 -5 lines
Diff to previous 1.63 (colored) to selected 1.61 (colored)

gpio: make GPIOREAD return also the symbolic name of the pin, if it is set

Revision 1.63 / (download) - annotate - [select for diffs], Tue Oct 15 00:13:53 2019 UTC (4 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.62: +3 -5 lines
Diff to previous 1.62 (colored) to selected 1.61 (colored)

convert more KM_NOSLEEP to KM_SLEEP and remove code to handle failures.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:08 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Sync with HEAD

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:41 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Merge the [pgoyette-compat] branch

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Mon May 21 04:36:05 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.60: +155 -48 lines
Diff to previous 1.60 (colored) next main 1.61 (colored)

Sync with HEAD

Revision 1.61 / (download) - annotate - [selected], Sat May 19 13:59:06 2018 UTC (5 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.60: +155 -48 lines
Diff to previous 1.60 (colored)

Overhaul of GPIO interrupt support (that wasn't even used by anything).
- Remove the old, not-expressive-enough interrupt flags, and replace them
  with a new set of interrupt-specific flags that can express a wide
  variety of interrupt configurations (pos, neg, and double-edge, high
  and low level).
- Remove old, unused gpio_pin_ctl_intr() and gpio_pin_irqen(), and
  replace them with gpio_intr_establish(), gpio_intr_disestablish(),
  and gpio_intr_str().  Corresponding fields in the gpio_chipset_tag
  are also added for back-end controllers, which now handle the actual
  dispatch of GPIO interrupts in order to properly support level-triggered
  interrupts as well as interoperate properly with FDT-registered
  interrupts.

Piggy-back on the 8.99.18 version bump.

Inspired by initial work from Brad Spencer.
PR kern/51676

Revision 1.50.8.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:01 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.50.8.3: +88 -3 lines
Diff to previous 1.50.8.3 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.61 (colored)

update from HEAD

Revision 1.60 / (download) - annotate - [select for diffs], Sat Oct 28 04:53:56 2017 UTC (6 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.59: +3 -4 lines
Diff to previous 1.59 (colored) to selected 1.61 (colored)

Kill some more extern struct cfdriver declarations.

Down with externs in .c!

Revision 1.57.4.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:02 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.57.4.1: +15 -2 lines
Diff to previous 1.57.4.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored) to selected 1.61 (colored)

Sync with HEAD

Revision 1.58.10.1 / (download) - annotate - [select for diffs], Tue Jul 18 19:13:09 2017 UTC (6 years, 9 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.58: +15 -2 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.61 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #114):
	sys/arch/arm/samsung/exynos_intr.h: revision 1.3
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.1
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_gates.c: revision 1.1
	distrib/utils/embedded/mkimage: revision 1.66
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.4
	sys/arch/arm/sunxi/sunxi_rsb.c: revision 1.1
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.5
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.6
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: revision 1.7
	sys/dev/gpio/gpio.c: revision 1.59
	sys/arch/arm/sunxi/sunxi_ccu_prediv.c: revision 1.1
	sys/conf/Makefile.kern.inc: revision 1.257
	sys/arch/evbarm/conf/ODROID-XU_INSTALL: file removal
	sys/arch/arm/sunxi/sunxi_ccu_prediv.c: revision 1.2
	sys/conf/Makefile.kern.inc: revision 1.258
	sys/arch/arm/fdt/psci_fdt.h: revision 1.1
	sys/arch/arm/sunxi/sunxi_resets.c: revision 1.1
	sys/arch/evbarm/conf/files.sunxi: revision 1.1
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.8
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.9
	sys/arch/arm/samsung/files.exynos: revision 1.22
	distrib/utils/embedded/conf/armv7.conf: revision 1.13
	sys/arch/arm/samsung/files.exynos: revision 1.23
	sys/arch/evbarm/conf/std.tegra: revision 1.15
	distrib/utils/embedded/conf/armv7.conf: revision 1.14
	sys/arch/arm/samsung/files.exynos: revision 1.24
	distrib/utils/embedded/conf/armv7.conf: revision 1.15
	sys/arch/evbarm/sunxi/genassym.cf: revision 1.1
	sys/arch/arm/samsung/exynos_fdt.c: file removal
	sys/dev/fdt/fdt_pinctrl.c: revision 1.4
	sys/arch/arm/samsung/exynos_sysmmu.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_h3_gpio.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_twi.c: revision 1.1
	sys/dev/usb/ehci.c: revision 1.255
	sys/arch/arm/sunxi/sunxi_twi.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_a83t_ccu.h: revision 1.1
	sys/dev/ic/dwc_mmc.c: revision 1.11
	sys/arch/arm/cortex/gic.c: revision 1.24
	distrib/evbarm/instkernel/ramdisk/Makefile: revision 1.17
	etc/etc.evbarm/Makefile.inc: revision 1.87
	etc/etc.evbarm/Makefile.inc: revision 1.88
	sys/arch/arm/fdt/gic_fdt.c: revision 1.5
	etc/Makefile: revision 1.429
	sys/arch/arm/fdt/gic_fdt.c: revision 1.6
	sys/arch/arm/fdt/gic_fdt.c: revision 1.7
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.2
	sys/arch/evbarm/conf/std.sunxi: revision 1.1
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.3
	sys/arch/evbarm/conf/std.sunxi: revision 1.2
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.4
	sys/arch/evbarm/conf/std.sunxi: revision 1.3
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.5
	sys/arch/arm/sunxi/sunxi_ccu_div.c: revision 1.1
	sys/dev/gpio/gpiovar.h: revision 1.17
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.6
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.7
	sys/arch/arm/sunxi/sunxi_gpio.c: revision 1.8
	sys/arch/arm/sunxi/sunxi_rsb.h: revision 1.1
	sys/arch/arm/samsung/exynos_i2c.c: revision 1.12
	sys/dev/fdt/fdtvar.h: revision 1.21
	sys/arch/evbarm/sunxi/sunxi_start.S: revision 1.1
	sys/arch/arm/samsung/exynos_i2c.c: revision 1.13
	sys/dev/fdt/fdtvar.h: revision 1.22
	sys/arch/evbarm/conf/SUNXI: revision 1.10
	sys/dev/fdt/fdtvar.h: revision 1.23
	sys/arch/evbarm/conf/SUNXI: revision 1.11
	sys/dev/fdt/gpioleds.c: revision 1.1
	sys/dev/fdt/fdtvar.h: revision 1.24
	sys/arch/evbarm/conf/SUNXI: revision 1.12
	sys/arch/evbarm/conf/SUNXI: revision 1.13
	sys/arch/arm/cortex/gic.c: revision 1.30
	sys/arch/evbarm/conf/SUNXI: revision 1.14
	sys/arch/evbarm/conf/SUNXI: revision 1.15
	sys/arch/evbarm/conf/SUNXI: revision 1.16
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.1
	etc/Makefile: revision 1.430
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.2
	etc/Makefile: revision 1.431
	sys/arch/evbarm/conf/VEXPRESS_A15: revision 1.17
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_emac.c: revision 1.4
	sys/arch/arm/samsung/exynos5422_clock.c: revision 1.6
	sys/arch/arm/samsung/exynos_platform.c: revision 1.1
	sys/dev/ofw/ofw_subr.c: revision 1.29
	sys/arch/arm/samsung/exynos_platform.c: revision 1.2
	sys/arch/evbarm/conf/mk.vexpress: revision 1.3
	sys/arch/arm/samsung/exynos_platform.c: revision 1.3
	sys/arch/evbarm/conf/mk.vexpress: revision 1.4
	sys/arch/arm/samsung/exynos_platform.c: revision 1.4
	sys/arch/arm/arm/psci.h: revision 1.1
	sys/arch/arm/samsung/exynos_platform.c: revision 1.5
	sys/arch/arm/samsung/exynos_platform.c: revision 1.6
	sys/arch/evbarm/fdt/fdt_machdep.c: revision 1.10
	external/bsd/mdocml/bin/mandoc/Makefile: revision 1.12
	sys/dev/fdt/files.fdt: revision 1.17
	sys/dev/fdt/files.fdt: revision 1.18
	sys/dev/fdt/files.fdt: revision 1.19
	sys/arch/arm/samsung/exynos_sscom.c: revision 1.8
	sys/arch/arm/sunxi/sun8i_a83t_ccu.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_mmc.c: revision 1.1
	sys/arch/arm/samsung/exynos_sscom.c: revision 1.9
	sys/arch/arm/conf/files.arm: revision 1.133
	sys/arch/arm/samsung/mct_var.h: revision 1.5
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.2
	sys/arch/evbarm/conf/std.vexpress: revision 1.6
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.3
	sys/arch/arm/sunxi/sun6i_a31_gpio.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_platform.c: revision 1.4
	sys/arch/arm/sunxi/sun6i_a31_gpio.c: revision 1.2
	sys/arch/arm/sunxi/files.sunxi: revision 1.1
	sys/dev/ofw/ofw_subr.c: revision 1.30
	sys/arch/arm/sunxi/files.sunxi: revision 1.2
	sys/dev/ofw/openfirm.h: revision 1.35
	sys/arch/arm/sunxi/files.sunxi: revision 1.3
	sys/dev/ofw/openfirm.h: revision 1.36
	sys/arch/arm/sunxi/files.sunxi: revision 1.4
	sys/arch/arm/sunxi/files.sunxi: revision 1.5
	sys/arch/evbarm/exynos/exynos_machdep.c: file removal
	sys/arch/arm/sunxi/sunxi_gpio.h: revision 1.1
	sys/arch/arm/samsung/sscom.c: revision 1.9
	sys/arch/arm/sunxi/files.sunxi: revision 1.6
	sys/dev/fdt/ohci_fdt.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_usbphy.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_gpio.h: revision 1.2
	sys/arch/arm/sunxi/files.sunxi: revision 1.7
	sys/arch/arm/sunxi/sunxi_usbphy.c: revision 1.2
	sys/arch/arm/sunxi/sunxi_gpio.h: revision 1.3
	sys/arch/arm/sunxi/files.sunxi: revision 1.8
	sys/arch/arm/sunxi/sunxi_usbphy.c: revision 1.3
	sys/arch/arm/sunxi/files.sunxi: revision 1.9
	sys/arch/arm/samsung/exynos_sscom.c: revision 1.10
	sys/arch/evbarm/conf/mk.tegra: revision 1.5
	sys/arch/arm/samsung/exynos_dwcmmc.c: revision 1.4
	sys/arch/evbarm/conf/mk.tegra: revision 1.6
	sys/arch/evbarm/conf/EXYNOS: revision 1.15
	sys/arch/evbarm/conf/EXYNOS: revision 1.16
	sys/arch/evbarm/conf/EXYNOS: revision 1.17
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.1
	sys/arch/evbarm/conf/EXYNOS: revision 1.19
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.2
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.4
	sys/arch/arm/sunxi/sunxi_ccu.c: revision 1.5
	sys/arch/arm/sunxi/sunxi_emac.h: revision 1.1
	sys/arch/evbarm/conf/mk.sunxi: revision 1.1
	sys/arch/evbarm/include/bootconfig.h: revision 1.7
	sys/arch/evbarm/conf/TEGRA: revision 1.24
	sys/arch/arm/arm/psci.c: revision 1.1
	sys/dev/led.c: revision 1.1
	sys/dev/led.c: revision 1.2
	sys/arch/arm/arm/psci_arm.S: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu_gate.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu_gate.c: revision 1.2
	sys/dev/fdt/ehci_fdt.c: revision 1.1
	sys/dev/fdt/ehci_fdt.c: revision 1.2
	sys/arch/arm/sunxi/sun6i_a31_ccu.h: revision 1.1
	sys/arch/evbarm/conf/EXYNOS: revision 1.21
	sys/arch/arm/sunxi/files.sunxi: revision 1.10
	sys/arch/arm/sunxi/files.sunxi: revision 1.11
	sys/dev/fdt/fdtbus.c: revision 1.14
	sys/arch/arm/sunxi/sunxi_mmc.h: revision 1.1
	sys/arch/arm/samsung/exynos5422_dma.c: file removal
	usr.bin/config/mkmakefile.c: revision 1.69
	sys/conf/files: revision 1.1178
	sys/arch/arm/sunxi/sunxi_platform.h: revision 1.1
	sys/arch/evbarm/exynos/exynos_start.S: revision 1.4
	sys/arch/arm/samsung/exynos_pinctrl.c: revision 1.11
	sys/arch/arm/samsung/exynos_pinctrl.c: revision 1.12
	sys/arch/arm/sunxi/sunxi_rtc.c: revision 1.1
	sys/arch/arm/sunxi/sun8i_h3_ccu.h: revision 1.1
	sys/arch/arm/samsung/exynos5410_clock.c: revision 1.1
	sys/arch/arm/samsung/exynos5410_clock.c: revision 1.2
	sys/arch/evbarm/conf/SUNXI: revision 1.1
	external/bsd/elftosb/usr.sbin/elftosb/Makefile: revision 1.5
	sys/arch/evbarm/conf/SUNXI: revision 1.2
	sys/arch/arm/fdt/psci_fdt.c: revision 1.1
	sys/arch/evbarm/conf/SUNXI: revision 1.3
	sys/arch/evbarm/conf/SUNXI: revision 1.4
	sys/arch/evbarm/conf/files.exynos: revision 1.3
	sys/arch/evbarm/conf/SUNXI: revision 1.5
	sys/arch/evbarm/conf/SUNXI: revision 1.6
	sys/arch/arm/sunxi/sunxi_ccu_nm.c: revision 1.1
	sys/dev/fdt/fixedfactorclock.c: revision 1.1
	sys/dev/fdt/fdt_subr.c: revision 1.14
	sys/arch/evbarm/conf/SUNXI: revision 1.7
	sys/arch/arm/sunxi/sunxi_ccu_nm.c: revision 1.2
	sys/arch/arm/sunxi/sun8i_a83t_gpio.c: revision 1.1
	sys/dev/fdt/fdt_subr.c: revision 1.15
	sys/arch/evbarm/conf/SUNXI: revision 1.8
	sys/arch/arm/sunxi/sunxi_ccu_nm.c: revision 1.3
	sys/dev/ic/dwc_mmc_reg.h: revision 1.6
	sys/dev/fdt/fdt_subr.c: revision 1.16
	sys/arch/evbarm/conf/SUNXI: revision 1.9
	usr.bin/config/mkmakefile.c: revision 1.70
	sys/dev/fdt/fdt_phy.c: revision 1.1
	sys/arch/evbarm/conf/ODROID-XU: file removal
	sys/arch/arm/fdt/arm_fdt.c: revision 1.4
	sys/arch/arm/samsung/exynos_reg.h: revision 1.14
	sys/conf/files: revision 1.1180
	sys/arch/arm/samsung/exynos_reg.h: revision 1.15
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.2
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.3
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.4
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.5
	sys/arch/arm/sunxi/sunxi_ccu.h: revision 1.6
	sys/dev/ic/dwc_mmc_var.h: revision 1.6
	sys/arch/arm/samsung/exynos_combiner.c: revision 1.7
	sys/arch/evbarm/exynos/platform.h: revision 1.2
	sys/arch/arm/fdt/files.fdt: revision 1.12
	sys/arch/evbarm/conf/std.exynos: revision 1.2
	sys/arch/evbarm/conf/std.exynos: revision 1.3
	sys/arch/arm/rockchip/rockchip_dwcmmc.c: revision 1.6
	sys/arch/arm/sunxi/sunxi_com.c: revision 1.1
	sys/dev/led.h: revision 1.1
	sys/arch/evbarm/conf/std.exynos: revision 1.5
	sys/arch/arm/sunxi/sunxi_com.c: revision 1.2
	sys/arch/evbarm/conf/files.evbarm: revision 1.26
	usr.bin/config/defs.h: revision 1.99
	sys/arch/arm/fdt/arm_fdtvar.h: revision 1.6
	sys/arch/arm/samsung/exynos_soc.c: revision 1.32
	sys/arch/arm/sunxi/sun6i_a31_ccu.c: revision 1.1
	sys/arch/arm/sunxi/sun6i_a31_ccu.c: revision 1.2
	sys/arch/arm/samsung/mct.c: revision 1.11
	sys/arch/evbarm/conf/ODROID-U: file removal
	sys/arch/arm/samsung/mct.c: revision 1.12
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.1
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.2
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.3
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: revision 1.4
Get the EXYNOS kernel building again with recent FDT changes. Untested.
Use arm_fdt_cpu_hatch and add mmu entry for DTB
Fix exynos5 devmap, bootstrap, and implement early_putchar.
Calculate UART frequency based on bootloader config.
Fix KERNEL_BASE_PHYS (how did this ever work?)
Avoid divide-by-zero for unconfigured PLLs
Correctly initialize i2cbus attach args.
Add delay and enable mct timecounter.
Fix build w/o VERBOSE_INIT_ARM
Remove ODROID-U and ODROID-XU kernel configs as they no longer work.
- Replace CONSADDR with SSCOM2CONSOLE in example
- Remove gtmr (Exynos5422 uses mct)
- cinclude EXYNOS.local instead of TEGRA.local
Use fdtbus_intr_establish to hook in block interrupts instead of
intr_establish.
Simplify MCT; just enable it and then attach an ARMv7 generic timer.
Add support for building DTB files during kernel build, from christos.
build vexpress-v2p-ca15-tc1.dtb with the kernel
build tegra124-apalis-eval.dtb, tegra124-jetson-tk1.dtb, tegra124-nyan-big.dtb, tegra124-nyan-blaze.dtb, and tegra124-venice2.dtb with the kernel
Allow multiline makeoptions to work by quoting the newline..
Bump for quoting makeoptions with multiple lines.
un-c99
bump required config version for multiline makeoptions feature
Set DTS makeoption in kernel config
Assign DTB files to a variable so we can make -V DTB
put the dtb files with their kernels.
no need for debug printing.
Don't assume that CPU index = GIC CPU interface number. We can determine
the current CPU interface number by reading from the read-only
GICD_ITARGETSR0 through GICD_ITARGETSR7 registers.
This gets interrupts working on Exynos 5422, where the boot processor has
GIC CPU interface #4.
use -v to get the expanded variable.
Use -v to get the expanded variables.
Get baud rate from sclk_uartN instead of uartN. Print IRQ number at attach.
Fix PLL con0 register locations and add uart clocks
Disable exyortc for now, it doesn't work.
More or less a rewrite of dwc_mmc, based on awin_mmc, adding DMA support.
Update for new dwc_mmc driver
Fix dmesg
Add Exynos 5410 clock controller driver.
Fix a few typos in clock parent names for mmc clocks.
From jmcneill@
Update for new dwc_mmc driver
Implement platform reset for exynos5
Attach fdtbus to a /clocks node with no compatible string.
Add support for ARM Power State Coordination Interface (PSCI).
Support interrupt sharing.
Add initial support for Allwinner H3 SoC.
ARM Trusted Firmware reserves SGIs 8-15 for secure use. Even without ATF,
U-Boot on some platforms may use SGIs in this range for the PSCI
implementation.
Change ARMGIC_IPI_BASE to 0 from (16 - NIPI) and add a compile-time assert
to ensure that we don't end up with a conflict.
Add H3 MMC support
SD/MMC clock fixes
Add FDT PHY interface.
Add glue for generic ehci/ohci bindings.
Rename a variable, NFC.
Support parents in different clock domains.
Add USB stuff. Doesn't quite work yet.
Synopsys DesignWare APB UART needs "options COM_AWIN" for now.
Add i2c glue.
Add RTC driver.
PHY registers start at index 1. Now USB works.
Don't allow sharing edge and level triggered interrupts.
Add arm_fdt_memory_dump helper for dumping physical addresses from ddb
Print clocks with aprint_debug
Remove unused defines
Add fdtbus_get_string helper
Add of_search_compatible, which searches an array of compat_data structures
for a matching "compatible" entry matching the supplied OFW node. This
allows us to associate data with compatible strings.
Add driver for Allwinner Gigabit Ethernet (EMAC) as found in sun8i and
later family SoCs.
This is a port of my FreeBSD driver which has been confirmed to work on
Allwinner H3, A83T, and A64 SoCs.
Fix dmesg
Add basic support for Allwinner A31.
Add basic FDT GPIO support.
Fix the pinctrl api to match the spec. A pinctrl config can have more
than one xref, and an xref may have specifier data associated with it.
Enable sunxi pinctrl support
Adjust to new pinctrl API
Add P2WI/RSB driver, based on awin_p2wi.c.
Fix typo in a compat string.
Configure pin defaults at attach
No need to explicitly set pinctrl config 0 now
Fix some register definitions.
Disallow sharing between MPSAFE and non-MPSAFE handlers.
Add of_match_compat_data.
This routine searches an array of compat_data structures for a
matching "compatible" entry matching the supplied OFW node.
Add options __HAVE_CPU_UAREA_ALLOC_IDLELWP
Add support for reserved memory and MEMORY_DISK_DYNAMIC for FDT-based
kernels.
the extent code cannot use the full range of u_long,
so ignore the last page before 4GB too.  ok jmcneill@
Copy install ramdisk to releasedir. Provide both a raw ffs and
Legacy U-Boot version of it.
Replace HUMMINGBIRD_A31 with SUNXI kernel on armv7.img and include .dtb
files for SUNXI and TEGRA kernels on the MSDOS partition.
Let the controller provide a default name for pins. This makes pins easier
to locate when we have multiple banks and a variable number of pins per
bank.
Attach gpio(4) to sunxigpio
Test for kernel build directory before reading DTB list
Add support for Allwinner A83T SoC.
Add A83T files
Fixup busdma sync and locking in the RX path. Disable batch RX/TX ints.
Fix AHB2 register definition and explicitly set AHB2 parent to PLL_PERIPH0/2 -- this gives us 50% more bus bandwidth for emac
Restore TX_INTERVAL_DEFAULT to 64
Drop the sunxi_emac_rx_batch feature. It was originally designed to
reduce the amount of mutex unlock/lock cycles during the RX path on
FreeBSD and if_input, but it is not required to drop the lock before
calling if_percpuq_enqueue on NetBSD.
Write back the data value instead of mask in sunxi_gpio_write
Add a helper for exposing LED controls via sysctl.
Add GPIO LED driver.
add gpioleds
Add misc. gates and resets driver, and explicitly enable PIO clocks
at attach.
Add fdtbus_get_string_index helper.
Add driver for fixed-factor clocks.
Add ffclock
Remove the requirement for ehci to attach after companion devices.
"go for it" - skrll@
Remove the hack to find companion devices and just assume 1 companion if
ETTF flag is not set.
Remove pass numbers for ehci/ohci now that the attach order no longer matters
Use unsigned char for ctype functions, suggested by christos
Add : to body of populate_sunxi to appease bash.
port-evbarm/52388: Fix number of args to a debug printf.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jul 6 10:43:06 2017 UTC (6 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Changes since 1.58: +15 -2 lines
Diff to previous 1.58 (colored) to selected 1.61 (colored)

Let the controller provide a default name for pins. This makes pins easier
to locate when we have multiple banks and a variable number of pins per
bank.

Revision 1.58.8.2 / (download) - annotate - [select for diffs], Sat Apr 29 10:19:31 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.58.8.1: +2 -3 lines
Diff to previous 1.58.8.1 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored) to selected 1.61 (colored)

Revise previous.  Rather than explicitly including <sys/localcount.h>
in all the places where {b,c}devsw is initialized, just include it
from <sys/conf.h>.  This avoids an include-sequence dependancy.

Revision 1.58.8.1 / (download) - annotate - [select for diffs], Sat Apr 29 09:17:59 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.58: +4 -2 lines
Diff to previous 1.58 (colored) to selected 1.61 (colored)

Add DEVSW_MODULE_INIT to existing device-driver modules, so that they
willl have a localcount defined and thus be permitted to load.  Without
a localcount, loading the module will return EINVAL.

XXX the dtrace and drm stuff might need to be fed back upstream?

Revision 1.57.4.1 / (download) - annotate - [select for diffs], Sun May 29 08:44:21 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.57: +76 -3 lines
Diff to previous 1.57 (colored) to selected 1.61 (colored)

Sync with HEAD

Revision 1.58 / (download) - annotate - [select for diffs], Wed May 11 18:33:40 2016 UTC (7 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, netbsd-8-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2, netbsd-8
Changes since 1.57: +76 -3 lines
Diff to previous 1.57 (colored) to selected 1.61 (colored)

As proposed in
http://mail-index.netbsd.org/tech-kern/2016/04/28/msg020504.html
add gpio interrupt support to the gpio framework, and an implementation
for the allwinner gpio backend (tested on A20 only).
gpio(4) has new public functions:
- gpio_intr() called by backends when an interrupt condition for
  a gpio pin is present
- gpio_find_device() and gpio_get_name(), support functions for
  gpio(4) users, wich respectively returns a void * cookie for a gpio device
  given its name, and returns the name given the cookie.
- gpio_pin_ctl_intr(), which is used to configure interrupts on a gpio pin and
  registers a callback.
- gpio_pin_irqen(), which is used to mask/unmask interrupts on a pin.

Nothing in the NetBSD tree uses this yet, but I have a i2c driver
(at https://github.com/mbouyer/marine_chartplotter/tree/master/software/NetBSD/driver) which uses it.

Revision 1.50.8.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:37 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.50.8.2: +18 -5 lines
Diff to previous 1.50.8.2 (colored) to branchpoint 1.50 (colored) to selected 1.61 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:51 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.54: +7 -3 lines
Diff to previous 1.54 (colored) next main 1.55 (colored) to selected 1.61 (colored)

Rebase.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:36 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.56: +3 -2 lines
Diff to previous 1.56 (colored) to selected 1.61 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jun 29 09:32:24 2014 UTC (9 years, 9 months ago) by kardel
Branch: MAIN
Changes since 1.55: +5 -3 lines
Diff to previous 1.55 (colored) to selected 1.61 (colored)

make implementation match gpio(4) man entry. do no change configuration
if no flags are being set (allows non-destructive inquiry via GPIOSET again).

Revision 1.55 / (download) - annotate - [select for diffs], Fri May 23 13:57:04 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.54: +3 -2 lines
Diff to previous 1.54 (colored) to selected 1.61 (colored)

Add aprint_naive("\n") for boot -q

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:21 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.46.2.2: +17 -8 lines
Diff to previous 1.46.2.2 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored) to selected 1.61 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:36 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.52: +15 -6 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.61 (colored)

sync with head

Revision 1.54 / (download) - annotate - [select for diffs], Fri Apr 4 14:47:26 2014 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Branch point for: tls-earlyentropy
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored) to selected 1.61 (colored)

PR/48701: Timo Buhrmester: spurious messages while booting silently (gpio,
glxsb); use aprint_normal()
>Category:       kern
>Synopsis:       spurious messages while booting silently (gpio, glxsb)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net

Revision 1.53 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:27 2014 UTC (10 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Changes since 1.52: +13 -4 lines
Diff to previous 1.52 (colored) to selected 1.61 (colored)

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.50.8.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:17 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.50.8.1: +4 -4 lines
Diff to previous 1.50.8.1 (colored) to branchpoint 1.50 (colored) to selected 1.61 (colored)

resync from head

Revision 1.52 / (download) - annotate - [select for diffs], Mon May 20 15:46:41 2013 UTC (10 years, 11 months ago) by mbalmer
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored) to selected 1.61 (colored)

When returning the old value, use the value read from the device.

Revision 1.51.6.1 / (download) - annotate - [select for diffs], Fri May 10 01:20:04 2013 UTC (10 years, 11 months ago) by khorben
Branch: khorben-n900
Changes since 1.51: +3 -2 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.61 (colored)

Added a locator for interrupts on the GPIO bus. This allows ARM devices
(like the Nokia N900) to register interrupt handlers as specified within
their respective kernel configuration file.

XXX This change is not adequate because intr_establish() is a MD interface,
    so it will have to be re-designed before merging to the main tree.

Revision 1.50.8.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:00 2012 UTC (11 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.61 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:57 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.46.2.1: +3 -3 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored) to selected 1.61 (colored)

sync with head

Revision 1.51 / (download) - annotate - [select for diffs], Wed Oct 17 21:35:39 2012 UTC (11 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, agc-symver-base, agc-symver
Branch point for: khorben-n900
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.61 (colored)

Quiet down autoconfiguration by changing some printf() calls to
aprint_normal() calls.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:30 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.46: +12 -90 lines
Diff to previous 1.46 (colored) to selected 1.61 (colored)

sync with head

Revision 1.50 / (download) - annotate - [select for diffs], Fri Nov 25 13:49:43 2011 UTC (12 years, 4 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp
Branch point for: tls-maxphys
Changes since 1.49: +3 -4 lines
Diff to previous 1.49 (colored) to selected 1.61 (colored)

Don't ignore the gpiobus_close() return value.  Found by joerg@ using clang.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Nov 14 07:45:54 2011 UTC (12 years, 5 months ago) by mbalmer
Branch: MAIN
CVS Tags: jmcneill-audiomp3-base, jmcneill-audiomp3
Changes since 1.48: +9 -3 lines
Diff to previous 1.48 (colored) to selected 1.61 (colored)

Initialize ga.ga_dvname in gpio_search to prevent a stack fault in config_match

Revision 1.48 / (download) - annotate - [select for diffs], Sun Nov 13 14:02:01 2011 UTC (12 years, 5 months ago) by mbalmer
Branch: MAIN
Changes since 1.47: +2 -3 lines
Diff to previous 1.47 (colored) to selected 1.61 (colored)

Remove an unused variable.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Nov 13 13:20:02 2011 UTC (12 years, 5 months ago) by mbalmer
Branch: MAIN
Changes since 1.46: +4 -86 lines
Diff to previous 1.46 (colored) to selected 1.61 (colored)

Remove software pulsing in gpio(4), this functionality is now provided
by the gpiopwm(4) driver.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Oct 3 11:31:56 2011 UTC (12 years, 6 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.45: +3 -1 lines
Diff to previous 1.45 (colored) to selected 1.61 (colored)

Fix non-COMPAT_50 compilation.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 3 11:28:28 2011 UTC (12 years, 6 months ago) by mbalmer
Branch: MAIN
Changes since 1.44: +14 -2 lines
Diff to previous 1.44 (colored) to selected 1.61 (colored)

Unbreak and move the list of child devices to COMPAT_50.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Oct 3 11:16:47 2011 UTC (12 years, 6 months ago) by mbalmer
Branch: MAIN
Changes since 1.43: +42 -43 lines
Diff to previous 1.43 (colored) to selected 1.61 (colored)

Remove the GPIODETACH gpio(4) ioctl (it is still available in COMPAT_50) and
the 'detach' command line option from gpioctl(8).  Drivers that are
attached to gpio pins can be detached using the drvctl(8) command.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Oct 3 08:23:58 2011 UTC (12 years, 6 months ago) by mbalmer
Branch: MAIN
Changes since 1.42: +19 -19 lines
Diff to previous 1.42 (colored) to selected 1.61 (colored)

Don't cast void pointers.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Oct 2 09:33:19 2011 UTC (12 years, 6 months ago) by mbalmer
Branch: MAIN
Changes since 1.41: +35 -7 lines
Diff to previous 1.41 (colored) to selected 1.61 (colored)

Add a ga_flags field to the gpio_attach structure to hand driver
specific flags to drivers being attached at gpio pins.  gpioiic(4)
uses this to reverse the SDA/SCL signal order.  gpioctl(8) accepts
the flag values as optional argument to the attach command.
While here, make sure we retain backwards compatability and wrap compat
code in #ifdef COMPAT_50/#endif.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Sep 2 06:50:20 2011 UTC (12 years, 7 months ago) by mbalmer
Branch: MAIN
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored) to selected 1.61 (colored)

Make sure error is not used unitialized when sc->sc_attach_busy is 0.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Aug 31 12:20:35 2011 UTC (12 years, 7 months ago) by mbalmer
Branch: MAIN
Changes since 1.39: +0 -1 lines
Diff to previous 1.39 (colored) to selected 1.61 (colored)

Remove what I committed accidentally...

Revision 1.39 / (download) - annotate - [select for diffs], Wed Aug 31 12:07:26 2011 UTC (12 years, 7 months ago) by mbalmer
Branch: MAIN
Changes since 1.38: +84 -13 lines
Diff to previous 1.38 (colored) to selected 1.61 (colored)

gpio(4) keeps track of child devices attached using the GPIOATTACH ioctl(),
so remove those references and free the memory in gpio_childdetached().
Protect access to the list of child devices with a kcondvar.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Aug 30 07:22:11 2011 UTC (12 years, 7 months ago) by mbalmer
Branch: MAIN
Changes since 1.37: +2 -4 lines
Diff to previous 1.37 (colored) to selected 1.61 (colored)

Unconditionally include <sys/modules.h>.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Aug 29 15:14:04 2011 UTC (12 years, 7 months ago) by mbalmer
Branch: MAIN
Changes since 1.36: +10 -5 lines
Diff to previous 1.36 (colored) to selected 1.61 (colored)

Register as built-in module when compiled wo/ _MODULE.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Aug 28 07:48:50 2011 UTC (12 years, 7 months ago) by mbalmer
Branch: MAIN
Changes since 1.35: +175 -56 lines
Diff to previous 1.35 (colored) to selected 1.61 (colored)

Add a new ioctl, GPIOPULSE to gpio(4) to allow for pulsing a pin.
If a pin can pulse in hardware, that will be used, else it will
be pulsed in software.  There is no way yet to set the pulse frequency
for pins that pulse in hardware.  While here, make the code mpsafe and
allow more than one thread in the driver (access to ioctl is serialized).

Revision 1.35 / (download) - annotate - [select for diffs], Fri Aug 12 08:00:52 2011 UTC (12 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.34: +70 -27 lines
Diff to previous 1.34 (colored) to selected 1.61 (colored)

gpio(4) and gpiosim(4) can now be built and used as modules.  While here,
make some functions static.

Revision 1.33.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:58 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.61 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:14 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.32.2.1: +3 -3 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored) to selected 1.61 (colored)

sync with head

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 9 14:46:06 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored) to selected 1.61 (colored)

Annotate that gpiobus_close's return value is undesired here

Revision 1.15.4.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:21 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15.4.5: +3 -3 lines
Diff to previous 1.15.4.5 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:20 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) to selected 1.61 (colored)

sync with head

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:11 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.31: +5 -5 lines
Diff to previous 1.31 (colored) next main 1.32 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Apr 25 11:23:34 2010 UTC (13 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) to selected 1.61 (colored)

console spam

Revision 1.15.4.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:26 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15.4.4: +32 -27 lines
Diff to previous 1.15.4.4 (colored) to branchpoint 1.15 (colored) to selected 1.61 (colored)

sync with head

Revision 1.32 / (download) - annotate - [select for diffs], Wed Feb 24 22:37:57 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored) to selected 1.61 (colored)

A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jan 24 12:25:20 2010 UTC (14 years, 2 months ago) by mbalmer
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.30: +4 -6 lines
Diff to previous 1.30 (colored) to selected 1.61 (colored)

Unfold, bump copyright.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jan 8 19:48:18 2010 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored) to selected 1.61 (colored)

Expand PMF_FN_* macros.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Nov 5 18:20:40 2009 UTC (14 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.28: +28 -21 lines
Diff to previous 1.28 (colored) to selected 1.61 (colored)

Delete the useless activation hook.  Add a child-detached hook and
a rescan hook.  Detach children before detaching self.

Revision 1.15.4.4 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:46 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15.4.3: +47 -14 lines
Diff to previous 1.15.4.3 (colored) to branchpoint 1.15 (colored) to selected 1.61 (colored)

sync with head

Revision 1.28 / (download) - annotate - [select for diffs], Sun Aug 23 12:08:56 2009 UTC (14 years, 7 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.27: +17 -13 lines
Diff to previous 1.27 (colored) to selected 1.61 (colored)

Prevent the creation of duplicate pin names in GPIOSET.
Problem noticed by rmind a while ago.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Aug 21 12:53:42 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.26: +32 -3 lines
Diff to previous 1.26 (colored) to selected 1.61 (colored)

Before trying to attach a child device driver, make sure the GPIO pins can
be mapped.  This prevents drivers from later failing in the attach routine.
Problem found by me, solution suggested by jmcneill.

Revision 1.15.4.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:05 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15.4.2: +393 -62 lines
Diff to previous 1.15.4.2 (colored) to branchpoint 1.15 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Aug 17 12:44:44 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7
Changes since 1.25: +7 -9 lines
Diff to previous 1.25 (colored) to selected 1.61 (colored)

unfold short lines, fold long line.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Aug 7 08:05:48 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.24: +4 -3 lines
Diff to previous 1.24 (colored) to selected 1.61 (colored)

Fold long line.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Aug 3 12:43:56 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.23: +14 -8 lines
Diff to previous 1.23 (colored) to selected 1.61 (colored)

Be more careful when attaching drivers at runtime, call the drivers match
routine before attaching the device.  Prevents non-working driver instances
from being created.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jul 26 14:06:05 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.22: +5 -4 lines
Diff to previous 1.22 (colored) to selected 1.61 (colored)

Fold long line, add comment to fix possible creation of duplicates.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jul 25 19:18:01 2009 UTC (14 years, 8 months ago) by cegger
Branch: MAIN
Changes since 1.21: +10 -10 lines
Diff to previous 1.21 (colored) to selected 1.61 (colored)

use device_xname

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 25 19:01:55 2009 UTC (14 years, 8 months ago) by cegger
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) to selected 1.61 (colored)

make this build w/ GPIO_DEBUG

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jul 25 16:41:58 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.61 (colored)

Change one more struct device * to device_t, noticed by cegger.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jul 25 16:17:10 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.18: +381 -56 lines
Diff to previous 1.18 (colored) to selected 1.61 (colored)

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.

Revision 1.17.14.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:20 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.17: +5 -4 lines
Diff to previous 1.17 (colored) next main 1.18 (colored) to selected 1.61 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.15.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:38 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15.4.1: +5 -4 lines
Diff to previous 1.15.4.1 (colored) to branchpoint 1.15 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.17.8.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:22 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.17: +5 -4 lines
Diff to previous 1.17 (colored) next main 1.18 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Apr 2 00:09:33 2009 UTC (15 years ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.17: +5 -4 lines
Diff to previous 1.17 (colored) to selected 1.61 (colored)

During shutdown, detach devices in an orderly fashion.

Call the detach routine for every device in the device tree, starting
with the leaves and moving toward the root, expecting that each
(pseudo-)device driver will use the opportunity to gracefully commit
outstandings transactions to the underlying (pseudo-)device and to
relinquish control of the hardware to the system BIOS.

Detaching devices is not suitable for every shutdown: in an emergency,
or if the system state is inconsistent, we should resort to a fast,
simple shutdown that uses only the pmf(9) shutdown hooks and the
(deprecated) shutdownhooks.  For now, if the flag RB_NOSYNC is set in
boothowto, opt for the fast, simple shutdown.

Add a device flag, DVF_DETACH_SHUTDOWN, that indicates by its presence
that it is safe to detach a device during shutdown.  Introduce macros
CFATTACH_DECL3() and CFATTACH_DECL3_NEW() for creating autoconf
attachments with default device flags.  Add DVF_DETACH_SHUTDOWN
to configuration attachments for atabus(4), atw(4) at cardbus(4),
cardbus(4), cardslot(4), com(4) at isa(4), elanpar(4), elanpex(4),
elansc(4), gpio(4), npx(4) at isa(4), nsphyter(4), pci(4), pcib(4),
pcmcia(4), ppb(4), sip(4), wd(4), and wdc(4) at isa(4).

Add a device-detachment "reason" flag, DETACH_SHUTDOWN, that tells the
autoconf code and a device driver that the reason for detachment is
system shutdown.

Add a sysctl, kern.detachall, that tells the system to try to detach
every device at shutdown, regardless of any device's DVF_DETACH_SHUTDOWN
flag.  The default for kern.detachall is 0.  SET IT TO 1, PLEASE, TO
HELP TEST AND DEBUG DEVICE DETACHMENT AT SHUTDOWN.

This is a work in progress.  In future work, I aim to treat
pseudo-devices more thoroughly, and to gracefully tear down a stack of
(pseudo-)disk drivers and filesystems, including cgd(4), vnd(4), and
raid(4) instances at shutdown.

Also commit some changes that are not easily untangled from the rest:

(1) begin to simplify device_t locking: rename struct pmf_private to
device_lock, and incorporate device_lock into struct device.

(2) #include <sys/device.h> in sys/pmf.h in order to get some
definitions that it needs.  Stop unnecessarily #including <sys/device.h>
in sys/arch/x86/include/pic.h to keep the amd64, xen, and i386 releases
building.

Revision 1.14.6.4 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:16 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.14.6.3: +19 -12 lines
Diff to previous 1.14.6.3 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:38 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.15: +19 -12 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:23:57 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15: +19 -12 lines
Diff to previous 1.15 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.17 / (download) - annotate - [select for diffs], Thu May 1 22:00:44 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, jym-xensuspend
Changes since 1.16: +15 -14 lines
Diff to previous 1.16 (colored) to selected 1.61 (colored)

device_t / softc split. From Hans Rosenfeld.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 29 14:07:36 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.15: +8 -2 lines
Diff to previous 1.15 (colored) to selected 1.61 (colored)

gpio(4): Extend with open/close to request/release the ppbus(4) on open/close.
ppbus(4): Extend to attach on gpiobus.
From Hans Rosenfeld from tech-kern:
http://mail-index.netbsd.org/tech-kern/2008/04/28/msg001168.html
Hint: Hans sent me this diff which differs in the one from tech-kern in:
- 2-clause license
- sprinkled some consts

Revision 1.14.6.3 / (download) - annotate - [select for diffs], Sun Apr 6 09:58:50 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.14.6.2: +3 -3 lines
Diff to previous 1.14.6.2 (colored) to branchpoint 1.14 (colored) to selected 1.61 (colored)

- after some discussion with agc@ i agreed it would be a good idea to move
  device_unregister_* to device_deregister_* to be more like the pmf(9)
  functions, especially since a lot of the time the function calls are next
  to each other.

- add device_register_name() support for dk(4).

Revision 1.14.6.2 / (download) - annotate - [select for diffs], Sat Apr 5 23:33:21 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.14.6.1: +8 -3 lines
Diff to previous 1.14.6.1 (colored) to branchpoint 1.14 (colored) to selected 1.61 (colored)

- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
  as these are always needed.

- convert many, many drivers over to the New Devfs World Order. For a
  list of device drivers yet to be converted see,
  http://www.netbsd.org/~mjf/devfs-todo.html.

- add a new device_unregister_all(device_t) function to remove all device
  names associated with a device_t, which saves us having to construct
  device names when the driver is detached.

- add a DEV_AUDIO type for devices.

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:39 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:15 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.12.16.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:36 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.12.16.1: +14 -15 lines
Diff to previous 1.12.16.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored) to selected 1.61 (colored)

sync with HEAD

Revision 1.8.6.6 / (download) - annotate - [select for diffs], Mon Mar 17 09:14:41 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.8.6.5: +4 -4 lines
Diff to previous 1.8.6.5 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 29 06:38:59 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored) to selected 1.61 (colored)

Use PMF_FN_ARGS, PMF_FN_PROTO.

Revision 1.12.22.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:37 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.12: +13 -13 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.8.6.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:42:48 2008 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.8.6.4: +34 -14 lines
Diff to previous 1.8.6.4 (colored) to branchpoint 1.8 (colored) to selected 1.61 (colored)

sync with head

Revision 1.12.28.2 / (download) - annotate - [select for diffs], Thu Jan 10 23:44:15 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.12.28.1: +10 -11 lines
Diff to previous 1.12.28.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored) to selected 1.61 (colored)

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jan 10 07:49:04 2008 UTC (16 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.13: +12 -13 lines
Diff to previous 1.13 (colored) to selected 1.61 (colored)

Use device_t.

Revision 1.12.16.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:52:37 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.12: +24 -3 lines
Diff to previous 1.12 (colored) to selected 1.61 (colored)

sync with HEAD

Revision 1.12.28.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:54:04 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.12: +24 -3 lines
Diff to previous 1.12 (colored) to selected 1.61 (colored)

Sync with HEAD

Revision 1.12.24.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:46:10 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.12: +24 -3 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 14 01:49:23 2007 UTC (16 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base
Changes since 1.12: +24 -3 lines
Diff to previous 1.12 (colored) to selected 1.61 (colored)

Bug fix: record the new state (high/low) set by gpio_pin_write().
I don't know why we gpio(4) didn't do that before, but it seems
harmless.

Add naive power handling: when a gpio(4) instance is resumed, write
each pin's configuration flags and output state from the softc to
the hardware using gpiobus_pin_ctl() and gpiobus_pin_write().
While suspended, fail every ioctl() except for GPIOINFO with EBUSY.

Revision 1.8.6.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:33:59 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.8.6.3: +3 -3 lines
Diff to previous 1.8.6.3 (colored) to branchpoint 1.8 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:53:21 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.61 (colored)

Sync with HEAD.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:46 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, matt-armv6, bouyer-xeni386
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.61 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.8.6.3 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:00 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.8.6.2: +12 -8 lines
Diff to previous 1.8.6.2 (colored) to branchpoint 1.8 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.9.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:03 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.9.4.1: +15 -15 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:07 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.9: +11 -7 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:50 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.10: +15 -15 lines
Diff to previous 1.10 (colored) to selected 1.61 (colored)

__unused removal on arguments; approved by core.

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:35 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.9: +15 -11 lines
Diff to previous 1.9 (colored) to selected 1.61 (colored)

sync with head

Revision 1.10 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:57 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.9: +15 -11 lines
Diff to previous 1.9 (colored) to selected 1.61 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:49:50 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.4: +100 -11 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.61 (colored)

sync with head

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:23:56 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.5.2.2: +3 -3 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Aug 30 02:09:40 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) to selected 1.61 (colored)

add missing initializers

Revision 1.8.6.2 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:46 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.8.6.1: +375 -0 lines
Diff to previous 1.8.6.1 (colored) to branchpoint 1.8 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.5.6.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:07 2006 UTC (17 years, 11 months ago) by tron
Branch: peter-altq
Changes since 1.5.6.1: +1 -1 lines
Diff to previous 1.5.6.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored) to selected 1.61 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.4.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:52 2006 UTC (18 years ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.4: +99 -10 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.61 (colored)

Sync with head.

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:24:34 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.5: +6 -6 lines
Diff to previous 1.5 (colored) next main 1.6 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Tue Apr 11 11:55:13 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.5.2.1: +3 -3 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) to selected 1.61 (colored)

sync with head

Revision 1.8.6.1, Sat Apr 8 22:33:36 2006 UTC (18 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.8: +0 -375 lines
FILE REMOVED

file gpio.c was added on branch yamt-lazymbuf on 2006-06-21 15:02:46 +0000

Revision 1.8 / (download) - annotate - [select for diffs], Sat Apr 8 22:33:36 2006 UTC (18 years ago) by uwe
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-lazymbuf
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.61 (colored)

Whitespace nit.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:06:55 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.5.6.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:19 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored) to selected 1.61 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Mar 29 06:34:28 2006 UTC (18 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base3
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored) to selected 1.61 (colored)

Use device_private().

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:30 2006 UTC (18 years ago) by thorpej
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored) to selected 1.61 (colored)

Use device_unit().

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:12 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.4: +96 -7 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.61 (colored)

sync with head.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 20 03:18:36 2006 UTC (18 years, 2 months ago) by riz
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.4: +96 -7 lines
Diff to previous 1.4 (colored) to selected 1.61 (colored)

Flesh out the framework for attaching drivers to the GPIO pins.
From OpenBSD, Alexander Yurchenko <grange@openbsd

Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 11 12:21:22 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored) to selected 1.61 (colored)

merge ktrace-lwp.

Revision 1.3.6.2 / (download) - annotate - [select for diffs], Thu Nov 10 14:04:00 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.3.6.1: +286 -0 lines
Diff to previous 1.3.6.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.61 (colored)

Sync with HEAD. Here we go again...

Revision 1.3.6.1, Tue Oct 11 16:01:03 2005 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.3: +0 -286 lines
FILE REMOVED

file gpio.c was added on branch ktrace-lwp on 2005-11-10 14:04:00 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 11 16:01:03 2005 UTC (18 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: ktrace-lwp
Changes since 1.2: +9 -10 lines
Diff to previous 1.2 (colored) to selected 1.61 (colored)

-kill gba_name in attach arg
-use constants from locators.h

Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 11 09:56:51 2005 UTC (18 years, 6 months ago) by cube
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored) to selected 1.61 (colored)

Add __KERNEL_RCSID.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Sep 27 02:34:02 2005 UTC (18 years, 6 months ago) by jmcneill
Branch: MAIN
Diff to selected 1.61 (colored)

Import general purpose I/O framework from OpenBSD.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>