History log of /src/sys/dev/pci/cz.c |
Revision | | Date | Author | Comments |
1.66 |
| 09-Feb-2024 |
andvar | fix spelling mistakes, mainly in comments and log messages.
|
1.65 |
| 26-Oct-2022 |
riastradh | cz(4): Convert to ttylock/ttyunlock.
|
1.64 |
| 09-Dec-2018 |
jdolecek | use pci_intr_establish_xname() everywhere
|
1.63 |
| 03-Sep-2018 |
riastradh | Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation.
To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
|
1.62 |
| 07-Jul-2016 |
msaitoh | branches: 1.62.16; 1.62.18; KNF. Remove extra spaces. No functional change.
|
1.61 |
| 15-Nov-2014 |
christos | branches: 1.61.2; centralize the dialout/call unit macros.
|
1.60 |
| 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.59 |
| 29-Mar-2014 |
christos | branches: 1.59.2; make pci_intr_string and eisa_intr_string take a buffer and a length instead of relying in local static storage.
|
1.58 |
| 16-Mar-2014 |
dholland | 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.57 |
| 12-Sep-2013 |
martin | Eliminate an unused variable - someone with docs and test hardware please check the XXX introduced.
|
1.56 |
| 27-Oct-2012 |
chs | branches: 1.56.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.55 |
| 24-Apr-2011 |
rmind | branches: 1.55.4; 1.55.14; Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for consistency. Remove some unnecessary malloc.h inclusions as well.
|
1.54 |
| 26-Jul-2010 |
jym | branches: 1.54.2; Add PAE to ALL kernel, so that most paddr_t format string errors get caught during compilation.
While here, fix the compilation for ALL.
|
1.53 |
| 26-Nov-2009 |
njoly | branches: 1.53.2; 1.53.4; Cleanup interrupt establish error messages. Do not mix aprint_error/aprint_normal/printf calls for a single line.
|
1.52 |
| 12-May-2009 |
cegger | use device_private(). "looks good" ad@ XXX for the device_t/softc split, please check the driver that no cases have been missed.
|
1.51 |
| 06-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.50 |
| 06-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.49 |
| 08-Jun-2008 |
tsutsui | branches: 1.49.12; Replace device_lookup() with device_lookup_private() on getting softc for future device_t/softc spilt.
|
1.48 |
| 10-Apr-2008 |
cegger | branches: 1.48.2; 1.48.4; 1.48.6; use aprint_*_dev and device_xname
|
1.47 |
| 19-Nov-2007 |
ad | branches: 1.47.14; - Factor out too many copies of the same bit of tty code. - Fix another tty signalling/wakeup problem.
|
1.46 |
| 12-Nov-2007 |
ad | Call ttwakeup() with tty_lock held.
|
1.45 |
| 09-Jul-2007 |
ad | branches: 1.45.6; 1.45.8; 1.45.12; 1.45.14; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.44 |
| 08-May-2007 |
garbled | Add a missing brace in cztty_receive inside a ifdef HOSTRAMCODE. This would randomly cause internal compiler errors while compiling pmppc.
|
1.43 |
| 04-Mar-2007 |
christos | branches: 1.43.2; 1.43.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.42 |
| 16-Nov-2006 |
christos | branches: 1.42.4; __unused removal on arguments; approved by core.
|
1.41 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.40 |
| 01-Oct-2006 |
elad | More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
|
1.39 |
| 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.38 |
| 21-Jul-2006 |
ad | branches: 1.38.4; 1.38.6; - Use the LWP cached credentials where sane. - Minor cosmetic changes.
|
1.37 |
| 14-May-2006 |
elad | integrate kauth.
|
1.36 |
| 28-Mar-2006 |
thorpej | Use device_unit().
|
1.35 |
| 05-Mar-2006 |
christos | branches: 1.35.2; 1.35.4; cleanup more SET/CLR/ISSET lossage
|
1.34 |
| 11-Dec-2005 |
christos | branches: 1.34.4; 1.34.6; 1.34.8; merge ktrace-lwp.
|
1.33 |
| 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.32 |
| 28-Jun-2005 |
thorpej | branches: 1.32.2; Use ANSI function decls and static.
|
1.31 |
| 30-May-2005 |
christos | - const poisoning - avoid variable shadowing.
|
1.30 |
| 27-Feb-2005 |
perry | nuke trailing whitespace
|
1.29 |
| 27-Oct-2003 |
chs | branches: 1.29.8; 1.29.10; uninitialized variables
|
1.28 |
| 29-Jun-2003 |
fvdl | branches: 1.28.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.27 |
| 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.26 |
| 05-Feb-2003 |
perry | "Utilize" has exactly the same meaning as "use," but it is more difficult to read and understand. Most manuals of English style therefore say that you should use "use".
|
1.25 |
| 31-Jan-2003 |
thorpej | Use aprint_*().
|
1.24 |
| 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.23 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
1.22 |
| 30-Sep-2002 |
thorpej | Use CFATTACH_DECL().
|
1.21 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.20 |
| 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.19 |
| 17-Mar-2002 |
atatat | branches: 1.19.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.18 |
| 12-Jan-2002 |
tsutsui | Call malloc(9) with M_ZERO flag instead of memset() after malloc().
|
1.17 |
| 13-Nov-2001 |
lukem | add RCSID
|
1.16 |
| 02-May-2001 |
scw | branches: 1.16.2; 1.16.4; 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.15 |
| 20-Jan-2001 |
thorpej | branches: 1.15.2; Use device_lookup() in cztty_getttysoftc().
|
1.14 |
| 20-Jan-2001 |
thorpej | Garbage-collect some unused macros.
|
1.13 |
| 20-Jan-2001 |
thorpej | Don't deref NULL when searching for the correct board.
|
1.12 |
| 28-Dec-2000 |
sommerfeld | Change pci_intr_map to get interrupt source information from a "struct pci_attach_args *" instead of from four separate parameters which in all cases were extracted from the same "struct pci_attach_args".
This both simplifies the driver api, and allows for alternate PCI interrupt mapping schemes, such as one using the tables described in the Intel Multiprocessor Spec which describe interrupt wirings for devices behind pci-pci bridges based on the device's location rather the bridge's location.
Tested on alpha and i386; welcome to 1.5Q
|
1.11 |
| 02-Nov-2000 |
eeh | branches: 1.11.2; Adapt to the new line discipline scheme.
|
1.10 |
| 28-Jul-2000 |
thorpej | Handle booting without a serial expander box connected.
|
1.9 |
| 14-Jun-2000 |
thorpej | Make sure we use firmware->host communication channel in cz_intr(), from Bill Studenmund.
|
1.8 |
| 09-Jun-2000 |
wrstuden | Adapt to going back to decemal device numbering.
|
1.7 |
| 09-Jun-2000 |
wrstuden | Rather than assinging 64 tty's per pci card, assign tty's as found. Cyclades says driver should work with up to 128 tty's per pci card even though they only support 64 now. Also matches FreeBSD behavior.
Print located tty's using new tty naming scheme - ttyCZ?? where ?? are two hex letters.
Make firmware load on macppc - one le32toh() was missing.
|
1.6 |
| 24-May-2000 |
thorpej | branches: 1.6.2; Update from Bill Studenmund <wrstuden@zembu.com>: - Note that the FreeBSD driver distributed by Cyclades served as documentation on how the board works. - Use the wait-until-pending-I/O-completes-before-loading-parameters command in czttyparam(). - Pass BREAKs up to the tty later properly. - Garbage-collect some debugging code.
|
1.5 |
| 23-May-2000 |
thorpej | Typo in previous.
|
1.4 |
| 23-May-2000 |
thorpej | Update from Bill Studenmund <wrstuden@zembu.com>:
Correctly send and receive BREAKs -- still needs to do something intelligent with them. Some additional debugging goo.
|
1.3 |
| 19-May-2000 |
thorpej | In tiocm_to_cztty(), use SET() instead of CLR() in the TIOCMBIS case. "Oops!"
|
1.2 |
| 18-May-2000 |
thorpej | Fix an inverted test.
|
1.1 |
| 17-May-2000 |
thorpej | Add a device driver for the Cyclades-Z series of intelligent multi-port serial boards. Written by Jason R. Thorpe and Bill Studenmund.
|
1.6.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.11.2.5 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.11.2.4 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.11.2.3 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.11.2.2 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.11.2.1 |
| 02-Nov-2000 |
bouyer | file cz.c was added on branch thorpej_scsipi on 2000-11-20 11:42:17 +0000
|
1.15.2.7 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.15.2.6 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.15.2.5 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.15.2.4 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.15.2.3 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.15.2.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.15.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.16.4.3 |
| 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.16.4.2 |
| 26-Sep-2001 |
fvdl | * add a VCLONED vnode flag that indicates a vnode representing a cloned device. * rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass to VOP_REVOKE * the revoke system call will revoke all aliases, as before, but not the clones * vdevgone is called when detaching a device, so make it use REVOKECLONE to get rid of all clones as well * clean up all uses of VOP_OPEN wrt. locking. * add a few VOPS to spec_vnops that need to do something when it's a clone vnode (access and getattr) * add a copy of the vnode vattr structure of the original 'master' vnode to the specinfo of a cloned vnode. could possibly redirect getattr to the 'master' vnode, but this has issues with revoke * add a vdev_reassignvp function that disassociates a vnode from its original device, and reassociates it with the specified dev_t. to be used by cloning devices only, in case a new minor is allocated. * change all direct references in drivers to v_devcookie and v_rdev to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes when debugging race conditions that still exist wrt. locking and revoking vnodes. * make the locking state of a vnode consistent when passed to d_open and d_close (unlocked). locked would be better, but has some deadlock issues
|
1.16.4.1 |
| 07-Sep-2001 |
thorpej | Commit my "devvp" changes to the thorpej-devvp branch. This replaces the use of dev_t in most places with a struct vnode *.
This will form the basic infrastructure for real cloning device support (besides being architecurally cleaner -- it'll be good to get away from using numbers to represent objects).
|
1.16.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.16.2.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.16.2.2 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.16.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.19.4.1 |
| 16-May-2002 |
gehenna | Add the character device switch. Replace the local major search function with devsw API.
|
1.28.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.28.2.5 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.28.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.28.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.28.2.2 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.28.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.29.10.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.29.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.32.2.5 |
| 07-Dec-2007 |
yamt | sync with head
|
1.32.2.4 |
| 15-Nov-2007 |
yamt | sync with head.
|
1.32.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.32.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.32.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.34.8.4 |
| 11-Aug-2006 |
yamt | sync with head
|
1.34.8.3 |
| 24-May-2006 |
yamt | sync with head.
|
1.34.8.2 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.34.8.1 |
| 13-Mar-2006 |
yamt | sync with head.
|
1.34.6.2 |
| 01-Jun-2006 |
kardel | Sync with head.
|
1.34.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.34.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.35.4.2 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.35.4.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.35.2.4 |
| 06-May-2006 |
christos | - Move kauth_cred_t declaration to <sys/types.h> - Cleanup struct ucred; forward declarations that are unused. - Don't include <sys/kauth.h> in any header, but include it in the c files that need it.
Approved by core.
|
1.35.2.3 |
| 19-Apr-2006 |
elad | sync with head.
|
1.35.2.2 |
| 10-Mar-2006 |
elad | generic_authorize() -> kauth_authorize_generic().
|
1.35.2.1 |
| 08-Mar-2006 |
elad | Adapt to kernel authorization KPI.
|
1.38.6.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.38.6.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.38.4.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.42.4.2 |
| 17-May-2007 |
yamt | sync with head.
|
1.42.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.43.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.43.2.2 |
| 01-Jul-2007 |
ad | Adapt to callout API change.
|
1.43.2.1 |
| 27-May-2007 |
ad | Sync with head.
|
1.45.14.2 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.45.14.1 |
| 19-Nov-2007 |
mjf | Sync with HEAD.
|
1.45.12.2 |
| 21-Nov-2007 |
bouyer | Sync with HEAD
|
1.45.12.1 |
| 13-Nov-2007 |
bouyer | Sync with HEAD
|
1.45.8.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.45.6.2 |
| 21-Nov-2007 |
joerg | Sync with HEAD.
|
1.45.6.1 |
| 14-Nov-2007 |
joerg | Sync with HEAD.
|
1.47.14.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.47.14.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.48.6.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.48.4.4 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.48.4.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.48.4.2 |
| 16-May-2009 |
yamt | sync with head
|
1.48.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.48.2.1 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.49.12.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.53.4.2 |
| 31-May-2011 |
rmind | sync with head
|
1.53.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.53.2.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.54.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.55.14.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.55.14.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.55.14.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.55.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.55.4.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.56.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.59.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.61.2.1 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.62.18.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.62.16.2 |
| 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|
1.62.16.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|