aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/digi
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused files from the digi(4) driver.Ed Schouten2009-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 Notes: svn path=/head/; revision=187330
* Fix our ioctl(2) implementation when the argument is "int". NewRuslan Ermilov2006-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 Notes: svn path=/head/; revision=162711
* - Push Giant down into linker_reference_module().John Baldwin2006-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(). Notes: svn path=/head/; revision=159804
* Only reference the firmware module once rather than twice. The extra callJohn Baldwin2006-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 Notes: svn path=/head/; revision=158920
* Eliminate two unused arguments to ttycreate().Poul-Henning Kamp2005-10-161-1/+1
| | | | Notes: svn path=/head/; revision=151383
* Increase boot-time DigiBIOS initialization timeout to allowAndre Oppermann2005-09-141-1/+1
| | | | | | | | | | for a larger number of chained port modules. PR: kern/55018 Submitted by: Cyrill Shevchuk <cyrill at cyrills.net> Notes: svn path=/head/; revision=150132
* Staticize some symbols that are each only used in one corresponding .c file.Eric Anholt2005-05-0612-12/+12
| | | | | | | | PR: kern/43610 Submitted by: Matt Emmerton, matt at gsicomp dot on dot ca Notes: svn path=/head/; revision=145975
* Use BUS_PROBE_DEFAULT for pci probe return valueWarner Losh2005-03-051-1/+1
| | | | Notes: svn path=/head/; revision=143161
* o avoid potential null ptr deref if symbol lookup failsSam Leffler2005-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 Notes: svn path=/head/; revision=142506
* Add new function ttyinitmode() which sets our systemwide defaultPoul-Henning Kamp2004-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. Notes: svn path=/head/; revision=136680
* Remove unused ttys field.Poul-Henning Kamp2004-10-141-1/+0
| | | | | | | Spotted by: Peter Jeremy <PeterJeremy@optushome.com.au> Notes: svn path=/head/; revision=136516
* Use generic tty code instead of local copies.Poul-Henning Kamp2004-10-062-571/+199
| | | | Notes: svn path=/head/; revision=136200
* Remove buggy (root filesystems may not have cdev) and pointlessPoul-Henning Kamp2004-07-281-8/+3
| | | | | | | customization of an error message. Notes: svn path=/head/; revision=132806
* Preparation commit for the tty cleanups that will follow in the nearPoul-Henning Kamp2004-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. Notes: svn path=/head/; revision=132226
* Give kldunload a -f(orce) argument.Poul-Henning Kamp2004-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. Notes: svn path=/head/; revision=132117
* Introduce ttygone() which indicates that the hardware is detached.Poul-Henning Kamp2004-07-112-18/+4
| | | | | | | Move dtrwait logic to the generic TTY level. Notes: svn path=/head/; revision=131981
* Define the tty methods as typedefs.Poul-Henning Kamp2004-06-301-3/+2
| | | | | | | | | Change the return type for t_break to void. Add t_ioctl (more about this later). Notes: svn path=/head/; revision=131373
* Use generic support for BREAK and modem control ioctls.Poul-Henning Kamp2004-06-251-63/+67
| | | | Notes: svn path=/head/; revision=131095
* Remove the TIOCDCDTIMESTAMP option.Poul-Henning Kamp2004-06-221-4/+0
| | | | | | | | The RFC-2783 PPS-API (<sys/timepps.h>) provides better and more configurable service. Notes: svn path=/head/; revision=130938
* Put the pre FreeBSD-2.x tty compat code under BURN_BRIDGES.Poul-Henning Kamp2004-06-211-0/+4
| | | | Notes: svn path=/head/; revision=130892
* Second half of the dev_t cleanup.Poul-Henning Kamp2004-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. Notes: svn path=/head/; revision=130640
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-162-7/+7
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* Deorbit COMPAT_SUNOS.Poul-Henning Kamp2004-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. Notes: svn path=/head/; revision=130344
* Centralize the line discipline optimization determination in a functionPoul-Henning Kamp2004-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. Notes: svn path=/head/; revision=130096
* Manual edits to change linesw[]-frobbing to ttyld_*() calls.Poul-Henning Kamp2004-06-041-4/+2
| | | | Notes: svn path=/head/; revision=130095
* Machine generated patch which changes linedisc calls from accessingPoul-Henning Kamp2004-06-041-13/+13
| | | | | | | | | linesw[] directly to using the ttyld...() functions The ttyld...() functions ar inline so there is no performance hit. Notes: svn path=/head/; revision=130077
* Make the remaining serial drivers call ttyioctl() rather than callingPoul-Henning Kamp2004-06-041-12/+3
| | | | | | | the linedisc directly. Notes: svn path=/head/; revision=130057
* There is no need to explicitly call the stop function. In all likelyhoodPoul-Henning Kamp2004-06-011-1/+0
| | | | | | | ->l_close() did it and ttyclose certainly will. Notes: svn path=/head/; revision=129939
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-303-0/+3
| | | | Notes: svn path=/head/; revision=129879
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-4/+4
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Device megapatch 4/6:Poul-Henning Kamp2004-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. Notes: svn path=/head/; revision=126080
* Device megapatch 3/6:Poul-Henning Kamp2004-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. Notes: svn path=/head/; revision=126078
* Device megapatch 1/6:Poul-Henning Kamp2004-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. Notes: svn path=/head/; revision=126076
* Eliminate bogus use of makedev(): rather than synthesize the dev_t, usePoul-Henning Kamp2003-09-261-2/+1
| | | | | | | our already cached copy. Notes: svn path=/head/; revision=120461
* Use __FBSDID().David E. O'Brien2003-08-249-10/+27
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Prefer new location of pci include files (which have only been in theWarner Losh2003-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. Notes: svn path=/head/; revision=119277
* Consistently use the BSD u_int and u_short instead of the SYSV uint andJohn Baldwin2003-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) Notes: svn path=/head/; revision=118607
* Don't use pessimal (u_short) types for i/o ports. This is mainly forBruce Evans2003-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 Notes: svn path=/head/; revision=118509
* Make nokqfilter() return the correct return value.Poul-Henning Kamp2003-03-031-1/+1
| | | | | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers. Notes: svn path=/head/; revision=111821
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-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) Notes: svn path=/head/; revision=111815
* Use canonical format for cdevsw initialization.Poul-Henning Kamp2003-03-021-14/+14
| | | | Notes: svn path=/head/; revision=111753
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-7/+7
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-7/+7
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Be consistent about "static" functions: if the function is markedPoul-Henning Kamp2002-09-281-4/+4
| | | | | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512 Notes: svn path=/head/; revision=104094
* Replace (ab)uses of "NULL" where "0" is really meant.Archie Cobbs2002-08-221-2/+2
| | | | Notes: svn path=/head/; revision=102291
* Make delay iteration counts a function of hz as the delay period in eachBrian Somers2002-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 Notes: svn path=/head/; revision=94950
* Make delay iteration counts a function of hz as the delay period in eachBrian Somers2002-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> Notes: svn path=/head/; revision=94949
* Yet another adjustment of digi_delay(). The delay is now consistentBrian Somers2002-04-103-18/+19
| | | | | | | irrespective of whether tsleep() or DELAY() is used. Notes: svn path=/head/; revision=94361
* Change more uses of tsleep() to digi_delay() and make the loop counts moreBrian Somers2002-04-103-19/+22
| | | | | | | sane. Notes: svn path=/head/; revision=94358
* Add a digi_delay() function and use it instead of tsleep() when pollingBrian Somers2002-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 Notes: svn path=/head/; revision=94340