The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23.6.1 / (download) - annotate - [select for diffs], Sun Nov 26 12:13:19 2023 UTC (4 months, 2 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.23: +281 -3 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Pull up following revision(s) (requested by brad in ticket #463):
	share/man/man4/gpiosim.4: revision 1.7
	sys/dev/gpio/gpiosim.c: revision 1.25
Simple simulated interrupts for the simulated GPIO device gpiosim(4)

Revision 1.26 / (download) - annotate - [select for diffs], Fri Nov 24 15:13:35 2023 UTC (4 months, 2 weeks ago) by brad
Branch: MAIN
CVS Tags: HEAD
Changes since 1.25: +19 -11 lines
Diff to previous 1.25 (colored)



Style changes.  No functional change.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Nov 8 23:46:54 2023 UTC (5 months ago) by brad
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.24: +281 -3 lines
Diff to previous 1.24 (colored)



Simple simulated interrupts for the simulated GPIO device gpiosim(4)

Revision 1.24 / (download) - annotate - [select for diffs], Wed May 10 00:09:39 2023 UTC (11 months ago) by riastradh
Branch: MAIN
Changes since 1.23: +5 -3 lines
Diff to previous 1.23 (colored)

gpiosim(4): Use config_detach_children.

Revision 1.23 / (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, netbsd-10-base, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Merge thorpej-cfargs2.

Revision 1.22.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.22: +2 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Adapt to CFARGS().

Revision 1.22 / (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.21: +2 -2 lines
Diff to previous 1.21 (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.21.20.1 / (download) - annotate - [select for diffs], Tue Mar 23 07:14:52 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.

Revision 1.14.2.3 / (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.14.2.2: +9 -8 lines
Diff to previous 1.14.2.2 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

update from HEAD

Revision 1.21 / (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, thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-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, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base, isaki-audio2, 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.20: +1 -3 lines
Diff to previous 1.20 (colored)

Kill some more extern struct cfdriver declarations.

Down with externs in .c!

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Wed May 17 01:44:17 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.20: +7 -3 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.

Adapt callers to expect the reference to exist, and to ensure that the
reference is released.

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:45 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with HEAD

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:27 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with HEAD

Revision 1.16.6.3 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:27 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.16.6.2: +3 -2 lines
Diff to previous 1.16.6.2 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jan 20 12:25:07 2017 UTC (7 years, 2 months ago) by maya
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

Check pmf_device_register return value. NFC
Appeases static analyzers.

Revision 1.16.6.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:40 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.16.6.1: +3 -3 lines
Diff to previous 1.16.6.1 (colored) to branchpoint 1.16 (colored)

Sync with HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jul 14 04:00:45 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

- Use aprint*() instead of printf() in xxx_attach().
- Add missing aprint_naive("\n");
- KNF

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:57 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.16: +6 -4 lines
Diff to previous 1.16 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Thu Aug 20 14:40:18 2015 UTC (8 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 20 12:09:22 2015 UTC (8 years, 7 months ago) by uebayasi
Branch: MAIN
Changes since 1.16: +5 -3 lines
Diff to previous 1.16 (colored)

Use needs-count for # of pseudo instances; suggested by cube@.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:37 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.14.2.1: +0 -5 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:21 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.13.2.1: +22 -27 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (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.15.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:36 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.15: +1 -6 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

sync with head

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:09 2014 UTC (10 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, 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.15: +1 -6 lines
Diff to previous 1.15 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.14.2.1 / (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.14: +22 -22 lines
Diff to previous 1.14 (colored)

resync from head

Revision 1.15 / (download) - annotate - [select for diffs], Mon May 20 15:48:25 2013 UTC (10 years, 10 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.14: +22 -22 lines
Diff to previous 1.14 (colored)

Make the gpiosim(4) device a 64 bit wide GPIO.

Revision 1.13.2.1 / (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.13: +2 -2 lines
Diff to previous 1.13 (colored)

sync with head

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jun 2 21:36:44 2012 UTC (11 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Add some pre-processor magic to verify that the type of the data item
  passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Aug 30 07:22:12 2011 UTC (12 years, 7 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.12: +1 -3 lines
Diff to previous 1.12 (colored)

Unconditionally include <sys/modules.h>.

Revision 1.12 / (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.11: +10 -5 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Sun Aug 28 11:36:17 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

build with WARNS=3

Revision 1.10 / (download) - annotate - [select for diffs], Fri Aug 26 15:00:07 2011 UTC (12 years, 7 months ago) by mbalmer
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

u_int32_t -> uin32_t.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 14 18:49:17 2011 UTC (12 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.8: +3 -4 lines
Diff to previous 1.8 (colored)

fix indents

Revision 1.8 / (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.7: +98 -19 lines
Diff to previous 1.7 (colored)

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

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:27 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6.2.2: +2 -15 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

sync with head

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 6 22:33:44 2009 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.6: +2 -15 lines
Diff to previous 1.6 (colored)

Delete unnecessary device-activation hooks.  Simplify the rest.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:06 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6.2.1: +230 -0 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

sync with head.

Revision 1.6.2.1, Fri Aug 7 08:08:18 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6: +0 -230 lines
FILE REMOVED

file gpiosim.c was added on branch yamt-nfs-mp on 2009-08-19 18:47:05 +0000

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 7 08:08:18 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, jym-xensuspend-nbase
Branch point for: yamt-nfs-mp
Changes since 1.5: +18 -16 lines
Diff to previous 1.5 (colored)

Properly teardown the sysctl node and detach child driver if gpiosim gets
detached itself (e.g. when the 'drvctl -d gpiosimX' command is entered).

Revision 1.5 / (download) - annotate - [select for diffs], Thu Aug 6 13:16:49 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

For the sake of correctness, call pmf_device_deregister() in the detach
function.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 28 15:28:24 2009 UTC (14 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

add dummy pmf registration to allow suspend

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jul 27 17:40:58 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.2: +25 -2 lines
Diff to previous 1.2 (colored)

Do not attach gpiosim(4) at root, but make it a pseudo device.
With help from Matthias Drochner, thanks!

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jul 26 13:45:20 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN
Changes since 1.1: +56 -25 lines
Diff to previous 1.1 (colored)

Simplify the use _a lot_ by hooking this to sysctl instead of bio(4).
When it attaches, it creates a hw.gpiosimN.value sysctl node which can
then be used to manipulate the simulated device state.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 25 16:17:10 2009 UTC (14 years, 8 months ago) by mbalmer
Branch: MAIN

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.

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>