summaryrefslogtreecommitdiffstats
path: root/sys/dev/digi
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused files from the digi(4) driver.ed2009-01-164-14961/+0
| | | | | | | | | | | | The digi(4) driver directory contains some files that cannot be checked out on Windows filesystems. This isn't a big deal, but the files aren't used anyway. There are still some other places where checkouts on Windows don't work, such as VFS_MOUNT.9/vfs_mount.9. This should already be a small improvement. MFC after: 1 month
* Fix our ioctl(2) implementation when the argument is "int". Newru2006-09-271-1/+12
| | | | | | | | | | | | | ioctls passing integer arguments should use the _IOWINT() macro. This fixes a lot of ioctl's not working on sparc64, most notable being keyboard/syscons ioctls. Full ABI compatibility is provided, with the bonus of fixing the handling of old ioctls on sparc64. Reviewed by: bde (with contributions) Tested by: emax, marius MFC after: 1 week
* - Push Giant down into linker_reference_module().jhb2006-06-201-3/+3
| | | | | | | | - Add a new function linker_release_module() as a more intuitive complement to linker_reference_module() that wraps linker_file_unload(). linker_release_module() can either take the module name and version info passed to linker_reference_module() or it can accept the linker file object returned by linker_reference_module().
* Only reference the firmware module once rather than twice. The extra calljhb2006-05-251-1/+0
| | | | | | | was accidentally added in 1.55 and resulted in an extra reference count being held on the linker file. MFC after: 1 week
* Eliminate two unused arguments to ttycreate().phk2005-10-161-1/+1
|
* Increase boot-time DigiBIOS initialization timeout to allowandre2005-09-141-1/+1
| | | | | | | for a larger number of chained port modules. PR: kern/55018 Submitted by: Cyrill Shevchuk <cyrill at cyrills.net>
* Staticize some symbols that are each only used in one corresponding .c file.anholt2005-05-0612-12/+12
| | | | | PR: kern/43610 Submitted by: Matt Emmerton, matt at gsicomp dot on dot ca
* Use BUS_PROBE_DEFAULT for pci probe return valueimp2005-03-051-1/+1
|
* o avoid potential null ptr deref if symbol lookup failssam2005-02-251-2/+6
| | | | | | | o unload module if symbol lookup fails Noticed by: Coverity Prevent analysis tool (null ptr deref) Reviewed by: bms, imp, dwhite
* Add new function ttyinitmode() which sets our systemwide defaultphk2004-10-181-16/+1
| | | | | | | | | | | | | | modes on a tty structure. Both the ".init" and the current settings are initialized allowing the function to be used both at attach and open time. The function takes an argument to decide if echoing should be enabled. Echoing should not be enabled for regular physical serial ports unless they are consoles, in which case they should be configured by ttyconsolemode() instead. Use the new function throughout.
* Remove unused ttys field.phk2004-10-141-1/+0
| | | | Spotted by: Peter Jeremy <PeterJeremy@optushome.com.au>
* Use generic tty code instead of local copies.phk2004-10-062-571/+199
|
* Remove buggy (root filesystems may not have cdev) and pointlessphk2004-07-281-8/+3
| | | | customization of an error message.
* Preparation commit for the tty cleanups that will follow in the nearphk2004-07-151-1/+1
| | | | | | | | | future: rename ttyopen() -> tty_open() and ttyclose() -> tty_close(). We need the ttyopen() and ttyclose() for the new generic cdevsw functions for tty devices in order to have consistent naming.
* Give kldunload a -f(orce) argument.phk2004-07-131-2/+2
| | | | | | | | | | | | | | | | | Add a MOD_QUIESCE event for modules. This should return error (EBUSY) of the module is in use. MOD_UNLOAD should now only fail if it is impossible (as opposed to inconvenient) to unload the module. Valid reasons are memory references into the module which cannot be tracked down and eliminated. When kldunloading, we abandon if MOD_UNLOAD fails, and if -force is not given, MOD_QUIESCE failing will also prevent the unload. For backwards compatibility, we treat EOPNOTSUPP from MOD_QUIESCE as success. Document that modules should return EOPNOTSUPP for unknown events.
* Introduce ttygone() which indicates that the hardware is detached.phk2004-07-112-18/+4
| | | | Move dtrwait logic to the generic TTY level.
* Define the tty methods as typedefs.phk2004-06-301-3/+2
| | | | | | Change the return type for t_break to void. Add t_ioctl (more about this later).
* Use generic support for BREAK and modem control ioctls.phk2004-06-251-63/+67
|
* Remove the TIOCDCDTIMESTAMP option.phk2004-06-221-4/+0
| | | | | The RFC-2783 PPS-API (<sys/timepps.h>) provides better and more configurable service.
* Put the pre FreeBSD-2.x tty compat code under BURN_BRIDGES.phk2004-06-211-0/+4
|
* Second half of the dev_t cleanup.phk2004-06-171-1/+1
| | | | | | | | | | | The big lines are: NODEV -> NULL NOUDEV -> NODEV udev_t -> dev_t udev2dev() -> findcdev() Various minor adjustments including handling of userland access to kernel space struct cdev etc.
* Do the dreaded s/dev_t/struct cdev */phk2004-06-162-7/+7
| | | | Bump __FreeBSD_version accordingly.
* Deorbit COMPAT_SUNOS.phk2004-06-111-2/+2
| | | | | We inherited this from the sparc32 port of BSD4.4-Lite1. We have neither a sparc32 port nor a SunOS4.x compatibility desire these days.
* Centralize the line discipline optimization determination in a functionphk2004-06-041-17/+3
| | | | | | | | | called ttyldoptim(). Use this function from all the relevant drivers. I belive no drivers finger linesw[] directly anymore, paving the way for locking and refcounting.
* Manual edits to change linesw[]-frobbing to ttyld_*() calls.phk2004-06-041-4/+2
|
* Machine generated patch which changes linedisc calls from accessingphk2004-06-041-13/+13
| | | | | | linesw[] directly to using the ttyld...() functions The ttyld...() functions ar inline so there is no performance hit.
* Make the remaining serial drivers call ttyioctl() rather than callingphk2004-06-041-12/+3
| | | | the linedisc directly.
* There is no need to explicitly call the stop function. In all likelyhoodphk2004-06-011-1/+0
| | | | ->l_close() did it and ttyclose certainly will.
* Add missing <sys/module.h> includesphk2004-05-303-0/+3
|
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-4/+4
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Device megapatch 4/6:phk2004-02-211-1/+2
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Device megapatch 3/6:phk2004-02-211-2/+0
| | | | | | | | | | | | Add missing D_TTY flags to various drivers. Complete asserts that dev_t's passed to ttyread(), ttywrite(), ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty pointer. Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default cdevsw methods for D_TTY drivers and remove the explicit initializations in various drivers cdevsw structures.
* Device megapatch 1/6:phk2004-02-211-2/+0
| | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
* Eliminate bogus use of makedev(): rather than synthesize the dev_t, usephk2003-09-261-2/+1
| | | | our already cached copy.
* Use __FBSDID().obrien2003-08-249-10/+27
| | | | Also some minor style cleanups.
* Prefer new location of pci include files (which have only been in theimp2003-08-221-1/+1
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Consistently use the BSD u_int and u_short instead of the SYSV uint andjhb2003-08-073-40/+40
| | | | | | | ushort. In most of these files, there was a mixture of both styles and this change just makes them self-consistent. Requested by: bde (kern_ktrace.c)
* Don't use pessimal (u_short) types for i/o ports. This is mainly forbde2003-08-051-2/+2
| | | | | | | | | | completenss. The pessimization is tiny compared with i/o port slowness except on very old machines, but code that used signed short types for i/o ports was unpessimized long ago, and the macro that detected it recently started working for u_short types too. Use of bus space should have made this moot long ago. Not tested at runtime by: bde
* Make nokqfilter() return the correct return value.phk2003-03-031-1/+1
| | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers.
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-031-14/+10
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* Use canonical format for cdevsw initialization.phk2003-03-021-14/+14
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-7/+7
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-7/+7
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Be consistent about "static" functions: if the function is markedphk2002-09-281-4/+4
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Replace (ab)uses of "NULL" where "0" is really meant.archie2002-08-221-2/+2
|
* Make delay iteration counts a function of hz as the delay period in eachbrian2002-04-171-25/+21
| | | | | | | | loop is inversly proportional to hz. This makes things more sane for configurations with hz != 100. Cosmetic: Make the loops look similar to the loops in digi.c
* Make delay iteration counts a function of hz as the delay period in eachbrian2002-04-171-5/+5
| | | | | | | | loop is inversly proportional to hz. This makes things more sane for configurations with hz > 100. Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
* Yet another adjustment of digi_delay(). The delay is now consistentbrian2002-04-103-18/+19
| | | | irrespective of whether tsleep() or DELAY() is used.
* Change more uses of tsleep() to digi_delay() and make the loop counts morebrian2002-04-103-19/+22
| | | | sane.
* Add a digi_delay() function and use it instead of tsleep() when pollingbrian2002-04-101-5/+14
| | | | | | | | | the card for command completion. digi_delay() uses either tsleep() or DELAY() depending on the value of ``cold''. Pointed in the right direction by: jhb
OpenPOWER on IntegriCloud