summaryrefslogtreecommitdiff
path: root/sys/dev/digi
AgeCommit message (Collapse)Author
2017-04-25Remove the source to digi(4).John Baldwin
This was forgotten when the driver was removed in r305235. Notes: svn path=/head/; revision=317426
2016-04-21Yet more redundant parenthesis from r298431.Pedro F. Giffuni
Mea culpa. Notes: svn path=/head/; revision=298435
2016-04-19sys/dev: use our nitems() macro when it is avaliable through param.h.Pedro F. Giffuni
No functional change, only trivial cases are done in this sweep, Drivers that can get further enhancements will be done independently. Discussed in: freebsd-current Notes: svn path=/head/; revision=298307
2016-02-27Migrate many bus_alloc_resource() calls to bus_alloc_resource_anywhere().Justin Hibbits
Most calls to bus_alloc_resource() use "anywhere" as the range, with a given count. Migrate these to use the new bus_alloc_resource_anywhere() API. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D5370 Notes: svn path=/head/; revision=296137
2014-10-10Don't pass RF_ALLOCATED to bus_alloc_resource().John Baldwin
Notes: svn path=/head/; revision=272904
2013-01-30Use DEVMETHOD_END macro defined in sys/bus.h instead of {0, 0} sentinel on ↵Sofian Brabez
device_method_t arrays Reviewed by: cognet Approved by: cognet Notes: svn path=/head/; revision=246128
2009-01-16Remove unused files from the digi(4) driver.Ed Schouten
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
2006-09-27Fix our ioctl(2) implementation when the argument is "int". NewRuslan Ermilov
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
2006-06-20- Push Giant down into linker_reference_module().John Baldwin
- 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
2006-05-25Only reference the firmware module once rather than twice. The extra callJohn Baldwin
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
2005-10-16Eliminate two unused arguments to ttycreate().Poul-Henning Kamp
Notes: svn path=/head/; revision=151383
2005-09-14Increase boot-time DigiBIOS initialization timeout to allowAndre Oppermann
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
2005-05-06Staticize some symbols that are each only used in one corresponding .c file.Eric Anholt
PR: kern/43610 Submitted by: Matt Emmerton, matt at gsicomp dot on dot ca Notes: svn path=/head/; revision=145975
2005-03-05Use BUS_PROBE_DEFAULT for pci probe return valueWarner Losh
Notes: svn path=/head/; revision=143161
2005-02-25o avoid potential null ptr deref if symbol lookup failsSam Leffler
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
2004-10-18Add new function ttyinitmode() which sets our systemwide defaultPoul-Henning Kamp
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
2004-10-14Remove unused ttys field.Poul-Henning Kamp
Spotted by: Peter Jeremy <PeterJeremy@optushome.com.au> Notes: svn path=/head/; revision=136516
2004-10-06Use generic tty code instead of local copies.Poul-Henning Kamp
Notes: svn path=/head/; revision=136200
2004-07-28Remove buggy (root filesystems may not have cdev) and pointlessPoul-Henning Kamp
customization of an error message. Notes: svn path=/head/; revision=132806
2004-07-15Preparation commit for the tty cleanups that will follow in the nearPoul-Henning Kamp
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
2004-07-13Give kldunload a -f(orce) argument.Poul-Henning Kamp
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
2004-07-11Introduce ttygone() which indicates that the hardware is detached.Poul-Henning Kamp
Move dtrwait logic to the generic TTY level. Notes: svn path=/head/; revision=131981
2004-06-30Define the tty methods as typedefs.Poul-Henning Kamp
Change the return type for t_break to void. Add t_ioctl (more about this later). Notes: svn path=/head/; revision=131373
2004-06-25Use generic support for BREAK and modem control ioctls.Poul-Henning Kamp
Notes: svn path=/head/; revision=131095
2004-06-22Remove the TIOCDCDTIMESTAMP option.Poul-Henning Kamp
The RFC-2783 PPS-API (<sys/timepps.h>) provides better and more configurable service. Notes: svn path=/head/; revision=130938
2004-06-21Put the pre FreeBSD-2.x tty compat code under BURN_BRIDGES.Poul-Henning Kamp
Notes: svn path=/head/; revision=130892
2004-06-17Second half of the dev_t cleanup.Poul-Henning Kamp
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
2004-06-16Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp
Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
2004-06-11Deorbit COMPAT_SUNOS.Poul-Henning Kamp
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
2004-06-04Centralize the line discipline optimization determination in a functionPoul-Henning Kamp
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
2004-06-04Manual edits to change linesw[]-frobbing to ttyld_*() calls.Poul-Henning Kamp
Notes: svn path=/head/; revision=130095
2004-06-04Machine generated patch which changes linedisc calls from accessingPoul-Henning Kamp
linesw[] directly to using the ttyld...() functions The ttyld...() functions ar inline so there is no performance hit. Notes: svn path=/head/; revision=130077
2004-06-04Make the remaining serial drivers call ttyioctl() rather than callingPoul-Henning Kamp
the linedisc directly. Notes: svn path=/head/; revision=130057
2004-06-01There is no need to explicitly call the stop function. In all likelyhoodPoul-Henning Kamp
->l_close() did it and ttyclose certainly will. Notes: svn path=/head/; revision=129939
2004-05-30Add missing <sys/module.h> includesPoul-Henning Kamp
Notes: svn path=/head/; revision=129879
2004-03-17Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson
Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
2004-02-21Device megapatch 4/6:Poul-Henning Kamp
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
2004-02-21Device megapatch 3/6:Poul-Henning Kamp
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
2004-02-21Device megapatch 1/6:Poul-Henning Kamp
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
2003-09-26Eliminate bogus use of makedev(): rather than synthesize the dev_t, usePoul-Henning Kamp
our already cached copy. Notes: svn path=/head/; revision=120461
2003-08-24Use __FBSDID().David E. O'Brien
Also some minor style cleanups. Notes: svn path=/head/; revision=119418
2003-08-22Prefer new location of pci include files (which have only been in theWarner Losh
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
2003-08-07Consistently use the BSD u_int and u_short instead of the SYSV uint andJohn Baldwin
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
2003-08-05Don't use pessimal (u_short) types for i/o ports. This is mainly forBruce Evans
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
2003-03-03Make nokqfilter() return the correct return value.Poul-Henning Kamp
Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers. Notes: svn path=/head/; revision=111821
2003-03-03Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp
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
2003-03-02Use canonical format for cdevsw initialization.Poul-Henning Kamp
Notes: svn path=/head/; revision=111753
2003-02-19Back out M_* changes, per decision of the TRB.Warner Losh
Approved by: trb Notes: svn path=/head/; revision=111119
2003-01-21Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
2002-09-28Be consistent about "static" functions: if the function is markedPoul-Henning Kamp
static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512 Notes: svn path=/head/; revision=104094