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


Keyword substitution: kv
Default branch: MAIN


Revision 1.23.6.1: download - view: text, markup, annotated - select for diffs
Sun Nov 26 12:13:19 2023 UTC (12 months ago) by bouyer
Branches: 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
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +281 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Nov 24 15:13:35 2023 UTC (12 months, 1 week ago) by brad
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +19 -11 lines


Style changes.  No functional change.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Nov 8 23:46:54 2023 UTC (12 months, 3 weeks ago) by brad
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +281 -3 lines


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

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed May 10 00:09:39 2023 UTC (18 months, 3 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -3 lines
gpiosim(4): Use config_detach_children.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:10 2021 UTC (3 years, 3 months ago) by thorpej
Branches: 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
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Merge thorpej-cfargs2.

Revision 1.22.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 18:33:11 2021 UTC (3 years, 3 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +2 -2 lines
Adapt to CFARGS().

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:54 2021 UTC (3 years, 7 months ago) by thorpej
Branches: 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
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Mar 23 07:14:52 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:01 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.14.2.2: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.2: +9 -8 lines
update from HEAD

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Oct 28 04:53:56 2017 UTC (7 years, 1 month ago) by riastradh
Branches: 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-4-RELEASE, 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
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +1 -3 lines
Kill some more extern struct cfdriver declarations.

Down with externs in .c!

Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Wed May 17 01:44:17 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +7 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:45 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +3 -2 lines
Sync with HEAD

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:27 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +3 -2 lines
Sync with HEAD

Revision 1.16.6.3: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:27 2017 UTC (7 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.16.6.2: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.6.2: +3 -2 lines
Sync with HEAD

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Jan 20 12:25:07 2017 UTC (7 years, 10 months ago) by maya
Branches: 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-3-RELEASE, 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
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2 lines
Check pmf_device_register return value. NFC
Appeases static analyzers.

Revision 1.16.6.2: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:40 2016 UTC (8 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.16.6.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.6.1: +3 -3 lines
Sync with HEAD

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Jul 14 04:00:45 2016 UTC (8 years, 4 months ago) by msaitoh
Branches: 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
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
- Use aprint*() instead of printf() in xxx_attach().
- Add missing aprint_naive("\n");
- KNF

Revision 1.16.6.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:57 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -4 lines
Sync with HEAD

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Aug 20 14:40:18 2015 UTC (9 years, 3 months ago) by christos
Branches: 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
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Aug 20 12:09:22 2015 UTC (9 years, 3 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -3 lines
Use needs-count for # of pseudo instances; suggested by cube@.

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:37 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.2.1: +0 -5 lines
Rebase to HEAD as of a few days ago.

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:21 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.1: +22 -27 lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 17:45:36 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +1 -6 lines
sync with head

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:09 2014 UTC (10 years, 9 months ago) by pooka
Branches: 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -6 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:17 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +22 -22 lines
resync from head

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon May 20 15:48:25 2013 UTC (11 years, 6 months ago) by mbalmer
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +22 -22 lines
Make the gpiosim(4) device a 64 bit wide GPIO.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:57 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
sync with head

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Jun 2 21:36:44 2012 UTC (12 years, 6 months ago) by dsl
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 30 07:22:12 2011 UTC (13 years, 3 months ago) by mbalmer
Branches: 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
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -3 lines
Unconditionally include <sys/modules.h>.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Aug 29 15:14:04 2011 UTC (13 years, 3 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +10 -5 lines
Register as built-in module when compiled wo/ _MODULE.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Aug 28 11:36:17 2011 UTC (13 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
build with WARNS=3

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Aug 26 15:00:07 2011 UTC (13 years, 3 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -2 lines
u_int32_t -> uin32_t.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Aug 14 18:49:17 2011 UTC (13 years, 3 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -4 lines
fix indents

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Aug 12 08:00:52 2011 UTC (13 years, 3 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +98 -19 lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:27 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6.2.2: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.2: +2 -15 lines
sync with head

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Dec 6 22:33:44 2009 UTC (14 years, 11 months ago) by dyoung
Branches: 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
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -15 lines
Delete unnecessary device-activation hooks.  Simplify the rest.

Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:47:06 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored
Changes since revision 1.6.2.1: +230 -0 lines
sync with head.

Revision 1.6.2.1
Fri Aug 7 08:08:18 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.6: +0 -230 lines
file gpiosim.c was added on branch yamt-nfs-mp on 2009-08-19 18:47:05 +0000

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Aug 7 08:08:18 2009 UTC (15 years, 3 months ago) by mbalmer
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, jym-xensuspend-nbase
Branch point for: yamt-nfs-mp
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +18 -16 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 6 13:16:49 2009 UTC (15 years, 3 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -1 lines
For the sake of correctness, call pmf_device_deregister() in the detach
function.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jul 28 15:28:24 2009 UTC (15 years, 4 months ago) by drochner
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -1 lines
add dummy pmf registration to allow suspend

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Jul 27 17:40:58 2009 UTC (15 years, 4 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +25 -2 lines
Do not attach gpiosim(4) at root, but make it a pseudo device.
With help from Matthias Drochner, thanks!

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jul 26 13:45:20 2009 UTC (15 years, 4 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +56 -25 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 25 16:17:10 2009 UTC (15 years, 4 months ago) by mbalmer
Branches: 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.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>