History log of /src/sys/dev/radio.c |
Revision | | Date | Author | Comments |
1.31 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.30 |
| 24-Apr-2021 |
thorpej | branches: 1.30.8; 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?).
|
1.29 |
| 05-Feb-2018 |
mrg | branches: 1.29.20; fixes for GCC 6.4:
- fix an indentation issue in radioioctl(). - fix an indentation issue in mpt_run_xfer(). - grep's printline() has some {} placement issues.
|
1.28 |
| 28-Oct-2017 |
riastradh | Kill some more extern cfdriver xyz_cd in favour of #include "ioconf.h".
|
1.27 |
| 25-Jul-2014 |
dholland | Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.26 |
| 16-Mar-2014 |
dholland | branches: 1.26.2; 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.
|
1.25 |
| 23-Feb-2011 |
dyoung | branches: 1.25.4; 1.25.14; 1.25.18; Correct device_t/softc split and, while I am here, delete commented-out code. Patrick Welche says that this patch fixes the problem that he reported on current-users@.
BTW, sc_dev is initialized in radioattach(), but I do not see where it is used.
|
1.24 |
| 21-Jan-2010 |
dyoung | branches: 1.24.4; 1.24.6; 1.24.8; All that the activation hook radioactivate() did was to change sc_dying, and nothing in the driver examines sc_dying, so get rid of radioactivate() and sc_dying.
|
1.23 |
| 06-Dec-2009 |
dyoung | Simplify these device-activation hooks using the following semantic patch.
XXX sc_dying must die.
@@ type device_t;
identifier act, midi_softc, midiactivate, sc, self; @@
int midiactivate(device_t self, enum devact act) { ( struct midi_softc *sc = device_private(self); | - struct midi_softc *sc; + struct midi_softc *sc = device_private(self); ... - sc = device_private(self); ) ... switch (act) { - case DVACT_ACTIVATE: - return (EOPNOTSUPP); - case DVACT_DEACTIVATE: ( sc->dying | sc->sc_dying ) = ( 1 | true ) ; - break; + return 0; + default: + return EOPNOTSUPP; } - return (0); }
|
1.22 |
| 09-Jul-2008 |
joerg | - use aprint in attach - split device/softc - move softc definition into source to make explicit that it is local - reduce namespace pollution
|
1.21 |
| 08-Jun-2008 |
tsutsui | branches: 1.21.2; 1.21.4; Use device_lookup_private() rather than using cd_devs[] directly to get softc.
XXX maybe we should change a type of cd_devs[] in struct cfdriver from (void *) to device_t.
|
1.20 |
| 04-Mar-2007 |
christos | branches: 1.20.36; 1.20.38; 1.20.40; 1.20.42; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.19 |
| 16-Nov-2006 |
christos | branches: 1.19.4; __unused removal on arguments; approved by core.
|
1.18 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.17 |
| 03-Sep-2006 |
christos | branches: 1.17.2; 1.17.4; add missing initializer
|
1.16 |
| 28-Mar-2006 |
thorpej | Use device_unit().
|
1.15 |
| 11-Dec-2005 |
christos | branches: 1.15.4; 1.15.6; 1.15.8; 1.15.10; 1.15.12; merge ktrace-lwp.
|
1.14 |
| 27-Feb-2005 |
perry | branches: 1.14.4; nuke trailing whitespace
|
1.13 |
| 29-Oct-2004 |
yamt | branches: 1.13.4; 1.13.6; constify audio_hw_if, midi_hw_if, and radio_hw_if.
|
1.12 |
| 19-Oct-2003 |
simonb | Remove unreachable break after return and goto statements.
|
1.11 |
| 29-Jun-2003 |
fvdl | branches: 1.11.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.10 |
| 28-Jun-2003 |
darrenr | Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
|
1.9 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() in cfprint routines.
|
1.8 |
| 23-Oct-2002 |
jdolecek | merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
|
1.7 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
1.6 |
| 30-Sep-2002 |
thorpej | Use CFATTACH_DECL().
|
1.5 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.4 |
| 06-Sep-2002 |
gehenna | Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch> by using this grammer.
- Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables.
- The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
|
1.3 |
| 05-Jan-2002 |
augustss | branches: 1.3.2; 1.3.4; 1.3.12; Initialize _ca struct right.
|
1.2 |
| 02-Jan-2002 |
augustss | Support detach.
|
1.1 |
| 01-Jan-2002 |
augustss | Add support for radio cards. Written by Maxim Tsyplakov and Vladimir Popov for OpenBSD, from where it was imported.
|
1.3.12.1 |
| 16-May-2002 |
gehenna | Add the character device switch.
|
1.3.4.3 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.3.4.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.3.4.1 |
| 05-Jan-2002 |
thorpej | file radio.c was added on branch kqueue on 2002-01-10 19:52:49 +0000
|
1.3.2.8 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.3.2.7 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.3.2.6 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.3.2.5 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.3.2.4 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.3.2.3 |
| 11-Jan-2002 |
nathanw | More catchup.
|
1.3.2.2 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.3.2.1 |
| 05-Jan-2002 |
nathanw | file radio.c was added on branch nathanw_sa on 2002-01-08 00:29:19 +0000
|
1.11.2.6 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.11.2.5 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.11.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.11.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.11.2.2 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.11.2.1 |
| 02-Jul-2003 |
darrenr | Apply the aborted ktrace-lwp changes to a specific branch. This is just for others to review, I'm concerned that patch fuziness may have resulted in some errant code being generated but I'll look at that later by comparing the diff from the base to the branch with the file I attempt to apply to it. This will, at the very least, put the changes in a better context for others to review them and attempt to tinker with removing passing of 'struct lwp' through the kernel.
|
1.13.6.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.13.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.14.4.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.14.4.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.14.4.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.15.12.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.15.10.1 |
| 19-Apr-2006 |
elad | sync with head.
|
1.15.8.2 |
| 03-Sep-2006 |
yamt | sync with head.
|
1.15.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.15.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.15.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.17.4.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.17.4.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.17.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.19.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.20.42.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.20.42.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.20.40.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.20.40.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.20.38.1 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.20.36.4 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.20.36.3 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.20.36.2 |
| 06-Apr-2008 |
mjf | - 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).
|
1.20.36.1 |
| 05-Apr-2008 |
mjf | - 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.
|
1.21.4.1 |
| 19-Oct-2008 |
haad | Sync with HEAD.
|
1.21.2.1 |
| 18-Jul-2008 |
simonb | Sync with head.
|
1.24.8.1 |
| 05-Mar-2011 |
bouyer | Sync with HEAD
|
1.24.6.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.24.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.25.18.1 |
| 18-May-2014 |
rmind | sync with head
|
1.25.14.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.25.14.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.25.4.1 |
| 22-May-2014 |
yamt | 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")
|
1.26.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.29.20.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.30.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|