History log of /src/sys/arch/amiga/dev/mfc.c |
Revision | | Date | Author | Comments |
1.62 |
| 08-Sep-2024 |
rillig | fix a/an grammar in obvious cases
|
1.61 |
| 26-Oct-2022 |
riastradh | amiga/mfc(4): Convert to ttylock/ttyunlock.
|
1.60 |
| 21-Oct-2021 |
andvar | fix various typos, mainly in comments, but also in man pages and log messages.
|
1.59 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.58 |
| 24-Apr-2021 |
thorpej | branches: 1.58.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.57 |
| 25-Jul-2014 |
dholland | branches: 1.57.8; 1.57.18; 1.57.42; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.56 |
| 16-Mar-2014 |
dholland | branches: 1.56.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.55 |
| 27-Oct-2012 |
chs | branches: 1.55.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.54 |
| 24-Apr-2011 |
rmind | branches: 1.54.4; 1.54.14; Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for consistency. Remove some unnecessary malloc.h inclusions as well.
|
1.53 |
| 26-Oct-2009 |
cegger | branches: 1.53.4; 1.53.6; kill extra whitespaces reviewed by tsutsui@
|
1.52 |
| 19-May-2009 |
phx | Removed old Amiga-specific "sicallback" software interrupts and replaced them by MI softints. Approved by "is".
|
1.51 |
| 18-Mar-2009 |
cegger | bcopy -> memcpy
|
1.50 |
| 11-Jun-2008 |
tsutsui | branches: 1.50.4; 1.50.10; Use device_private() and device_lookup_private() to get softc.
|
1.49 |
| 25-May-2008 |
ad | branches: 1.49.2; Properly fix the "hanging in tty" bug that was worked around with cv_wakeup() some time again.
|
1.48 |
| 19-Nov-2007 |
ad | branches: 1.48.14; 1.48.16; 1.48.18; 1.48.20; - Factor out too many copies of the same bit of tty code. - Fix another tty signalling/wakeup problem.
|
1.47 |
| 07-Nov-2007 |
ad | Merge tty changes from the vmlocking branch.
|
1.46 |
| 04-Mar-2007 |
christos | branches: 1.46.2; 1.46.18; 1.46.20; 1.46.24; 1.46.26; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.45 |
| 24-Jan-2007 |
hubertf | branches: 1.45.2; Remove duplicate #includes, patch contributed in private mail by Slava Semushin <slava.semushin@gmail.com>.
To verify that no nasty side effects of duplicate includes (or their removal) have an effect here, I've compiled an i386/ALL kernel with and without the patch, and the only difference in the resulting .o files was in shifted line numbers in some assert() calls. The comparison of the .o files was based on the output of "objdump -D".
Thanks to martin@ for the input on testing.
|
1.44 |
| 01-Oct-2006 |
elad | More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
|
1.43 |
| 01-Oct-2006 |
elad | Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
|
1.42 |
| 01-Oct-2006 |
elad | Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks!
|
1.41 |
| 23-Jul-2006 |
ad | branches: 1.41.4; 1.41.6; Use the LWP cached credentials where sane.
|
1.40 |
| 14-May-2006 |
elad | integrate kauth.
|
1.39 |
| 26-Mar-2006 |
thorpej | Use device_unit().
|
1.38 |
| 11-Dec-2005 |
christos | branches: 1.38.4; 1.38.6; 1.38.8; 1.38.10; 1.38.12; merge ktrace-lwp.
|
1.37 |
| 06-Sep-2005 |
kleink | Change the driver open function's conditional for overriding exclusive tty use from checking the proc's uid to suser(9), and account for the use of privileges. Noted by David Holland in PR kern/31126.
|
1.36 |
| 13-Jun-2005 |
jmc | branches: 1.36.2; Fix a ton of const/volatile issues shown with new warning flags
|
1.35 |
| 25-Apr-2004 |
matt | Constify the speedtab arrays
|
1.34 |
| 28-Mar-2004 |
mhitch | Remove license clauses 3 and 4 in my licenses.
|
1.33 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.32 |
| 23-Oct-2002 |
jdolecek | branches: 1.32.6; 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.31 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.30 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.29 |
| 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.28 |
| 17-Mar-2002 |
atatat | branches: 1.28.4; Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
1.27 |
| 17-Feb-2002 |
veego | Add a missing ) from an 6 year old cleanup commit (rev 1.10): s/sizeof(struct mfcp_softc,/sizeof(struct mfcp_softc),/ Noticed by Nagilum on irc.
|
1.26 |
| 28-Jan-2002 |
aymeric | add __KERNEL_RCSID as suggested by Luke Mewburn
|
1.25 |
| 26-Jan-2002 |
aymeric | - ANSIfy - remove some trailing spaces/tabs - minor style nits
|
1.24 |
| 30-May-2001 |
lukem | branches: 1.24.2; 1.24.4; 1.24.8; add missing #include "opt_kgdb.h"
|
1.23 |
| 02-May-2001 |
scw | Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point in each tty driver to indirect through it.
This allows tty line-disciplines to handle poll(2) system calls.
|
1.22 |
| 13-Jan-2001 |
aymeric | branches: 1.22.2; Make these compile again, plus minor aesthetic changes.
|
1.21 |
| 02-Nov-2000 |
eeh | Adapt to new line discipline scheme.
|
1.20 |
| 01-Sep-1998 |
mhitch | branches: 1.20.12; Quick fix for TS_WOPEN -> t_wopen change. Compiles and works.
|
1.19 |
| 12-Jan-1998 |
thorpej | Adjust for changes to config.
|
1.18 |
| 23-Dec-1996 |
veego | Get rid of __BROKEN_INDIRECT_CONFIG.
|
1.17 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.16 |
| 10-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.15 |
| 02-Sep-1996 |
mycroft | tty stop functions really should return void, not int, and certainly not both.
|
1.14 |
| 27-Aug-1996 |
cgd | change cfprint_t type definition to take a const char *, rather than a char *, because that's what was really intended, and because if the print function modifies the string, various things could become unhappy (so the string should _not_ be modified).
|
1.13 |
| 06-Jun-1996 |
mhitch | Add tty_attach() calls for pstat -t. Closes PR #2519
|
1.12 |
| 21-Apr-1996 |
veego | branches: 1.12.4; - Cleanup for -Wall and -Wstrict-prototypes - Added support for multiple floppy drives - CyberVision64: - has now a real console mode - another bugfix for boards with the new S3 chip - Ariadne: - fixed crashes with aeput (mbuf failure)
|
1.11 |
| 17-Mar-1996 |
mhitch | Clean up typos and other errors from new device attachment changes.
|
1.10 |
| 17-Mar-1996 |
thorpej | New device attachment scheme:
- split softc size and match/attach out from cfdriver into a new struct cfattach.
- new "attach" directive for files.*. May specify the name of the cfattach structure, so that devices may be easily attached to parents with different autoconfiguration semantics.
|
1.9 |
| 30-Nov-1995 |
jtc | merge in changes from 1.1 release branch
|
1.8 |
| 09-Oct-1995 |
chopps | branches: 1.8.2; add prototypes for isr stuff fixes pr# 1284 and 1569
|
1.7 |
| 29-Sep-1995 |
chopps | move 040 to hp300 style, use new MI lance ethernet driver a few minor fixes WRT prototypes. if_le from Charles rest from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.6 |
| 04-Jul-1995 |
chopps | misc cleanup, better tty alloc for mfc. from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.5 |
| 23-Apr-1995 |
chopps | bring up-to-date with recent conf.c and sunos changes.
|
1.4 |
| 02-Apr-1995 |
chopps | cleanup SG4_, fix magnum interrupts, gvp hack for ziii, new gvp configs, 4066 4066 interrupt fix, add baudrate gen and don't clear other port lines for mfc from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.3 |
| 02-Mar-1995 |
chopps | fix long standing bug with A2091 and dma. Move the copy from bounce buffer after dmafree() in the case of the A2091 this allows the dma fifo to be flushed. from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.2 |
| 12-Feb-1995 |
chopps | Many changes from osymh@gemini.oscs.montana.edu (Michael L. Hitch) Now use amiga HW for soft interrupts, non-contig options (2 or many chunks), interrupt handler lists, 4066 ethernet, 1291 scsi, option to defer level 6 interrupts to level 4 (deal with icky built-in serial port)
|
1.1 |
| 28-Dec-1994 |
chopps | consolidate the zbusses. le support for multiple tx buffs and full use of 32k RAM. AGA dbl PAL mode added for console. Many changes to siop--most not yet done. All from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.8.2.1 |
| 20-Oct-1995 |
chopps | take a couple devices from needs-count to needs-flag. move tty pointers to softc structs loadbsd now fails if it cannot allocate enough chipmem. from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.12.4.1 |
| 06-Jun-1996 |
mhitch | Pull up from trunk: > Add tty_attach() calls for pstat -t. Closes PR #2519
|
1.20.12.2 |
| 18-Jan-2001 |
bouyer | Sync with head (for UBC+NFS fixes, mostly).
|
1.20.12.1 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.22.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.24.8.6 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.24.8.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.24.8.4 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.24.8.3 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.24.8.2 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.24.8.1 |
| 30-May-2001 |
nathanw | file mfc.c was added on branch nathanw_sa on 2002-02-28 04:06:52 +0000
|
1.24.4.2 |
| 13-Oct-2001 |
fvdl | Revert the t_dev -> t_devvp change in struct tty. The way that tty structs are currently used (especially by console ttys) aren't ready for it, and this will require quite a few changes.
|
1.24.4.1 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.24.2.4 |
| 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.24.2.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.24.2.2 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.24.2.1 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.28.4.1 |
| 16-May-2002 |
gehenna | Add the character device switch. Replace the direct-access to devsw table with calling devsw API.
|
1.32.6.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.32.6.4 |
| 21-Nov-2004 |
skrll | Adapt to branch.
|
1.32.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.32.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.32.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.36.2.6 |
| 07-Dec-2007 |
yamt | sync with head
|
1.36.2.5 |
| 15-Nov-2007 |
yamt | sync with head.
|
1.36.2.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.36.2.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.36.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.36.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.38.12.2 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.38.12.1 |
| 28-Mar-2006 |
tron | Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
|
1.38.10.4 |
| 13-May-2006 |
elad | sprinkle some #include <sys/kauth.h> in files that use kauth kpi but don't include it yet. hopefully this will prevent some fallout.
|
1.38.10.3 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.38.10.2 |
| 10-Mar-2006 |
elad | generic_authorize() -> kauth_authorize_generic().
|
1.38.10.1 |
| 08-Mar-2006 |
elad | Adapt to kernel authorization KPI.
I expect *some* lossage here...
|
1.38.8.3 |
| 11-Aug-2006 |
yamt | sync with head
|
1.38.8.2 |
| 24-May-2006 |
yamt | sync with head.
|
1.38.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.38.6.2 |
| 01-Jun-2006 |
kardel | Sync with head.
|
1.38.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.38.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.41.6.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.41.4.2 |
| 01-Feb-2007 |
ad | Sync with head.
|
1.41.4.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.45.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.46.26.2 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.46.26.1 |
| 19-Nov-2007 |
mjf | Sync with HEAD.
|
1.46.24.2 |
| 21-Nov-2007 |
bouyer | Sync with HEAD
|
1.46.24.1 |
| 13-Nov-2007 |
bouyer | Sync with HEAD
|
1.46.20.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.46.20.1 |
| 08-Nov-2007 |
matt | sync with -HEAD
|
1.46.18.2 |
| 21-Nov-2007 |
joerg | Sync with HEAD.
|
1.46.18.1 |
| 11-Nov-2007 |
joerg | Sync with HEAD.
|
1.46.2.1 |
| 03-Dec-2007 |
ad | Sync with HEAD.
|
1.48.20.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.48.18.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.48.18.2 |
| 20-Jun-2009 |
yamt | sync with head
|
1.48.18.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.48.16.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.48.16.1 |
| 04-Jun-2008 |
yamt | sync with head
|
1.48.14.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.48.14.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.49.2.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.50.10.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.50.4.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.53.6.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.53.4.1 |
| 31-May-2011 |
rmind | sync with head
|
1.54.14.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.54.14.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.54.4.2 |
| 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.54.4.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.55.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.56.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.57.42.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.57.18.1 |
| 27-Apr-2017 |
pgoyette | Restore all work from the former pgoyette-localcount branch (which is now abandoned doe to cvs merge botch).
The branch now builds, and installs via anita. There are still some problems (cgd is non-functional and all atf tests time-out) but they will get resolved soon.
|
1.57.8.2 |
| 20-Jul-2016 |
pgoyette | Redo previous. Rather than separately extracting the device_t, we can rely on sc->sc_dev when we need to call device_release().
|
1.57.8.1 |
| 19-Jul-2016 |
pgoyette | Instead of repeatedly typing the conditional initialization of the .d_localcount members in the various {b,c}devsw, define an initializer macro and use it. This also removes the need for defining new symbols for each 'struct localcount'.
As suggested by riastradh@
|
1.58.8.1 |
| 03-Aug-2021 |
thorpej | Adapt to CFARGS().
|